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
- :
- Re: Close a running process before installing?
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
‎May 21, 2008
10:36 AM
Close a running process before installing?
I need to do a few things before installing:
1) Delete a file
2) Delete a registry entry
3) Send a key combo
4) End a process
Any ideas on how best to tackle this?
Thanks
1) Delete a file
2) Delete a registry entry
3) Send a key combo
4) End a process
Any ideas on how best to tackle this?
Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2008
12:39 PM
Hello,
Use "DeleteFile" to delete your file. You can use the the registry functions in install shield to delete your key. There several examples in the forum and in the help files. Not sure what "Send a key combo" is suppose to do.
You can use this to kill your process...
Use "DeleteFile" to delete your file. You can use the the registry functions in install shield to delete your key. There several examples in the forum and in the help files. Not sure what "Send a key combo" is suppose to do.
You can use this to kill your process...
hWnd = FindWindow("", "Name of your Process");
if hWnd != NULL then
PostMessage(hWnd, WM_CLOSE, 0, 0);
Endif;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2008
01:06 PM
Thanks for the reply!
RE: "Key Combo":
The process that is running has an exe attached to it that automatically restarts the program if the process is terminated. There is a key combo -CTRL+ALT+Function Key - that disables the auto restart.
I suppose the question becomes: is there a way to simulate keyboard input?
RE: "Key Combo":
The process that is running has an exe attached to it that automatically restarts the program if the process is terminated. There is a key combo -CTRL+ALT+Function Key - that disables the auto restart.
I suppose the question becomes: is there a way to simulate keyboard input?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 29, 2008
12:21 PM
Not sure on how to do that in install shield script. I know you can do that in C++. You could write a C++ DLL have have it called from install shield script. That will work.
I do have a question about this process the respawns when it is killed. Is it a windows Service Task? If it is, you could use, "ServiceStopService". This function call will stop the service task.
I do have a question about this process the respawns when it is killed. Is it a windows Service Task? If it is, you could use, "ServiceStopService". This function call will stop the service task.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 29, 2008
01:15 PM
I would refactor the watchdog service to expose an API for enabling and disabling the launch. This sounds like a problem waiting to happen when trying to perform silent installs.
![](/skins/images/04FED02024358F0FDF89E0836F432D6F/responsive_peak/images/icon_anonymous_message.png)