Working direcory is WkDir in the Shortcut table in the MSI file, and the documentation specifically says that you can put %USERPROFILE% in there, so maybe it just works the same way in WiX too.
Phil Wilson -----Original Message----- From: John Daintree [mailto:jo...@dyalog.com] Sent: Wednesday, August 10, 2011 6:00 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location Hello all, In an ALLUSER install, I'm trying to set up my desktop icon(s) so that the WorkingDirectory is set to a per-user location. If I do (bits omitted for clarity): <Property Id="PERSONALFILES" Value="%USERPROFILE%\My Documents\Our Files" /> <Shortcut Id="shortcut".. WorkingDirectory="PERSONALFILES"/> Then every user's Working Directory is set to c:\Documents and Settings\john\My Documents\Our Files (as "john" did the original ALLUSERS install) If I modify the shortcut "by hand" to contain the literal string "%USERPROFILE%\My Documents\Our Files" then Windows evaluates the variable as the process starts and the working directory is as I want it. So, in a nutshell, the question is how do I set the "WorkingDirectory" attribute to contain the literal text "%USERPROFILE%"? Thanks, John. ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail recept...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users