Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Every night a new build of my program is made and copied to a /Builds/ folder. I have a Windows machine that I want to have uninstall the program then install the latest version of the program from the /Builds/ folder.

Currently the build results in two separate setup.exe files which are InstallShield installation wizard executables. I want this to happen every night after the build finishes:

  • Uninstall first component.
  • Uninstall second component.
  • Install newest build of first component using setup.exe.
  • Install newest build of second component using setup.exe.

I figured that there probably already exists a software solution for automating installations like this. Are there any software solutions out there than can do what I need? Preferrably for free?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

There are some complex and highly capable deployment suites available but that may be overkill for what you need.

A very easy to implement and free solution uses batch scripts and Scheduled Tasks. To make it happen you'll need that new build to support silent installs and silent uninstalls. With the silent (un)installs, you can setup a little batch script that goes through the four steps you outlines. As a bonus to your customers, if the same install package will uninstall an older version then that will make your script easier.

Make sure that the batch script checks to make sure that the build files available are actually the latest builds. You don't want to install yesterday's build and not know about it. With your batch script have that batch script run as a Scheduled Tasks at a time far enough away from the build will finish so you'll be sure that the build has completed.

share|improve this answer
    
How do I use batch scripts with InstallShield wizards? There are certain installation settings/variables that need to be set, it's not just clicking Next, Next, Next, Install, Finish. –  StickFigs Aug 29 '12 at 13:55
    
In a batch script you would call your setup.exe with a series of command line options that specify an answer files, whether to run in silent mode or not. You'll need to check the documentation on your version of InstallShield to see what options are available and how configuration answers should be passed to the installer. –  Green Aug 29 '12 at 14:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.