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
- :
- Re: Retrieve data from MSI DLL in InstallScript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Dec 18, 2009
05:38 AM
Retrieve data from MSI DLL in InstallScript
This may sound like a stupid question but I can't seem to find a definitive answer anywhere so here goes -
I currently have an MSI DLL written in C++ with several CA helper functions for my various Basic MSI installers. All this works without problems.
However I now have the need to create a pure InstallScript installer project but would like to use this same DLL for some of the functions (why re-invent the wheel 😉
I have managed to figure out how to successfully call the functions in InstallScript but how to retrieve the relevant data is the problem.
Obviously this being an MSI DLL all data is normally passed back to the installer via MsiSetProperty, so the question is how do you access this through InstallScript when the there is no running MSI installer process or is it even possible?
Any help will much appreciated.
Regards
Neil.
I currently have an MSI DLL written in C++ with several CA helper functions for my various Basic MSI installers. All this works without problems.
However I now have the need to create a pure InstallScript installer project but would like to use this same DLL for some of the functions (why re-invent the wheel 😉
I have managed to figure out how to successfully call the functions in InstallScript but how to retrieve the relevant data is the problem.
Obviously this being an MSI DLL all data is normally passed back to the installer via MsiSetProperty, so the question is how do you access this through InstallScript when the there is no running MSI installer process or is it even possible?
Any help will much appreciated.
Regards
Neil.
(2) Replies
‎Dec 18, 2009
06:41 PM
For properties set with MsiSetProperty, I think you're correct, that the code won't work without a running MSI process.
‎Dec 21, 2009
04:43 AM
Thanks Robert for the reply.
I guessed as much, so I was thinking the next best thing would probably be to modify the functions in the DLL to not only set msi proprties but to also write that same data temporarily to the registry. Thus I could read the data from their in InstallScript and still maintain one DLL for both types of Project.
This would seem the better long term solution unless someone has a better one to put forward...
Cheers
Neil.
I guessed as much, so I was thinking the next best thing would probably be to modify the functions in the DLL to not only set msi proprties but to also write that same data temporarily to the registry. Thus I could read the data from their in InstallScript and still maintain one DLL for both types of Project.
This would seem the better long term solution unless someone has a better one to put forward...
Cheers
Neil.