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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 02/17/2006 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
If you want to use the environment variable USERPROFILE in the shortcut table, you need to author it as %USERPROFILE, instead of %USERPROFILE%
Answered 02/17/2006 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
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.
Answered 02/17/2006 by: islander222
Senior Yellow Belt

Please log in to comment
0
At the end of the day, does the working directory even need to be set?
Answered 02/17/2006 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
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.
Answered 02/17/2006 by: islander222
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity