Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Install files to user's temp-directory?

Updated: 22 May 2010 | 3 comments
berlin's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

Hello out there,

using Wise Installation Express 7.0 I tried to install some files to a subdirectory of the users TEMP directory. With TEMP I mean the directory I get when executing "echo %temp%" from the Dos commandline (which usually leads to C:\DOCUME~1\Username\LOCALS~1\Temp).
After trying for several hours I'm about to give it up :-( Whatever I tried on the Files page to add below "Destination computer", the files never were copied to TEMP directory, instead my Wise installation created folders named like "%temp", "%temp%", "[temp]", "[%temp]" on the destination computer's root drive.
Any help would be appreciated.
Thank you very much in advance!

Discussion Filed Under:

Comments

EdT's picture
11
Sep
2009
0 Votes 0
Login to vote

How were you deploying?

If you use any of the service based deployment systems such as SMS, then you will not be able to directly target the user profile as the service account does not have access rights there, or is not able to figure out which user account is currently logged in.

Otherwise, you need to use a Set Directory custom action to set the target directory for your files to a path that has been derived from [LogonUser] or from [!USERPROFILE]  - the latter pulling the value of USERPROFILE from the environment.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

JohanH's picture
14
Sep
2009
0 Votes 0
Login to vote

If you are using MSI, on the

If you are using MSI, on the Files page, add your files to the Windows\temp folder. This should evaluate to the default temp folder.

berlin's picture
20
Sep
2009
0 Votes 0
Login to vote

thank you very much, JohanH,

thank you very much, JohanH, for your hint to add my files to Windows\Temp folder. Indeed, this folder is mapped to %temp% folder. I did not try this before, because usually under windows an "real" windows\temp folder exists, too.

Thank you EdT for suggesting to pull the %temp%-dir from [USERPROFILE], which was too complicated for my needs.