Hi,
What you are trying to do can be achieved with a search in the registry and two custom actions.
Here is how it could be done:
- Go to the "Search" page.
- Use the [ New Search ] toolbar button to schedule a new search. A new property, that will retain the registry path if the search is successful, will appear in the tree. You can rename the property to say, RESULT. Select that property.
- Use the [ Add Location ] toolbar button to select the "Registry" option.
- Set the fields form the "Registry Location Properties" page to the desired values.
For more information please visit:
http://www.advancedinstaller.com/user-guide/search.html
Here is how you could create the custom actions.
- Create a custom action that will delete the registry if the search is successful. You can use a VBScript to do that and set it as an "New Attached Custom Action". Edit the "Expression" field form the "Execution condition" group to RESULT. This custom action will be executed only if the registry location is found.
- Now create an new custom action that will add a file if the search is unsuccessful. This custom action is similar to the previous one. This time edit the "Expression" field to NOT RESULT.
For more information please visit:
http://www.advancedinstaller.com/user-g ... -page.html
All the best,
Ciprian
FOLLOW US
Get the latest news in Application Packaging