Overriding Globals Via Command Line - Advanced Installer Community
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Overriding Globals Via Command Line

Scenario is I have a parent MSI with an Install Parameter defined:

CXME_CONNECTION (Default of 1)

I try to override this value from a command line install, e.g.:

"CiceroDiscoveryClient.exe" /L*V "C:\CiceroDiscoveryClient_Install.log" /CXME_CONNECTION=0

BUT it seems like the child MSI gets passed the default value of 1 versus the "0 override".

I thought that this command-line passing in of globals was supposed to work like I'm attempting.

Scott J.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Overriding Globals Via Command Line

Hi Scott,

Can you please try to use CXME_CONNECTION=0 instead of /CXME_CONNECTION=0 and see if this works? To set a property from command line it is not necessary to use the "/" character in front of it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Overriding Globals Via Command Line

Yep, that was the issue. My bad. I knew that, was a long day working on installers yesterday :oops:
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Overriding Globals Via Command Line

No problem. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”