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
Double quotes while creating a MSI package
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Double quotes while creating a MSI package
Dear Damjan,
please try this;
pgplwiz.exe "F:\Test\Release\Single\test.exe" "PRIMARYPATH="'"'c:\my path'"'" SECONDARYPATH="'"'c:\my new path'"'"" "f:\MyProject.msi" "My Project" "1.0"
Just tried and works fine.
Regards
please try this;
pgplwiz.exe "F:\Test\Release\Single\test.exe" "PRIMARYPATH="'"'c:\my path'"'" SECONDARYPATH="'"'c:\my new path'"'"" "f:\MyProject.msi" "My Project" "1.0"
Just tried and works fine.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Double quotes while creating a MSI package
Sorry Francesco, I have tried your solution but instead of giving me one double quote it gives me two single quotes
Can you confirm that you get a double quote around the path?
Best regards
Damjan

Can you confirm that you get a double quote around the path?
Best regards
Damjan
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Double quotes while creating a MSI package
Dear Damjan,
unfortunately you are right
By mistake while testing the above approach, I passed a double sequence of "single quote", which I have erroneously interpreted as a printed "double quote" character.
I hope to have some news soon.
Regards
unfortunately you are right
By mistake while testing the above approach, I passed a double sequence of "single quote", which I have erroneously interpreted as a printed "double quote" character.
I hope to have some news soon.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Double quotes while creating a MSI package
I hope the news will be good
Regards
Damjan

Regards
Damjan
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Double quotes while creating a MSI package
Dear Damjan,
I am happy to inform you about the fix availability.
Please download and install the latest InstallAware X3 trial (ver. 20.04).
IMPORTANT NOTE!
It's necessary a full product installation and a new re-generated license file to activate the product.
For what concerns the "double quotes" escape sequence, please use the following format.
pgplwiz.exe "F:\Test\Release\Single\test.exe" "PRIMARYPATH=""c:\my path"" SECONDARYPATH=""c:\my new path""" "f:\MyProject.msi" "My Project" "1.0"
Regards
I am happy to inform you about the fix availability.
Please download and install the latest InstallAware X3 trial (ver. 20.04).
IMPORTANT NOTE!
It's necessary a full product installation and a new re-generated license file to activate the product.
For what concerns the "double quotes" escape sequence, please use the following format.
pgplwiz.exe "F:\Test\Release\Single\test.exe" "PRIMARYPATH=""c:\my path"" SECONDARYPATH=""c:\my new path""" "f:\MyProject.msi" "My Project" "1.0"
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Double quotes while creating a MSI package
I've tried it and it works.
You guys rock
Regards
Damjan
You guys rock




Regards
Damjan
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Double quotes while creating a MSI package

Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: Baidu [Spider] and 72 guests