InstallMode = InstallModeComplete OR Typ OR Custom - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

AnneTheAgile
Posts: 61
Joined: Wed Jun 08, 2011 9:53 pm

InstallMode = InstallModeComplete OR Typ OR Custom

hi, I see AIP has variables for the InstallMode, which can be set when one uses the SetupTypeDlg Dialog. For example, they are referenced in the log shown here;
http://www.advancedinstaller.com/forums ... 59&start=0

Since they are mixed case they are private properties, right?

I would like to use them to condition a custom action. What is the best way to do that? In other words, I'd like on commandline and on GUI to be able to choose custom/complete/typical and then have my custom action perform according to that setting.

thank you!!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: InstallMode = InstallModeComplete OR Typ OR Custom

Hello,

Usually custom actions are conditioned by features not by the install mode. Can you please give us more details on what you're trying to achieve?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AnneTheAgile
Posts: 61
Joined: Wed Jun 08, 2011 9:53 pm

Re: InstallMode = InstallModeComplete OR Typ OR Custom

I guess I'm confused because I am using AIP's provided SetupTypeDlg which gives me the chooser for Complete/Custom/Typical mode. When I look at the published events for those modes, ie their buttons, all I see are AIP's setting of either/both of the variables InstallMode and "Set Install Level".

So I thought I was supposed to utilize those for conditioning my custom actions? Maybe you are saying that instead I should be adding onto the buttons' published events to set the proper type(s) of Feature state? I don't recall seeing that on the docs.
thank you!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: InstallMode = InstallModeComplete OR Typ OR Custom

Hello,
When I look at the published events for those modes, ie their buttons, all I see are AIP's setting of either/both of the variables InstallMode and "Set Install Level".
Indeed the InstallMode property is used to identify whether the user chose Custom, Typicall or Complete in SetupTypeDlg.

The custom actions should be conditioned depending on their install time functionality.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AnneTheAgile
Posts: 61
Joined: Wed Jun 08, 2011 9:53 pm

Re: InstallMode = InstallModeComplete OR Typ OR Custom

>Indeed the InstallMode property is used to identify whether the user chose Custom, Typicall or Complete in SetupTypeDlg.
That's what I thought but then it did not seem like I could depend on that value because the InstallLevel was set similar to the following;
InstallLevel = 3 = typical
InstallLevel = not set = custom
InstallLevel = 1000 = complete

Thus I was confused what is the best practice for using such UI values to condition other elements? It seems like what people want to occur is perhaps that the custom would have an InstallLevel = some in between value maybe additive depending on what was selected. Then that would be used to condition features, instead of just the overall InstallMode property?
I hope this is clearer, thank you so much!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: InstallMode = InstallModeComplete OR Typ OR Custom

Hello,
Thus I was confused what is the best practice for using such UI values to condition other elements?
There are the package INSTALLLEVEL values which you listed and there are individual features' Level values. You can set each feature's level from the Organization page -> Your_Feature -> "Install based on condition" -> "Set additional install conditions" -> Edit Conditional Level Dialog.

Basically the package INSTALLLEVEL will be set depending on what the user choses in the SetupTypeDlg or by the default value (silent installation). Subsequently, all features that have a level value which is less or equal than the package INSTALLLEVEL, will be installed.

For more information about INSTALLLEVEL property you can follow MSDN.
Then that would be used to condition features, instead of just the overall InstallMode property?
Conditioning features can be done from "Install based on condition" field I mentioned above. A feature's condition depends on the installer architecture which is dictated by the software you're installing. What exactly do you mean by this?

Again, if you're looking to condition custom actions depending on features you could use something like:

Code: Select all

&Feature=3
This condition will be true only if the feature "Feature" will be installed locally. If the feature is not selected for installation the condition is false. You can read more from Edit Condition Dialog.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”