[RESOLVED] [InnoSetup] Close Before Installation
I am getting ready to deploy an Application of mine with Inno Setup (5.3.6). I have the installer and un-installer completly tested, but I would like to know if there is a way to have Inno close the application before it Un-Installs? I don't want to have it saying "Not all files could be removed, you can remove them yourself if you want to." My program is made using VB.Net 2008. I'd appreciate your help! :) Also, The program uses an on Form Closing event to save data, so if you could tell me how to do this and still make that Event fire, that would be great! Thanks!
E
Re: [InnoSetup] Close Before Installation
After an hour searching, 'cause I also want this, I found this:
Code:
const
WM_CLOSE = $0010;
function InitializeSetup: Boolean;
var
Wnd: HWND;
begin
Wnd := FindWindowByWindowName('<window name>');
if Wnd <> 0 then SendMessage(Wnd, WM_CLOSE, 0, 0);
Result := True;
end;
but I don't know how to implement this. Let me know how it works if you can make it work.
Re: [InnoSetup] Close Before Installation
Re: [InnoSetup] Close Before Installation
Re: [InnoSetup] Close Before Installation
Thanks For your help! One of those links contains the perfect code, although, I might just go with a Mutex We will see :D
Thanks!
E
Re: [InnoSetup] Close Before Installation