Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location
Hi Michael, OK, I suppose I could do that. I'm sort of surprised that I can't put the literal text "%USEPROFILE%" (or for that matter any environment variable name), in the shortcut, but I'll experiment further, and also with your suggestsion. Thanks, John. -Original Message- From: Michael Tissington [mailto:michael_tissing...@ciqual.com] Sent: 12 August 2011 08:44 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location In the install set a registry key to point to the working directory In the code read the registry and then make an api call to set the current directory Michael Tissington -Original Message- From: John Daintree [mailto:jo...@dyalog.com] Sent: 12 August 2011 08:30 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location Hi Christopher, Thanks for the comment, but if you were to do it how would you? /john -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: 11 August 2011 19:08 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location I wouldn't ever do this because it's masking an application design problem. The application should work regardless of what the working directory is set to. The shotcut's working directory becomes "special sauce" tribal knowledge. One day someone else will create their own shortcut to the application and then wonder why it isn't working. Fix the app. Best case, fix whatever code requires the working directory so that it can resolve the location of the needed file/directory and worst case patch it with a call up front to resolve the directory and set the processes working directory. --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me From: John Daintree To: 'General discussion for Windows Installer XML toolset.' Sent: Thursday, August 11, 2011 10:23 AM Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location Hi Phil, I think that, whilst that "works", the environment variable is de-referenced at install time, so if I do an ALLUSER install, every user gets the value of USERPROFILE for the installing user. What I'm hoping to be able to do is get the literal string "%USERPROFILE%" into the shortcut. /john -Original Message- From: Wilson, Phil [mailto:phil.wil...@invensys.com] Sent: 10 August 2011 19:00 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location 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): 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
Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location
In the install set a registry key to point to the working directory In the code read the registry and then make an api call to set the current directory Michael Tissington -Original Message- From: John Daintree [mailto:jo...@dyalog.com] Sent: 12 August 2011 08:30 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location Hi Christopher, Thanks for the comment, but if you were to do it how would you? /john -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: 11 August 2011 19:08 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location I wouldn't ever do this because it's masking an application design problem. The application should work regardless of what the working directory is set to. The shotcut's working directory becomes "special sauce" tribal knowledge. One day someone else will create their own shortcut to the application and then wonder why it isn't working. Fix the app. Best case, fix whatever code requires the working directory so that it can resolve the location of the needed file/directory and worst case patch it with a call up front to resolve the directory and set the processes working directory. --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me From: John Daintree To: 'General discussion for Windows Installer XML toolset.' Sent: Thursday, August 11, 2011 10:23 AM Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location Hi Phil, I think that, whilst that "works", the environment variable is de-referenced at install time, so if I do an ALLUSER install, every user gets the value of USERPROFILE for the installing user. What I'm hoping to be able to do is get the literal string "%USERPROFILE%" into the shortcut. /john -Original Message- From: Wilson, Phil [mailto:phil.wil...@invensys.com] Sent: 10 August 2011 19:00 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location 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): 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=7
Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location
Hi Christopher, Thanks for the comment, but if you were to do it how would you? /john -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: 11 August 2011 19:08 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location I wouldn't ever do this because it's masking an application design problem. The application should work regardless of what the working directory is set to. The shotcut's working directory becomes "special sauce" tribal knowledge. One day someone else will create their own shortcut to the application and then wonder why it isn't working. Fix the app. Best case, fix whatever code requires the working directory so that it can resolve the location of the needed file/directory and worst case patch it with a call up front to resolve the directory and set the processes working directory. --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me From: John Daintree To: 'General discussion for Windows Installer XML toolset.' Sent: Thursday, August 11, 2011 10:23 AM Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location Hi Phil, I think that, whilst that "works", the environment variable is de-referenced at install time, so if I do an ALLUSER install, every user gets the value of USERPROFILE for the installing user. What I'm hoping to be able to do is get the literal string "%USERPROFILE%" into the shortcut. /john -Original Message- From: Wilson, Phil [mailto:phil.wil...@invensys.com] Sent: 10 August 2011 19:00 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location 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): 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 capab
Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location
I wouldn't ever do this because it's masking an application design problem. The application should work regardless of what the working directory is set to. The shotcut's working directory becomes "special sauce" tribal knowledge. One day someone else will create their own shortcut to the application and then wonder why it isn't working. Fix the app. Best case, fix whatever code requires the working directory so that it can resolve the location of the needed file/directory and worst case patch it with a call up front to resolve the directory and set the processes working directory. --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me From: John Daintree To: 'General discussion for Windows Installer XML toolset.' Sent: Thursday, August 11, 2011 10:23 AM Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location Hi Phil, I think that, whilst that "works", the environment variable is de-referenced at install time, so if I do an ALLUSER install, every user gets the value of USERPROFILE for the installing user. What I'm hoping to be able to do is get the literal string "%USERPROFILE%" into the shortcut. /john -Original Message- From: Wilson, Phil [mailto:phil.wil...@invensys.com] Sent: 10 August 2011 19:00 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location 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): 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/list
Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location
Hi Phil, I think that, whilst that "works", the environment variable is de-referenced at install time, so if I do an ALLUSER install, every user gets the value of USERPROFILE for the installing user. What I'm hoping to be able to do is get the literal string "%USERPROFILE%" into the shortcut. /john -Original Message- From: Wilson, Phil [mailto:phil.wil...@invensys.com] Sent: 10 August 2011 19:00 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location 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): 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 -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Setting the WorkingDirectory of a shortcut to a per-user location
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): 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
[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): 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