Old 10th October 2008, 00:54   #1
mrh882
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?
mrh882 is offline   Reply With Quote
Old 10th October 2008, 06:08   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 10th October 2008, 12:41   #3
mrh882
Junior Member
 
Join Date: Oct 2008
Posts: 2
Thumbs up

Perfect!!!!!

Thank you!
mrh882 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump