jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

Silent install to select feature without change in normal UI

I currently have one option to install a GUI interface rather than command line only interface for the product I am packaging. So the user gets command line only unless the feature is selected in the AI dialog for custom setup.

So apparently, since only a public property can be passed to the installer, I need to associate a public property with the selection of the feature. so that the user can do something like

SetupMyproduct.exe /qb FULLINSTALL=TRUE

But I also need to keep the same behavior as now. In other words, the custom dialog does not change. So FULLINSTALL would default to FALSE and the dialog box would be displayed as it is now.

In the "Installation Behavior", I have checked "Not Installed by default" - the use can choose to install it ...

If I change to check the box "Install Based on Condition" then what happens? Logically, if the FULLINSTALL were FALSE it would not install and also there would be no dialog presented to the user.

How do I go about this so that, if the property is not specified on the command line, the basic behavior is not changed?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Silent install to select feature without change in norma

Hi,

Just use the property as you described, i.e. by using the option "Installed based on condition". When running with UI, the feature will still appear in the tree, but not
selected by default. If the user selects it for install the condition will be ignore and the feature installed.

If it run with basic UI the feature will be installed only if you set the property in the command line too.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jlarosa
Posts: 3
Joined: Thu Jun 27, 2013 5:21 pm

Re: Silent install to select feature without change in norma

I wanted to see if this can be set more clearly.

M installer only has two features, the default typical and an added portion for a specific folder and a few files.

I want to make the installer contain flags for a quiet install using Command prompt.

Isntead of

Start /d "C:\" program.exe ----> Starts program normally.. (dialog for full or typical install)

I want to keep that option incase they want to do it manually and at the same time be able to do a command prompt install.

start /d "c:\" program.exe /q (quiet install) /f (full install) or /t (typical install) What is the best way of doing this?

Return to “Common Problems”