Double quotes while creating a MSI package
Posted: Mon Sep 07, 2015 3:23 am
Hi guys
I am using the pgplwiz.exe to create a .MSI package and I am having problems with double quotes and spaces in the string.
The pgplwiz.exe application also support the command line to create a .MSI file.
What I would like to do is create a MSI file that has in the Propery/CMDLINE something like:
PRIMARYPATH="test folder 1" SECONDARY PATH="test folder 2"
Currently I am executing the pgplwiz.exe from the command line this way:
"d:\pgplwiz\pgplwiz.exe" "d:\pgplwiz\Project.exe" "PRIMARYPATH="""test folder 1""" SECONDARY PATH="""test folder 2"""" "d:\pgplwiz\Project.msi" "Setup" "1.0"
The problem here is that the .MSI contains the value for Property/CMDLINE witout the double quotes:
PRIMARYPATH=test folder 1 SECONDARYPATH=test folder 2
If I use the pgplwiz.exe normaly (without the command line) then the double quotes get transfered to the CMDLINE property.
Can anyone please advise on how to use the pgplwiz.exe and have the double quotes in the Command line parameters?
Best Regrads
Damjan
I am using the pgplwiz.exe to create a .MSI package and I am having problems with double quotes and spaces in the string.
The pgplwiz.exe application also support the command line to create a .MSI file.
What I would like to do is create a MSI file that has in the Propery/CMDLINE something like:
PRIMARYPATH="test folder 1" SECONDARY PATH="test folder 2"
Currently I am executing the pgplwiz.exe from the command line this way:
"d:\pgplwiz\pgplwiz.exe" "d:\pgplwiz\Project.exe" "PRIMARYPATH="""test folder 1""" SECONDARY PATH="""test folder 2"""" "d:\pgplwiz\Project.msi" "Setup" "1.0"
The problem here is that the .MSI contains the value for Property/CMDLINE witout the double quotes:
PRIMARYPATH=test folder 1 SECONDARYPATH=test folder 2
If I use the pgplwiz.exe normaly (without the command line) then the double quotes get transfered to the CMDLINE property.
Can anyone please advise on how to use the pgplwiz.exe and have the double quotes in the Command line parameters?
Best Regrads
Damjan