sfoc
17th June 2005 08:22 UTC
commandline param
hello,
i received the following commandline parameter
/TEST="C:\Program Files" or /TEST=C:\tmp
i have try to read this but with the qoutes i have pb.
i know that it works when the commandline parameter completly in qoutes is -> "/TEST=C:\Program Files" - buz i have no influence on this.
thanks for help
Instructor
17th June 2005 09:13 UTC
Name "Output"
OutFile "Output.exe"
!include "FileFunc.nsh"
!insertmacro GetParameters
!insertmacro GetOptions
Section
#CMDLINE:
#Output.exe /TEST="C:\Program Files" /Something else=0
${GetParameters} $0
${GetOptions} '$0' '/TEST=' $1
#$1=C:\Program Files
SectionEnd
Script use header
sfoc
17th June 2005 11:22 UTC
thanks, it works