briancorcoran
Posts: 19
Joined: Thu Mar 16, 2017 4:21 pm

Passing property value in silent install

Hi,

I have a custom dialog checkbox whose property is SERVICES_INSTALL_CHECK. By default this is set to "False". I would like to be able to run a silent installer where this value is set to True, to force the action as if the check had been selected. I tried running a silent install like:

"myInstaller.exe" SERVICES_INSTALL_CHECK="1" /qn

This does not work. In desperation, I also tried initializing the property in a custom action setting it to 1 in both Wizards Dialogs Stage and Install Execution Stage.

Do I need to pass a string value of "True" or "False" in the command line? Is the initialization necessary? Is there something I am missing with setting up a public property?

Thanks for your help,

Brian
briancorcoran
Posts: 19
Joined: Thu Mar 16, 2017 4:21 pm

Re: Passing property value in silent install

It looks like I just needed to reverse the two parameters and it worked. So, never mind.

Brian
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Passing property value in silent install

Hello Brian,

I'm glad you got this working.

Let us know if there is anything else we can assist you with.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”