cancel
Showing results for 
Search instead for 
Did you mean: 
ewgoforth
Pilgrim

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
Labels (1)
0 Kudos
1 Reply
ch_eng
Flexera beginner

Re: Can't read property in OnFirstUIAfter

You may need to use global variables instead. Not ideal, but it does work.

HTH
0 Kudos