Advice required on installer build - 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!

dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Advice required on installer build

Hi

I have a new project that is ready to roll out, and will be available in a standard and professional version (two seperate projects as opposed to, for example, AI where all the functionality is contained within the single program and the license type determines at what point a nag screen gets shown). In theory I would like to be able to offer the end user the opportunity to upgrade if they so desire and at that point the professional version would simply overwrite the standard version. The actual license would be different but essentially it would go to the same directory and hopefully be able to make use of any existing user settings from the previous edition stored in the user's app data directory.

I have no issues with building the actual installer , configuring licensing etc (this will be using the AI licensing system) my problem is determing if it's possible to build installer for the professional edition that would be capable of overwriting the standard edition, using a different license number, but at the same time preserving the existing user settings from the standard edition. Any advice you can give on how best to achieve this, if it can be done, would be much appreciated.

Dom
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Advice required on installer build

Hi Dom,

I'm afraid this is not possible. In order to have an installer for the same version of the application, but for a different edition installed on the machine
you will need to ask the user to manually uninstall the old version, i.e. the trial one.

Another approach that you could use it to deploy the complete application from the beginning, but limit the access to its features, based on the license type, as we do for Advanced Installer.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Advice required on installer build

Hi Bogdan

Thanks for the reply. I had the feeling that it probably wouldn't be possible to have two seperate products, so if I were to go with just the one , but limiting the functionality according to the licence, would I be able to use AI's inbuilt licencing to accomplish that and if so how would you suggest it's done?

Dom
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Advice required on installer build

Hi Dom,

This can be done by integrating the licensing feature into your application.
Here is our tutorial to get you started. You may also find useful our sample licensing projects.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Advice required on installer build

Hi Mihai

I've integrated AI licensing int several projects, that's not an issue , it's whether it can b used to differentiate between feature sets in the same way that the system you use for AI itself differentiates between a professional and enterprise license. At present I can't see any way to achieve taht with the AI licensing system, but if i'm wrong I'd love to know how it's done.

Dom
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Advice required on installer build

Hi Dom,

I see what you mean.

This can be easily done by using "User specific customized license" license format:
http://www.advancedinstaller.com/user-g ... ation.html

This article's "Adding custom license elements" section describes what you need:
http://www.advancedinstaller.com/user-g ... ialog.html
Just make sure when generating each license for your user your keep the same license type string( e.g. Professional ).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Advice required on installer build

Hi Mihai

I had stupidly overlooked the fact that the license could be customised, thank you for reminding me.

I have since gone on to do this but now face an interesting little problem. Tecnically this probably isn't a problem directly linked to AI itself, but it would be great to see a sample illustrating how the following could be achieved with AI (and for good measure it would need to be in both C# and VB).

Assuming one builds an application comprised of both standard and advanced / professional features (as with AI itself). In pure trial mode everything works, however when licensed in standard mode you can still see everything else in the professional version, possibly even use it, but it throws a nag when used or deployed. I had initially though about simply hiding all the additional features of the professional version but soon realised that you really need standard users to be able to see them in order to see what they are missing and be encouraged to upgrade, so thats the scenario that it would be great to see a sample of.

Thanks

Dom
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Advice required on installer build

Hi Dom,

I'm afraid we don't have any samples on this available. However, it should not be very hard to implement, you just need to read the value of the property "TYPE" using the method "GetPropertyValue", as we describe here:
http://www.advancedinstaller.com/user-g ... perty.html

You can for example perform this check every time the user launches the application and store it in a temporary registry entry, so you can easily obtain it throughout the application without making multiple calls to our method. Then you need to simply enable/disable your UI labels/elements that give the user the access to the features from a higher edition, for example the entries from the application's menu, like we do for Advanced Installer.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”