Page 1 of 1

Double quotes while creating a MSI package

Posted: Mon Sep 07, 2015 3:23 am
by damjan
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

Re: Double quotes while creating a MSI package

Posted: Tue Sep 08, 2015 5:56 am
by FrancescoT
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

Re: Double quotes while creating a MSI package

Posted: Tue Sep 08, 2015 8:08 am
by damjan
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

Re: Double quotes while creating a MSI package

Posted: Tue Sep 08, 2015 10:10 am
by FrancescoT
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

Re: Double quotes while creating a MSI package

Posted: Wed Sep 09, 2015 3:57 am
by damjan
I hope the news will be good :D

Regards

Damjan

Re: Double quotes while creating a MSI package

Posted: Wed Sep 09, 2015 10:52 am
by FrancescoT
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

Re: Double quotes while creating a MSI package

Posted: Thu Sep 10, 2015 8:14 am
by damjan
I've tried it and it works.

You guys rock 8) :D :P :)

Regards

Damjan

Re: Double quotes while creating a MSI package

Posted: Thu Sep 10, 2015 9:03 am
by FrancescoT
:D