Reputation: 2107
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
Upvotes: 2
Views: 2668
Reputation: 11766
InstallShield Limited Edition Setup projects does not support Build events, But there is a hacky method to execute the build events
Make sure to use your Macros properly
Upvotes: 0
Reputation: 401
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.
Upvotes: 2
Reputation: 1080
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.
Upvotes: 1
Reputation: 755
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.
Upvotes: 0