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.
In what regards this, in the "Search" page, you can create a "Registry Search".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?).
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
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
FOLLOW US
Get the latest news in Application Packaging