Key-dependent feature installation - 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!

phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Key-dependent feature installation

Hello,
is it possible to generate a setup which allows a Serial-Key-dependent feature installation?

Means:

For
  • Key with option A i install Feature A
  • Key with option B i install Feature B
  • Key with option C i install Feature A and B
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Key-dependent feature installation

Hello,

You can use the value of the PIDKEY public property to condition your features from the Organization Page. The PIDKEY public property is set to the serial number entered by the user in the installation UI.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Key-dependent feature installation

Is there a way to validate the pidkey? Or may I use a own application (exe or service)?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Key-dependent feature installation

Hello,
Is there a way to validate the pidkey?
This is a public property that is part of our predefined serial validation mechanism. If you enable it from the Licensing Page, the validation will be done automatically.
For more information please read these articles:
http://www.advancedinstaller.com/user-g ... props.html
http://www.advancedinstaller.com/user-g ... n-dll.html

For example if you have three features defined in the Organization Page:
  • Feature A set with the Condition:

    Code: Select all

    PIDKEY = "123-456"
    Feature A will be installed only if the serial provided by the user installing the package is "123-456".
  • Feature B set with the Condition:

    Code: Select all

    PIDKEY = "789-101"
    Feature B will be installed only if the serial provided by the user installing the package is "789-101".
  • Feature C set with the Condition:

    Code: Select all

    PIDKEY = "112-131"
    Feature C will be installed only if the serial provided by the user installing the package is "112-131".
Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Key-dependent feature installation

That works not. I tested it. I added a aip-file with such as settings.

Do you see my error?
Attachments
setup.aip
(12.75 KiB) Downloaded 788 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Key-dependent feature installation

Hello,

Please note that a feature's purpose is to organize the setup resources and it is not created under any form on the target machine. You should add at least one component into the "Feature by Condition" feature. This way you can actually test if the resources from that feature get installed when the condition is met.

For more information please read this article from our user guide.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Key-dependent feature installation

Hello,
I added a component to my Feature and tested it again. When I enter the key 123-456 and click to custom installation the Feature "Feature by Condition" appears disabled. When I enter the key 896-597, the feature appears also disabled.
My target is, that when I enter 123-456, the feature appears in list, otherwise not. Whats my error?
Attachments
setup.aip
(13.76 KiB) Downloaded 370 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Key-dependent feature installation

Hi,

For the CustomizeDlg to be updated you can set an "Add Local" init event for each feature on the SetupTypeDlg.

This event should be set with the appropriate PIDKEY condition. For example if you want to have a feature marked for installation when the serial is "123-456", you should have the

Code: Select all

PIDKEY = "123-456"
condition set for the "Add Local" event of that feature.

To complete this functionality, from the Organization Page you should set each feature to "Not installed by default" or "Installed by default" depending on the desired case.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Key-dependent feature installation

Hello,
Thangs for your answer. I tried it. But it don't work. The feature allways appears in the CustomizeDlg. If set the feature to "Installed by default", it appears activated, set to "Not installed by default" it is set to deactivated. But it does not disappear.
Attachments
setup.aip
(12.03 KiB) Downloaded 313 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Key-dependent feature installation

Hello,

You should set your init event on the SetupTypeDlg not on the CustomizeDlg.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Key-dependent feature installation

Thanks for your answer. But this unfortunatelly don't work. The "FeatureWithSerial" is always visible. I uploaded my project file again. I hope you find the error. Thanks.
Attachments
setup.aip
(11.99 KiB) Downloaded 419 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Key-dependent feature installation

Hello,

I apologize, it seems I misunderstood what you need. The "AdLocal" method can help you disable the feature but it will still be visible in the CustomizeDlg.

Here is an older similar thread that can help you achieve this using the CustomizeDlg.

Another approach is by using a custom dialog to display your features. Here is the article that can show you how.

Hope this helps.
Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Key-dependent feature installation

Ok, thank you.
What I wanted was, that Features will be hidden on the CustomizeDlg. Deactivating them is not what I want.

Return to “Common Problems”