Indigo Rose Software

Go Back   Indigo Rose Software Forums > MSI Factory 2.0 > MSI Factory 2.0 Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 07-09-2007
alexzfirm alexzfirm is offline
Forum Member
 
Join Date: Jul 2007
Posts: 69
Terminate setup if specific application is running?

Can I pre-check if specific application is running without writing custom action?

If custom action is the only one way - how do I wire it up to terminate installation? The help section on "Terminate Installation" action is way too short and does not have any samples...

Alex
Reply With Quote
  #2  
Old 07-10-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
An easier way to do this would be to use the bootstrapper, and script it in Lua. The bootstrapper has the ability to check for other processes and window handles, so you could easily make the launching of the MSI conditional on that information.

As for doing it without the bootstrapper, I think you'd need to use a custom action of some kind to detect whether the target application is running (I don't know if there is any built-in mechanism to do this in MSI, so it would probably need to be done using a DLL or some VB script or something). To exit the installation, you would add a Terminate Installation action and sequence it after your custom "app detection" action with a condition based on the result of that "app detection" action.
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
  #3  
Old 07-10-2007
alexzfirm alexzfirm is offline
Forum Member
 
Join Date: Jul 2007
Posts: 69
Quote:
Originally Posted by Lorne View Post
An easier way to do this would be to use the bootstrapper, and script it in Lua. The bootstrapper has the ability to check for other processes and window handles, so you could easily make the launching of the MSI conditional on that information.
Could you point to the some kind of sample ?

Thank you
Reply With Quote
  #4  
Old 07-10-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
See the following actions (under "Action Reference") in the IRMakeBootStrap.chm help file:

Application.Exit
System.EnumerateProcesses
Window.EnumerateProcesses
Window.EnumerateTitles

The Scripting Guide chapters will be useful as well.

The default bootstrap scripts are located in the Bootstrap\Data subfolder (e.g. Bootstrap\Data\default_embed_setup.lua) and can be read using a text editor. (Note: do not modify the default files, make a copy first.)
__________________
--[[ Indigo Rose Software Developer ]]
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
Setup Factory and VS 2005 vazir786 Setup Factory 7.0 Discussion 4 01-13-2006 09:47 PM
New Features in Setup Factory 7.0 Ted Sullivan Setup Factory 7.0 Discussion 0 08-12-2004 01:13 PM
HOWTO: Distribute an AutoPlay Application with Setup Factory 6.0 Support AutoPlay Media Studio 4.0 Examples 0 10-25-2002 03:33 PM
HOWTO: Make an AutoPlay Application Expire Support AutoPlay Media Studio 4.0 Examples 0 10-09-2002 11:10 AM


All times are GMT -6. The time now is 09:46 PM.


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