Support silent install - Advanced Installer Community
kondriks
Posts: 36
Joined: Mon Nov 17, 2014 3:49 pm

Support silent install

Tell me where I can learn more about the support of a silent installation?
I need to design an installer that will run in normal mode, and updates can be put in normal mode or in silent mode.
Now, with the silent mode completely ignored all the default settings in the dialog boxes.
Perhaps there are examples of creating universal installers.
kondriks
Posts: 36
Joined: Mon Nov 17, 2014 3:49 pm

Re: Support silent install

Also tell me how to save the value in a variable to access it in different dialog boxes. With a silent installation value for this variable will take with the registry.
kondriks
Posts: 36
Joined: Mon Nov 17, 2014 3:49 pm

Re: Support silent install

Tell me at least how to use a variable of type INT or DWORD that can be used in various dialog boxes?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Support silent install

Hello,
I need to design an installer that will run in normal mode, and updates can be put in normal mode or in silent mode.
In order to install the updates with UI (normal mode) or sillent mode, you can call the updater using different command lines options. For details, please take a look on the Auto Updater article to see the available command lines options.
You can also take a look on the How to integrate the Updater without writing code? article which may be useful to you.
Also tell me how to save the value in a variable to access it in different dialog boxes. With a silent installation value for this variable will take with the registry.
You can pass the value for the related property through command line, like this:

Code: Select all

msiexec.exe /i "C:\Example.msi" MY_PROP="myValue"
Using the above command line, MY_PROP will be set with myValue.
In order to save the property's value in the registry, you can add a registry key and value to your package.
Tell me at least how to use a variable of type INT or DWORD that can be used in various dialog boxes?
I'm not sure I fully understand your scenario. Can you please give me more details bout your specific scenario, maybe exemplify?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kondriks
Posts: 36
Joined: Mon Nov 17, 2014 3:49 pm

Re: Support silent install

Thanks, Dan.

I want to use a public variable. This variable should be read from the registry. Depending on the value of this variable, I want to install or not to install some files. How to define a variable? In "Wise Installer" product it could be easy to implement.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Support silent install

Hi,

In order to search through the registry, you can go in the Search page and define a registry search operation. You can use the [ New Search Wizard ] toolbar button, to set up a new search, following step-by-step directions.
The property which has been assigned to the search operation (by default it is RESULT_PROPERTY) contains the search result.

Then, you can use this property in the condition field of the related components that you want to condition the installation.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

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

Return to “Common Problems”