Hello,
In order to achieve what you want you can save your ABC/DEF software installation path into a registry value. Then, when installing the main application you can search for the related registry value containing the ABC/DEF software installation path and, then install the desired resource files accordingly.
Here's the steps to proceed:
- When creating your ABC installation project go to "Registry" page, select the "HKEY_LOCAL_MACHINE\Software\[Manufacturer]\[ProductName]" registry key and add the following registry value:
- Name: Path
Type: REG_SZ
Data: "[APPDIR]"
- Repeat the above step for your DEF installation project.
- Create your main installation project.
- Go to "Search" page and add a "New Search" (i.e.
ABC_PATH) using [New Search] toolbar button. Select "ABC_PATH" search and from its context menu choose "Add Location -> Registry". In the "Registry Location Properties" right pane set the following:
- Root: HKEY_LOCAL_MACHINE
Key: SOFTWARE\ABCManufacturer\ABCProductName
Name: Path
Type: The value contains a path to a directory
- Add another "New Search" (i.e.
DEF_PATH) using [ New Search ] toolbar button. Select "DEF_PATH" search and from its context menu choose "Add Location -> Registry". In the "Registry Location Properties" right pane set the following:
- Root: HKEY_LOCAL_MACHINE
Key: SOFTWARE\DEFManufacturer\DEFProductName
Name: Path
Type: The value contains a path to a directory
- Go to "Files and Folders" page and create a property based folder using "New Folder -> Property Based" context menu option. In the
"Property Picker" dialog select the "ABC_PATH". Here add the related "File ABC".
- Go to "Organization" page, select the related "File ABC" component and in the "Component Properties" right pane set the "Condition" field to:
ABC_PATH
- Repeat the above steps for the related "File DEF".
- Build and run your project.
Let us know if this helped.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging