View Full Version : Easy question - vbscript from Setup.rul

01-04-2005, 05:41 PM
What is the syntax for calling a vbscript function from an event (OnFirstUIBefore) in the Setup.rul file? I have the script included in a custom action and stored in the binary table (I'm assuming that's necessary to allow the function and script to be accessed when the client is running the install).

01-04-2005, 06:14 PM
I'd try the Windows Installer API function MsiDoAction with arguments ISMSI_HANDLE and the name of your custom action (as a string). It's at least documented to do what I think you want, within some limitations mentioned in the Windows Installer SDK help.