How to set a registry key on 1st time installation only - 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!

ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

How to set a registry key on 1st time installation only

I want to set a registry key only during 1st time installation, but not during updating an old version.
For this I have added a feature, and the reg key is installed only with that feature.

But I do not know how to define the conditional install level for that.

At the feature properties I have selected 'Disabled' and the defined a conditional install level:
Condition: (Not Installed)
Level: 1
But it is still always installed.

thank you
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to set a registry key on 1st time installation only

Hello,

Your registry key should be placed in a component of its own and conditioned with the following condition:

Code: Select all

((Not Installed) AND (NOT OLDPRODUCTS))
There is no need to place it in a different feature.

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

Return to “Common Problems”