This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Access Advanced UI Properties from Installscript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 14, 2020
07:54 AM
Access Advanced UI Properties from Installscript
Hello Community,
I am creating an Installer where I need to include external drivers from STM. The drivers are installed through calling an executable with os-specific .inf files. I created an Advanced UI project where the driver installation is associated to a Feature and it is working fine but I did not find a way to set the Detect Condition as I want it.
My way to check if the driver is installed is to look for the .inf file under C:\Windows\System32\DriverStore\FileRepository\, the problem is, I cannot exactly say in which directory the file is, I know it is somewhere there but the exact name of the directoy seems to depend on some factors I do not know and therefore be different depending on your machine.
For that reason I cannot use the regular Installshield Package -> Detection Condition -> File exists since Installshield expects the exact directory. What I am trying to achieve is run an Installscript as OnBegin Event, inside it I would check the presence of the driver and set an Installshield Property, that will then be used as Detection Condition.
I thought of using the MsiGetProperty() and MsiSetProperty() functions but this is not possible for Advanced UI projects... Is there a way to access Advanced UI project Properties from Installscript? or a method to pass information from an Installscript to and Advanced UI project?
Many thanks,
Pierre
(0) Replies