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!

Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: 2 different builds in one installer

Hello and welcome to Advanced Installer forums,

In order to achieve what you want, you can use our predefined support for "Prerequisites".

For instance, you can create a new Advanced Installer project and add both your setups (the one for the first addon and the one for the second addon) as "feature-based" prerequisites in the "Prerequisites" page.

After doing so, in order to conditionally install them based on the user's selection, please have a look over our "How to conditionally install a prerequisite based on the user selection?" article, which I think you may find useful.
Also, in the next dialog (install dialog), will be fantastic if the installer could find the right directory for selected version of Game (by registry key?).
In what regards this, in the "Search" page, you can create a "Registry Search".

Let's say that your game writes, at install time, in the registry, its installation path. Through a registry search, you can retrieve this path. Let's say the path looks as it follows:

WindowsDirectory\Program Files(x86)\YourGame

The above path, if found, will be stored by the search operation in a Windows Installer property (e.g. MY_PATH_PROPERTY).

In Advanced Installer, in "Dialogs" page you can select your dialog (e.g. "FolderDlg") and add an "Init Event", that may look something as it follows:

Event: Set installer property
Property: APPDIR
Argument: [MY_PATH_PROPERTY]
Condition: MY_PATH_PROPERTY


SetProperty.png
SetProperty.png (240.98 KiB) Viewed 4885 times

Basically, the above event will automatically set the installation folder of your addon to the installation folder returned by the search (the installation folder of the installed version of the game) if the search was successful.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”