How do I add post-build events to InstallShield Limited Edition

2.5k views Asked by At

After I build my InstallShield I want to copy the outputted MSI file to some partocilar directory

..."\Documents\Visual Studio 2012\Projects\UpdateAppTest\Setup1\Setup1\Express\SingleImage\DiskImages\DISK1\setup1.msi"

to some directory on my computer

5

There are 5 answers

0
insomniac On

InstallShield Limited Edition Setup projects does not support Build events, But there is a hacky method to execute the build events

  1. Create an empty project 'DummyProject'
  2. Go-to the properties and set the output type to 'Class Library'.
  3. Right click on the solution and select 'Project Dependencies' .
  4. Depending on the type of event you are looking for (pre/post), Make the DummyProject depend upon the installshield limited edition setup project or vice-versa. Depending on the type of event you are looking for (pre/post), Make the **DummyProject** depend upon the **installshield limited edition setup project** or vice-versa.
  5. Now you can go to the build events for the DummyProject and add your commands there.

Make sure to use your Macros properly

2
Observer On

Did some more digging and came up with this...

InstallShield allows you to specify commands that can be run at various stages of the build process. These commands are called Build Events. This can be very useful, but in order to use this functionality, you must have the InstallShield Premier edition.

To define a Build Event, just go to the Releases view, click on a release, then click the Events tab. There you can define Prebuild, Precompressor and Postbuild events.

Source: http://www.installationdeveloper.com/2572/prebuild-and-postbuild-events-in-an-installshield-installation/

0
Fleve On

You can create an empty project and set the dependence in your solution so that the empty project depends on the InstallShieldLE project. This guarantees that your new project compiles after the InstallShieldLE.

In the dependent project you can set the post build events. In your case jut go up and then down in the directory structure to get your .msi file from your InstallShieldLE file.

0
gReX On

Instead of Copy the msi to some other Location you can adjust the "Release Location", also in the LE Version.

Expand your InstallShield-Project, Got to "6 Prepare for Release"\Releases, select SingleImage and in the Build Tab adjust the "Release Location".

In my Case i used "<ISPROJECTFOLDER>..\Runtime" which creates the setup.exe in <projectdir>\Runtime\SingleImage\DiskImages\DISK1\setup.exe

To get rid of the SingleImage\DiskImages\DISK1 Stuff, you could add a dependent Project to your solution, and use the post-build events there.

0
Remco Nonhebel On

The events tab is not available in the Limited Edition....