This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Release Events
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 09, 2011
09:13 AM
Release Events
Hi.
I'm trying to create an msi installer and a compressed setup.exe from the same release target. Having two distinct targets is not ideal, since this would double the required time for each build. Launching the installer and extract the msi from the temp folder is also not an options, since the build system is automatic.
A potential solution seems to use a release event, specifically a Precompression event, to copy the msi file before it gets streamed into setup.exe.
To test this i am using the following precompresison event:
When I build my release using IsCmdBld.exe with verbose logging, I get:
I have not been able to track down what this error means. Any help would be appreciated.
Regards
Apekatt84
I'm trying to create an msi installer and a compressed setup.exe from the same release target. Having two distinct targets is not ideal, since this would double the required time for each build. Launching the installer and extract the msi from the temp folder is also not an options, since the build system is automatic.
A potential solution seems to use a release event, specifically a Precompression event, to copy the msi file before it gets streamed into setup.exe.
To test this i am using the following precompresison event:
dir >> %USERPROFILE%\test.txt
cp *msi backup.msi
When I build my release using IsCmdBld.exe with verbose logging, I get:
[exec] Launching precompression build events...
[exec] BuildEvent: unresolved event 'dir >> %USERPROFILE%\test.txt
[exec] cp *msi backup.msi'
[exec] BuildEventThread: launching event command line: 'dir >> H:\Documents and Settings\LocalService\test.txt
[exec] cp *msi backup.msi'
[exec] BuildEventThread: failed to launch event, last error: 2
[exec] BuildEvent: unresolved event 'dir >> %USERPROFILE%\test.txt
[exec] cp *msi backup.msi'
[exec] BuildEventThread: launching event command line: 'dir >> H:\Documents and Settings\LocalService\test.txt
[exec] cp *msi backup.msi'
[exec] BuildEventThread: failed to launch event, last error: 2
I have not been able to track down what this error means. Any help would be appreciated.
Regards
Apekatt84
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 11, 2011
11:31 AM
The use of >> is a cmd/batch idiom, and is probably not supported in this context; even dir is not an executable to be launched. If you want to use this, consider wrapping it in a cmd /c like this:
cmd /c "dir >> %USERPROFILE%\test.txt"