Linking custom action DLL to custom dialog button
Posted 06 June 2005 - 19:34
I've downloaded http://www.installsi...owseForFile.zip and am essentially trying to make it work. Following http://www.codeproje...ustomaction.asp, I can successfully call the DLL's method as part of the UISequence by insterting a line in the InstallUISequence Table but the first link's instructions about how to link a button in a custom dialog to this DLL does not appear to be working for me even after entering the appropriate information in the ControlEvent table.
We're using IS 8.0 but I'm hoping the solution is the same across different versions.
Anyone have any pointers to websites that describe this process in a little more detail? Thanks.
Posted 08 June 2005 - 08:12
Posted 08 June 2005 - 14:06
Thanks for the reply. After some research and some debugging with MessageBox'es inside my DLL and InstallScript I came to the realization that the installer was basically ignoring the ControlEvent table. I'm not sure if this is a limitation with the version of InstallShield I happen to be using (Developer 8) or what.
Regardless, I had an ephiphany yesterday about calling custom actions from within InstallScript using the MsiXXX functions and vola! using MsiDoAction() I can call my custom action (the file chooser DLL) and using MsiGetProperty and MsiSetProperty I can set the default value in the file chooser and retrieve any user selected value from the file chooser. After this, all is well and I'm on my way...
I just checked out that link you sent and I must say I had no idea all that could be done within InstallShield. Good to know for the future...
Thanks for the response.
Edited by icfantv, 08 June 2005 - 14:08.
Posted 08 June 2005 - 17:16