Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Silent Install

I am trying to run a silent install for my exe using the cmd line. The problem is that I have a checkbox that when checked causes the installer to create an Environment Variable. The checkbox is named CheckBox_1 and the Property Name is CHECK1. The component for the Environment Variable has the Condition of CHECK1. So if CHECK1 = True the Variable is set. Below is my command argument,

Code: Select all

MyProgram.exe /exenoui APPDIR="C:\Trax" CHECK1=false /passive
I created a log of the install but and the Property(s) for CHECK1 is false. I think the problem is that since the checkbox is technically checked in the UI it resets this value to true during install. Is there a way to directly set the checkbox to default to false from the command line without defaulting it to false for the entire exe?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Silent Install

Hello,

When using the below switch, it means the property contains the related value false:

Code: Select all

CHECK1=false
In your case, you need to set the CHECK1 to null. So, you should have something like that in the command line:

Code: Select all

MyProgram.exe /exenoui APPDIR="C:\Trax" CHECK1="" /passive
Let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Re: Silent Install

Just tested out using CHECK1="" and it didn't work. The Environment Variable is still being set.

Also i checked the Log file and it says

Code: Select all

Property(s): CHECK1 = REBOOTPROMPT=S
Is that correct?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Silent Install

Hello,

I'm not sure why you encountered the this behavior.
In order to have a better view about this, can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Re: Silent Install

Have you received the .AIP file?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Silent Install

Hi,

It seems this is an Advanced Installer issue. When the Enhanced User Interface is enabled and performing a silent installation, the empty properties are not passed to the .MSI.
A fix will be available in a future version of Advanced Installer. Thank you for brining it to our attention.

In this case, here is what you can try:
  • Use the following command line:

    Code: Select all

    MyProgram.exe /exenoui APPDIR="C:\Trax" CHECK1="" /qr
  • Use a different statement in the Condition field from the Component Properties e.g. (CHECK1 = "install").
When you don't want to create the environment variable, you can pass any value for the CHECK1 property in the command line and the environment variable will not be created. (e.g. CHECK1 = "no")

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”