Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Linking custom action DLL to custom dialog button


3 replies to this topic

icfantv

icfantv
  • Members
  • 2 posts

Posted 06 June 2005 - 19:34

Hi-

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.

-Adam

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 June 2005 - 08:12

That sample is for Basic MSI project only. If you use InstallScript to display your dialogs try the sample "File Browse Dialog" at http://www.installsi...s/en/isp_ui.htm

icfantv

icfantv
  • Members
  • 2 posts

Posted 08 June 2005 - 14:06

Stefan-

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.

-Adam

Edited by icfantv, 08 June 2005 - 14:08.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 June 2005 - 17:16

ControlEvent etc tables are used when Windows Installer handles the UI (Basic MSI project). You are using InstallScript MSI which means that you have an external UI that is purely driven by script (in the InstallShield engine, not Windows Installer). MSI basically only copies the files.