|
|
#1 |
|
Junior Member
Join Date: Oct 2008
Posts: 2
|
Outfile with environment variable
Hi,
I have created an installer that wraps a user's file and configures it for distribution. I am using multiple files for this multi-use-a-day script that, for organizational purposes, have been placed in their own folder. I would like this folder to be tucked away in the "Program Files" or any other folder on the machine with a shortcut on the desktop to the script. The snag is that, when the script completes and creates the executable, instead of the executable being in the folder, I would like for it to be placed on the desktop so that it's easier on the employee to copy to an email or website. Here are the attempts so far: 1. OutFile Program.exe ;Works, but not how I want ;-) 2. OutFile $DESKTOP\Program.exe ;Does not work 3. OutFile %userprofile%\Desktop\Program.exe ;Does not work 4. OutFile $%USERPROFILE%\Desktop\CSProfile.exe ;Does not work Any ideas on how to get the .exe to the desktop after its compiled without adding an extra step to the employee? |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Number 4 should work if you quote it all due to spaces in $%USERPROFILE%.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2008
Posts: 2
|
Perfect!!!!!
Thank you! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|