Indigo Rose Software
  #1  
Old 07-18-2007
tdexter tdexter is offline
Forum Member
 
Join Date: May 2007
Posts: 40
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.
Reply With Quote
  #2  
Old 07-19-2007
alexzfirm alexzfirm is offline
Forum Member
 
Join Date: Jul 2007
Posts: 69
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software