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
- :
- Can't read property in OnFirstUIAfter
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
Oct 22, 2012
08:41 AM
Can't read property in OnFirstUIAfter
Hi,
I'm trying to run a sql script via a managed dll. The sql script is in my package, so I need to wait to run it, until after all my files have been extracted. I've tried using the OnFirstUIAfter function for this, but when I read the property that the user earlier stored the connection string in, it is blank. The connection string is set in a dialog when the user picks the database they're using.
Apparently the properties get reset by the time you reach OnFirstUIAfter? Is there another method that I can use that will be executed after all the files are extracted, but before OnFirstUIAfter? I tried using OnGeneratingMSIScript earlier, but the sql file apparently hadn't been extracted at the point at which that fired.
Thanks,
Eric
I'm trying to run a sql script via a managed dll. The sql script is in my package, so I need to wait to run it, until after all my files have been extracted. I've tried using the OnFirstUIAfter function for this, but when I read the property that the user earlier stored the connection string in, it is blank. The connection string is set in a dialog when the user picks the database they're using.
Apparently the properties get reset by the time you reach OnFirstUIAfter? Is there another method that I can use that will be executed after all the files are extracted, but before OnFirstUIAfter? I tried using OnGeneratingMSIScript earlier, but the sql file apparently hadn't been extracted at the point at which that fired.
Thanks,
Eric
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 22, 2012
12:17 PM
You may need to use global variables instead. Not ideal, but it does work.
HTH
HTH