liorafar
liorafar

Reputation: 2364

InstallShield creates MSI even though build has errors

When I'm compiling ism project to create MSI, its still creates the MSI even though I have build errors.

The reason I need it NOT to be created is for build verification.
Instead of checking the build log for errors, I will just check the existence of the MSI.

Does anybody know how can I achieve that?
EDIT:
I'm using ISCmdBld tool to build MSIs. This is the command line I'm running to build where the environment variables are being set before running this command:

IsCmdBld -p "%FULL_PROJECT_FILENAME%" -a %BUILDMODE% -r %PRODUCT% -o "%MMSEARCHPATH%" | tee /A "%FULL_PROJECT_LOG_FILENAME%"

Upvotes: 2

Views: 829

Answers (2)

Christopher Painter
Christopher Painter

Reputation: 55601

Your build automation should check the exit code from ISCmdBld.exe. If the exit code is a failure, don't archive the output.

Upvotes: 1

Gruntzy
Gruntzy

Reputation: 443

If you are compiling using IsCmdBld.exe, you should add the -x option, so that the build is stopped if an error occurs.

You also can use it combined with -w, which makes each warning becomes considered as an error (and thus, each warning encountered also stops the build).

More information about IsCmdBld.exe : http://helpnet.installshield.com/installshield16helplib/ISCmdBldParam.htm

I hope this helps.

Upvotes: 1

Related Questions