Page 1 of 1

Build Patch fails: \"Compile Error: Too many END statements\"

Posted: Thu Sep 07, 2006 2:56 pm
by Bob Lawblaw
Background:
InstallAware version 6
Project Type: Web Install
Compression: Max
Password Protection: YES

We're going into beta and wish to provide patch-based updates. Each installer is given a random password as part of the automated build process.

Now when I go to the Patch UI page, I add the .exe of a previous build. Note that all web components for that build are also available in the same directory. I then click "Build Patch" and get the following error messagebox:

---------------------------
Compile Error
---------------------------
Too many END statements
---------------------------
OK
---------------------------

Note that the current project compiles, as did the previous versions as evidenced by their existence.

Thoughts:
- Is the fact that different passwords are used between builds an issue? The "Build Patch" process seems to think it does not need the password to the previous installer. If the password is required and there is no place to provide it, this is a problem.

- The complete source paths to installed files repeatedly causes us hardship. Is this an issue again? (i.e. if I try to make a patch from version A to B, each built with different root paths?)

This is for a high-profile company's commercial software release.
Thank you for your prompt help. If it's easier, I can be reached by phone - let me know to whom I should PM my phone number.

Posted: Thu Sep 07, 2006 5:56 pm
by MichaelNesmith
Hi Bob,

Please review your MSIcode script, paying close attention to the compiler variables. Compiler variables are used when building patches, and they automatically omit a portion of your script. Adjusting the Compiler Variable If commands and the content they wrap should fix this problem for you.

If you would like InstallAware Consulting Services to give you a hand with fixing your project, please drop us an email at our sales address.