/build/static/layout/Breadcrumb_cap_w.png

Setting working directory of shortcut

Hi ,

We have a requirement of setting working directory of a shortcut to %Temp%.

The working directory gets sets properly in Admin user but when logged to user it takes the admin profile temp directory instead of user profile temp directory.

the package doesnot have any harding to admin profile temp directory..but it %temp% doesnot get resolve when logged in with users profile

please let me know how can i resolve the working directory in user profile

Thanks & Regards


0 Comments   [ + ] Show comments

Answers (2)

Posted by: EVEEN 10 years ago
Green Belt
0

To help you there is a requirement for some extra info:

- what packagetype are you deploying (MSI, App-V, ZAV or other)

- with what distribution system

If it's an msi you could start checking if a different value for ALLUSERS could help you out.


Comments:
  • Its an msi package ...and as per our standards we set the ALLUSERS property as 1
    but still it does not resolve the %temp% as user directory - Gary 10 years ago
  • OK, so you are doing a per-machine installation. The %Temp% variable gets a real value for the user running the setup during the running of msiexec.exe. In this case you would be better served with a per-user installation.

    You state that corporate policy is to install per-machine so this is not an option.

    A way forward would then to create the required shortcut as a file (xxx.lnk) in the required location. - EVEEN 10 years ago
Posted by: dj_xest 10 years ago
5th Degree Black Belt
0

Just leave the working directory of your shortcut as %Temp% (put it as %Temp% literally) and it should be ok and app should be working. The main reason is that the hard-coding of that %Temp% you used  is happening during the installation and not during the login. When you installed it via admin account, it gets resolved already that is why you see it also in the user's account.

If you insists, that shortcut might need a script every login to the machine and also don't forget setting up the access permission so users can change it.

%Temp%

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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