Problem INSTALLLEVEL-Custom actions - 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!

Compiler
Posts: 9
Joined: Mon Jun 08, 2009 9:28 am

Problem INSTALLLEVEL-Custom actions

Hello,

I want to modify the property INSTALLLEVEL with a custom action,
the property must have the value 1000 when we choose InstallModeCustom and when we select a specific feature to be installed (I set this in Execution Condition)

Whatever I do, the value of INSTALLLEVEL is set to his default value.

If I set in Execution Condition only InstallModeCustom, I have INSTALLLEVEL=1000
If I add to this that the feature will be install, I never had INSTALLLEVEL=1000

Have You any ideas?

Thank You
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem INSTALLLEVEL-Custom actions

Hello,

Please send your .aip project file to support at advanced installer dot com, explaining there in more detail what you are trying to achieve.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Compiler
Posts: 9
Joined: Mon Jun 08, 2009 9:28 am

Re: Problem INSTALLLEVEL-Custom actions

Sorry, I reformulate,

At the end of my install, I want to write in registry a value only if a specific feature is installed,

I don't find how I can do,

Thank You
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem INSTALLLEVEL-Custom actions

Hello,

In the registry page, create the registry key you want to install. After this, right click it and "Go to component". You will be taken to the Organization page, with the component to which the registry key belongs selected. Move this component under a feature. Now the component (including the registry key) will only be installed if that feature is installed.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Compiler
Posts: 9
Joined: Mon Jun 08, 2009 9:28 am

Re: Problem INSTALLLEVEL-Custom actions

Thanks for your answer,

but If the specific feature is not installed i want to set another value to the register key

For resume :

SPcfeature installed ==> RegKey = 1000
SPcfeature not installed ==> RegKey = 3

How can i do this ?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem INSTALLLEVEL-Custom actions

Hello,

For this, you will have to use the reg command line utility as a custom action to create the registry key. Condition the custom action to run if a feature is not selected for install. For this, you can use the "..." button found to the right of the condition field. Use the "feature state" and "feature actions" buttons to insert conditions that depend on the feature state or action.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”