I need to install Flash player with my application MSI. So I did these steps:
- Go to Launch conditions editor.
- Right click Search target machine.
- Add registry search
- In the property window of the registry search I wrote:
- Property – FLASHPLAYERREGISTRYVALUE
- RegKey – SOFTWARE\Macromedia\FlashPlayer\CurrentVersion
- Root – vsdrrHKLM
- Value – 10,3,181,34
- Right click Lauch conditions
- Add Launch condition
- In the property window of the condition I set:
- Contidion – FLASHPLAYERREGISTRYVALUE (the search registry property name)
- InstallUrl – Flash player installation url
- Message – …
The installer returns false all the time. I mean it says no flash player installed although the key allready exists in the registry and it tries to install Flash player .
To install other software with your package you can use prerequisites. Here is a discussion which may help you: Adding Custom prerequsites to visual studio setup project
A better detection criteria is checking the version for this file: