/build/static/layout/Breadcrumb_cap_w.png

Shortcut Working directory problem

Hi All,

I have come across a problem when the working directory of a Shortcut is set to the USERPROFILE (or another user sepcific location).
If the installation is for a machine with multiple users it will cause issues.
User1 installs - fine
User2 logs in - repairs - fine
User1 logs back in - no repair, and working dir is set to User2 profile.

Our solution was to manually change the shortcut work dir to %USERPROFILE% and include the shortcut as a file (.lnk) in the file table. This seems to work but we then do not have an advertised shortcut.

btw - %USERPROFILE% doesn't work in shortcut table.

Any ideas or comments on this??? Please???

Cheers,
Aidy.

0 Comments   [ + ] Show comments

Answers (5)

Posted by: MSIPackager 18 years ago
3rd Degree Black Belt
0
Our solution was to manually change the shortcut work dir to %USERPROFILE% and include the shortcut as a file (.lnk) in the file table. This seems to work but we then do not have an advertised shortcut.

Why can't you have this as your advertised shortcut? As long as this entry in the file table is the keypath for the component used your shortcut table it should advertise OK - shouldn't it?!

Cheers,
Rob.
Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
0
If you want to use the environment variable USERPROFILE in the shortcut table, you need to author it as %USERPROFILE, instead of %USERPROFILE%
Posted by: islander222 18 years ago
Senior Yellow Belt
0
Hi MSIPackager,

The entry in the file table will be the .lnk file, We won't have any entry in the shortcut table - Maybe I'm missing something here??

Hi brenthunter2005,

I have tried that but it will only resolve at install time or repair time. Not when the original user logs back in after another user.
Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
0
At the end of the day, does the working directory even need to be set?
Posted by: islander222 18 years ago
Senior Yellow Belt
0
I'm not sure on that one - actually I'm not 100% clear on exactly what the working dir does to be honest.
But in this case run time files are created for each user when they run the shortcut (In the work dir location).
The customer wants these files retained as per the applications normal functionality.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ