Patch will not build - label statements cannot be nested

Got a problem you cannot solve? Try here.
Post Reply
ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Patch will not build - label statements cannot be nested

Post by ParallaxiT »

I have a project that builds correctly when i click on Web Deploy option. Builds and installs fine. When i add a reference to the previous build and click Build Patch it fails saying that 'Label statements cannot be nested inside loops/conditionals'.

I had this error previously and corrected it to allow the Web Deploy to build correctly so i do not know why it is popping up in the patch. The label it points to is not nested inside any loop or conditional (see screenshot).

Thanks for any help!

Cheers

File Attached:

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

Post by MichaelNesmith »

Check your compiler variables.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Post by ParallaxiT »

What does that mean?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Read the patching whitepaper for an explanation, what you need to know is already there.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Post by ParallaxiT »

I understand how the patching works, i had it working up until i put in the logic i posted in my screenshot. Nothing in your patching guide speaks of nested errors etc. Any other places to look.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Then, again, as I have posted before, you need to check your compiler variables, in order to ensure that your script is still consistent when the patch mode is in effect.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
dalguy72
Posts: 9
Joined: Fri Nov 14, 2008 5:26 pm

Patch will not build - label statements cannot be nested

Post by dalguy72 »

I am getting the same error when I try to create a patch. I have created patches before, but this is first time I created custom include scripts. It compiles without complaining, and I can do the installation, I just get the same error as he does : "LABEL statements cannot be nested inside loops/conditional". If I remove the offending label statements from the main msi file, then things like the maintenance if/then statement fails. I can not check the compiler variables, since I am running Installaware developer 8 and it reports that I need the studio version. I need to get this resolved soon, so if either of you have a solution, I would appreciate it. :!:
BruceMcK
Posts: 14
Joined: Wed Jan 04, 2006 6:46 pm
Location: Sydney

Post by BruceMcK »

I had the same problem.

I found some of my [compiler if Variable BUILDMODE not Equals PATCH] and matching [compiler end] statements wrapped 'Include Script' calls.

As soon as I moved the 'Include Scripts' out of the If block, I was able to build the patch.

Bruce.
Post Reply