|
#1
|
|||
|
|||
|
check for a running process
If there a way to check if a process(.dll) is running before the install gets going ? If a user has the product running and trying to install a new version of the product, things will go badly.
|
|
#2
|
|||
|
|||
|
Stuff like that should be put into FAQ... I had to ask here as well and then dork around writing the working script...
If I understand correctly it can be done via bootstrapper only Here is what I did - Add code below to "C:\Program Files\Setup Factory for Windows Installer Trial\Bootstrap\Data\default_embed_setup.lua" (somewhere close to the top) - In the build settings set "bootstrapper = Standard" - Compiled .EXE will be aware about running process, the .MSI will not Code:
processes = Window.EnumerateProcesses();
if (processes ~= nil) then
for index in processes do
nFoundPos = String.Find(processes[index], "notepad.exe");
if (nFoundPos ~= nil) then
if (nFoundPos >= 0) then
Dialog.Message( "Found notepad.exe " .. processes[index], "Tada " .. nFoundPos );
Application.Exit();
end;
end
end
end
Last edited by alexzfirm; 07-19-2007 at 06:54 PM. |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check if program running | Sheritlw | Setup Factory 7.0 Discussion | 1 | 06-20-2007 02:05 PM |
| problem closing a running process.. | Lucian Cain | AutoPlay Media Studio 5.0 | 5 | 08-22-2006 05:17 PM |
| AMS6: any idea to check if a process is running | slafta | AutoPlay Media Studio 6.0 | 3 | 03-01-2006 12:52 PM |
| Check if a Particular Program is Running, now in system tray | Mahdi | AutoPlay Media Studio 5.0 | 0 | 12-29-2005 06:58 AM |
| Search for running process ? | cyberwebwerks | AutoPlay Media Studio 4.0 | 1 | 09-08-2003 02:15 PM |
All times are GMT -6. The time now is 01:46 AM.








Linear Mode

