miabuild.exe does not catch script errors

Got a problem you cannot solve? Try here.
Christoph Schneegans
Posts: 55
Joined: Tue Jan 09, 2007 12:20 pm

miabuild.exe does not catch script errors

Postby Christoph Schneegans » Fri Jan 12, 2007 8:05 am

Consider a blank project with this minimal script:

Code: Select all

  end
  Terminate Installation


As expected, when I try to compile the project via Shift+F9, I receive an error message: "Too many END statements".

However, when I build the project from the command line, miabuild.exe does not output any error messages, but says that the "Build completed successfully". It even creates an .exe and .msi in the "Release" folder. When I double-click the .msi, the installation fails, which is not very surprising: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2728."

What's going wrong here? Why doesn't miabuild.exe catch the script error in the first place?

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Fri Jan 12, 2007 8:45 am

Are you checking the return code from miabuild.exe?
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

Christoph Schneegans
Posts: 55
Joined: Tue Jan 09, 2007 12:20 pm

Postby Christoph Schneegans » Fri Jan 12, 2007 9:45 am

Code: Select all

U:\\>"C:\\Programme\\InstallAware\\InstallAware 6\\miabuild.exe" "D:\\Christoph Schneegans\\InstallAware\\Projekte\\ScriptError\\ScriptError.mpr"

InstallAware
Command Line Build Utility

Building Project: ScriptError
Output Folder: D:\\Christoph Schneegans\\InstallAware\\Projekte\\ScriptError\\Release\\Uncompressed\Deployment Type: Uncompressed Directory Layout
Code Signing: Disabled
Compression: Default
###
Cleared output folder D:\\Christoph Schneegans\\InstallAware\\Projekte\\ScriptError\\Release\\Uncompressed\Created Windows Installer database
Built installation executable
Injected setup languages
Injected runtime files

Build completed successfully

U:\\>echo %errorlevel%
0

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Jan 12, 2007 2:46 pm

This is a known issue - miabuild will not warn about scripting errors. Apologies for the inconvenience - always test the scripts in the IDE before building with miabuild.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 224 guests