benjy
Posts: 35
Joined: Mon Nov 02, 2009 12:25 pm

Automatically choosing installation type

Hi there,

I need a little bit of help...

What I would like to accomplish is that when our installer upgrades an existing version, it will conditionally not show the Setup Type dialog and instead, automatically choose either "Full" or "Typical" based on what's already installed. Here is how I plan to accomplish this:

- Write a custom action that will detect what is installed and set a variable to prevent the Setup Type dialog from appearing.
- Condition the Setup Type dialog to use this variable as per http://www.advancedinstaller.com/user-g ... ialog.html.
- Configure the relevant installer parameter to install full or typical, as appropriate.

Does this sound like a workable plan? I can certainly work on the first two steps but where I am uncertain is which installer parameter(s) I need to set to specify the installation type.

Any help gratefully received!

Ben
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Automatically choosing installation type

Hi Ben,

You do not need to implement all the steps you mentioned because some of them are done by default in a Windows Installer package. For example, during the upgrade all the already installed features will be selected by default (only if you do not have custom conditions set for them) and the "OLDPRODUCTS" property will be set to the Product Code of the old version.

So, to achieve what you want, you can simply go in the "Dialogs" page, right-click on the "SetypTypeDlg" dialog, use the "Show only if..." option and write the following condition: NOT OLDPRODUCTS

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”