Archive: Outfile with environment variable


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?


Number 4 should work if you quote it all due to spaces in $%USERPROFILE%.


Perfect!!!!!

Thank you!