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: Global variable issue with entry-point function and script event handler
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
Jun 27, 2007
08:16 AM
Global variable issue with entry-point function and script event handler
I have installssript with entry-point function( called from custom action ) and script event handler. It also have a global variable which get set in the event handler, say OnFirstUIBefore. The same global variable is used in the expression in the entry-point function which is attached to a custom action. This Custom action get executed way after OnFirstUIBefore event occurs. This means, the value of a global variable which get sets in the OnFirstUIBefore should be visble in the custom action. BUT ITS NOT. The global variable return blank. When I check a global variable in OnEnd event handler, it has same value which was set in OnFirstUIBefore.
So is this issue with Global variable or its by design.
Thanks
So is this issue with Global variable or its by design.
Thanks
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 27, 2007
09:30 AM
If you're working with an InstallScript MSI project, perhaps see if this addresses what you're seeing (it has to do with how the InstallScript engine is loaded and unloaded at run time): http://support.installshield.com/kb/view.asp?articleid=Q112115#ISMSIglobal.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)