Archive: commandline param


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


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

thanks, it works