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!

phistecaca
Posts: 6
Joined: Fri Oct 14, 2016 8:31 am

Help with initial multiple choices

Hi all! I'm trying to build a not basic installer and I need some tips about project layout. This is what I need:

I have a desktop application which is self contained into a bin directory. This is the core which is the common component, shared between each application version. The only thing that differentiates the versions is a config folder.
So, an "application version" is composed by the core and a config folder.
Each application version has an independent "identity" (name, version, installation path, properties).
I need a single installation package that encloses a single instance of the core and all possible configurations. When launched, it should ask the user which version to install.
It's important that on the same machine and for same user, each version may coexist with others: if I install version A1, later I should be able to install version B2;
if I execute again the installer choosing to install version A1, the installer should show the modify/repair/uninstall wizard with each operation related to version A1 only.

Any help will be greatly appreciated!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Help with initial multiple choices

Hello and welcome to Advanced Installer forums!

To structurate your project you can organize the version files and the main application into features and then conditionally install the features according to the user input.

In order to achieve this you can do the following :
  • Group the files in features in Organization page. The feature containing the common parts should have Feature tree - "Not displayed" in the Feature properties, so it can not be remove by the users at install.
if I execute again the installer choosing to install version A1, the installer should show the modify/repair/uninstall wizard with each operation related to version A1 only.
If you run the same installation package for the second time then Windows Installer will run the installer in maintenance mode and the user will then be presented with choices to alter the installed product, repair it or remove it (done through the MaintenanceTypeDlg). This is happening because the installation package has the same PackageCode GUID. A new PackageCode is generated each time you build your project. Think of the PackageCode as some sort of checksum. No two .msi files should ever have the same PackageCode unless they are identical.

Please take a look on the Product Identification article.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phistecaca
Posts: 6
Joined: Fri Oct 14, 2016 8:31 am

Re: Help with initial multiple choices

Thanks Dan for your suggestion!
Your solution it's pretty interesting. The features explaination should fit but I'm afraid the second part will not work exactly as I would.
The maintenance dialog should be shown only if the user does select a version already installed.
I mean, let's say the user does install version A1. Then he tries to install version B2 (using the same installer with same PackageCode).
At this point the maintenance dialog should not be shown because the version B2 is a fresh one. In general, the maintenance dialog should be shown only after the version selection but only if selected version is already installed.
Do you think it could be possible to achive this with Advanced Installer? What about Multiple Instances?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Help with initial multiple choices

Hello,

Firstly I want to apologize for our delayed reply. Your last post was somehow overlooked by our support team.

Yes, the "Multiple Instances" support should help you get exactly the UI behavior you need.

Let us know if you have any further questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”