how can I keep a dll resident in memory?

Got a problem you cannot solve? Try here.
Post Reply
sfoxover
Posts: 7
Joined: Thu Apr 01, 2010 7:38 pm

how can I keep a dll resident in memory?

Post by sfoxover »

Hi,

Is there any way to keep a dll or plug-in resident in memory for the duration of the install. I have an exported function call that I run as soon as the installer loads. I then want to call the dll again after I insert a custom dialog. I have a lot of data persisted in the dll that I do not want to convert into a format that can be persisted in the InstallAware script. Is there any way to keep this dll alive for the entire install session?

Regards

Steve
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Re: how can I keep a dll resident in memory?

Post by CandiceJones »

Please do not cross post the same topic in multiple forums.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
dunion
Posts: 106
Joined: Tue Oct 14, 2008 10:43 am

Re: how can I keep a dll resident in memory?

Post by dunion »

Other than using hooks (you can look that up) you might try using a singleton COM object built as a dll and you can run it as an executable from the first program, if noone calls a deref on the COM object it will stay in memory, you can just start program 2 before you end program one, etc.
Post Reply