Double quotes while creating a MSI package

Got a problem you cannot solve? Try here.
damjan
Posts: 12
Joined: Thu Jul 10, 2014 7:04 am

Double quotes while creating a MSI package

Postby damjan » 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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Double quotes while creating a MSI package

Postby FrancescoT » Tue Sep 08, 2015 5:56 am

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
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

damjan
Posts: 12
Joined: Thu Jul 10, 2014 7:04 am

Re: Double quotes while creating a MSI package

Postby damjan » Tue Sep 08, 2015 8:08 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Double quotes while creating a MSI package

Postby FrancescoT » Tue Sep 08, 2015 10:10 am

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
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

damjan
Posts: 12
Joined: Thu Jul 10, 2014 7:04 am

Re: Double quotes while creating a MSI package

Postby damjan » Wed Sep 09, 2015 3:57 am

I hope the news will be good :D

Regards

Damjan

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Double quotes while creating a MSI package

Postby FrancescoT » Wed Sep 09, 2015 10:52 am

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
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

damjan
Posts: 12
Joined: Thu Jul 10, 2014 7:04 am

Re: Double quotes while creating a MSI package

Postby damjan » Thu Sep 10, 2015 8:14 am

I've tried it and it works.

You guys rock 8) :D :P :)

Regards

Damjan

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Double quotes while creating a MSI package

Postby FrancescoT » Thu Sep 10, 2015 9:03 am

:D
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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 134 guests