|
-
Mar 13th, 2010, 07:04 PM
#1
Thread Starter
Lively Member
[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
-
Mar 14th, 2010, 05:11 PM
#2
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.
-
Mar 14th, 2010, 05:31 PM
#3
Re: [InnoSetup] Close Before Installation
Last edited by Radjesh Klauke; Mar 14th, 2010 at 05:35 PM.
-
Mar 16th, 2010, 02:16 AM
#4
Re: [InnoSetup] Close Before Installation
-
Mar 16th, 2010, 01:37 PM
#5
Thread Starter
Lively Member
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 
Thanks!
E
-
Mar 23rd, 2010, 05:35 AM
#6
Re: [InnoSetup] Close Before Installation
Let me know
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|