Hi,
This can be done by using a property-based folder and two custom actions:
- go to the
Install Parameters page and create a custom property
- set its value to a valid path (for example "C:\")
- go to the
Files and Folders page and create a property-based folder by using the custom property
- add your files into this folder
- go to the
Search page and create a new search
- set the location of the search to your custom registry entry
- go to the
Custom Actions
- use the "Show Standard Action" button on the toolbar to show the "InstallExecuteSequence" -> "RemoveFolders" standard action
- under "RemoveFolders" create two "Directory set with Formatted" custom actions
- configure these custom actions to set the path of your property-based folder
- the conditions of these custom actions should be based on the property of the registry search you created
Basically, the package will search for your custom registry entry and it will store the result into an installer property. This property will then be used by the two custom actions to determine which custom action will set the final path of the property-based folder.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging