Custom Launch Condition - Advanced Installer Community
jsfetzik
Posts: 4
Joined: Fri Nov 02, 2012 5:28 pm

Custom Launch Condition

I am new to Advanced Installer and was wondering what the best way to do something might be. Our MSI is for an internal application and is deployed to about 500 machines via SCCM. At any point in time a handful of these machines are being used for testing or development work. Which machines these are varies greatly even from day to day.

When an updated MSI is sent out via SCCM we do not want it to run on the test/development machines. Keeping track of which machines are which in SCCM would be a pain in our case. So the thinking is to set a value(i.e. a value in an XML config file) on the PC that would indicate to the MSI if it should run or not.

Looking at the Advanced Installer users guide it looks like the Custom Launch Condition would be the thing to use. I am assuming that I would need to run a script of some sort at the start of the MSI to do the actual check and then set a property or environment variable, as it does nt look like I can create a condition that could check for a file or the contents of a file.

Has anyone done this type of thing before? Is this a reasonable way of doing this? Is the a better way?

Thanks for any input.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Launch Condition

Hello and welcome to Advanced Installer forums,

Starting with the Enterprise edition we have the XML locator feature which you can use. Here's the Creating a XML Search tutorial that describes it.
Using the public property search name you can easily add a launch condition as described in the Professional tutorial.

Since you are new we recommend you follow our tutorials first. This will help you better understand how Advanced Installer works not to mention our support team's suggestions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”