Archive: Outfile Problem


Outfile Problem
  Hello,

I want to use this:

OutFile "$DESKTOP\Installer.exe" 

I cant use variables on the outfile command. So I tried this:
!define Installername "$DESKTOP\Installer.exe" 

>OutFile "${Installername}"
But there is also an Errormessage.
Need help. thx

$xxx are variables (Used at runtime not compile time), you can probably get what you want with:
OutFile "$%USERPROFILE%\Desktop\Installer.exe"
(Not sure where the desktop folder is on Vista)

or use !system and call a batch file or another nsis exe or something that generates an include file with a define with the correct path