Archive: How to pass argument with double quotes


How to pass argument with double quotes
I need to pass an argument to my .exe file with double quotes, so the command line would be something like this:

myprogram.exe -vmargs -Darchive.home="c:\program files\..."

The double quotes are mandatory. And the double quoted argument, is just the value of the INSTDIR variable. So I tried to put this line on my .msi file:

CreateShortCut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" "$INSTDIR\$(^Name).exe" "-vmargs -Darchive.home="$INSTDIR""

But this, after creating the script left a command line like:

myprogram.exe -vmargs -Darchive.home=

Any solutions?

Thanks,
Martin


CreateShortCut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" "$INSTDIR\$(^Name).exe" '-vmargs -Darchive.home="$INSTDIR"'

-Stu