cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
apekatt84
Level 2

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:
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


I have not been able to track down what this error means. Any help would be appreciated.

Regards
Apekatt84
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

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"
0 Kudos