Web Media Blocks - Build Err

Got a problem you cannot solve? Try here.
GW44
Posts: 37
Joined: Wed Feb 22, 2006 3:13 pm

Web Media Blocks - Build Err

Postby GW44 » Thu Feb 23, 2006 3:46 am

Build Error:

Error during build: "At least one Web Media Block must be defined before installation commands that may require media blocks...."


Looking thru source I have no Web Media Blocks specified. Offline Contents only (runtimes).

What happened is that at first I selected some runtimes. As I do not want to use Web Blocks, I edited out the web block code and moved the files to the Offline section. It appears the wizard automatically assumes Web Block will be used which will not be so in our case. Would be nice to have the option so one would not have to edit to make web blocks disappear.

Why would I get this err when no Web Block Media is shown in the source.

Also specifed the BUILDMODE Complier Var as SFX at top of the script.

Is there something that gets left behind after editing that code view does not show?


Thks, GW44

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

Postby MichaelNesmith » Thu Feb 23, 2006 8:42 am

Hi GW44

Web media blocks are only created when building web based installers. Two other build modes are available which ignore web media block information - uncompressed and single file builds. So the work you did in manually removing the web media blocks was unnecessary.

That being said, the compiler itself needs to have at least one block defined, before commands that may require installation media - this includes your setup pre-reqs. So the easy way to fix your existing project would be to just insert an offline block all the way on top of your script.

Finally, you do not set the BUILDMODE compiler variable from the script. The compiler sets it automatically for you based on the setting you chose in the Project Options window.

There is nothing hidden in the script at any time - this is one of the strengths of InstallAware. You can fully customize and control everything.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

GW44
Posts: 37
Joined: Wed Feb 22, 2006 3:13 pm

Postby GW44 » Thu Feb 23, 2006 12:58 pm

Solved.

GW44

GordonS
Posts: 10
Joined: Wed Feb 28, 2007 7:44 am
Location: UK
Contact:

Postby GordonS » Fri Aug 31, 2007 9:34 am

MichaelNesmith wrote:Hi GW44

Web media blocks are only created when building web based installers. Two other build modes are available which ignore web media block information - uncompressed and single file builds. So the work you did in manually removing the web media blocks was unnecessary.

That being said, the compiler itself needs to have at least one block defined, before commands that may require installation media - this includes your setup pre-reqs. So the easy way to fix your existing project would be to just insert an offline block all the way on top of your script.

Finally, you do not set the BUILDMODE compiler variable from the script. The compiler sets it automatically for you based on the setting you chose in the Project Options window.

There is nothing hidden in the script at any time - this is one of the strengths of InstallAware. You can fully customize and control everything.


I'm having the same trouble with my build, but don't understand this answer. Than may be because I'm using the Express 6.6, which I believe doesn't support script editing.

I tried editing the .mia file and adding four variations on a theme to the very start of it, as follows, but without success:

offline

offline
offline

offline block

offline block
offline block

Some background:

I copied an entire existing project tree to a new location for this new release, changed some stuff in the "Project Properties" and "Summary Information", removed the old Files and added the new Files, then build the project as a "Compressed single self-extracting EXE".

I have a web media block which I don't require and on which I have set the Skip option.

The build baulks as indicated.

Can you be explicit about what I need to do to make this build, please.

Thanks.

GordonS
Posts: 10
Joined: Wed Feb 28, 2007 7:44 am
Location: UK
Contact:

Postby GordonS » Mon Sep 03, 2007 3:32 am

GordonS wrote:
I have a web media block which I don't require and on which I have set the Skip option.

The build baulks as indicated.

Can you be explicit about what I need to do to make this build, please.

Thanks.


I noted that he "Reviewer's Guide" says on p61 "If a web media block statement contains an empty name, that web media block is considered to be an offline block. and any additional fields are disabled." I opened my one web media block for editing, Ctrl-X'd the name and closed the edit. No web media block! Still no build.

BTW, how exactly does one _add/insert_ a web media block? I've tried right-click, double click, insert, leaving and reentering, closing and restarting IA6.6 and probably a few other things that I've forgotten. The help tells me how to edit one, but I can't edit one if I don't have one.

GordonS
Posts: 10
Joined: Wed Feb 28, 2007 7:44 am
Location: UK
Contact:

Postby GordonS » Mon Sep 03, 2007 4:15 am

The project I used as a template shows the same problem, though it's an existing deployment that. It hasn't been used much, as a simple copy of the files was fine for that release.

So I thought I'd start this project over again from stratch.

Started with the quickstart, answered the questions and got a project.

Edited the web links for help and updates, set minimum requirements to Win2k, removed a few of dialogs, added an icon and some EULA and readme texts, added a .inf file to the Files, added that .inf file to Drivers, edited the web media block names so they differ from the previous version's, set the Build to single compressed, and ran Build.

Hmm, same error.

FYI, media bloxk name and path:
precisExcite-r1.3.b3
http://www.precisExcite.com/precisExcite-r1.3.b3.7zip

(That appears irelevant as restoring the names to their defaults does not remove the error.)

=========================

Addendum.

InstallAware creats an .exe file of about 83k.
Running that file gives an error which in the usual scheme of Windows stuff I can't copy and paste, so retyped here:

--------8<----------------
The installer has encountered an unexpected error
installing this package. This may indicate a problem with
the package. The error code is 2721.
--------8<----------------

GordonS
Posts: 10
Joined: Wed Feb 28, 2007 7:44 am
Location: UK
Contact:

Postby GordonS » Mon Sep 03, 2007 5:55 am

Trying another way.

Start over using the Project Wizard.

Answer the relevant questions, set to single exe, touch nothing else.
Builds OK.

Add .inf file to the target directory.
Builds OK

Added that file to Drivers
Build OK

Added EULA and ReadMe texts
Builds OK

Removed Application Runtime "Microsoft Windows Installer 2.0"
Build fails with the message as reported.

Reinstate the above.
Builds OK

-----------------------------------------

Switch to Quick Started copy unaltered.
Build fails with the message as reported.

Added Application Runtime "Microsoft Windows Installer 2.0"
Builds OK.

-----------------------------------------

Switch to cloned existing project unaltered.
Build fails with the message as reported.

Added Application Runtime "Microsoft Windows Installer 2.0"
Builds OK.

-----------------------------------------

Switch to project from which I cloned, unaltered.
Now fails with "Include script setupmsi20 not part of project"
What the heck is _that_ about?

Checking through this project, it contains the .inf file from the other project including the other project's path! Wrong, Wrong Wrong!
It also has Application Runtime "Microsoft Windows Installer 2.0" now checked where before it did not!

WTF?

Still fails with "Include script setupmsi20 not part of project"

-----------------------------------------

Modified Wizard version still builds OK.
Modified Quick-Start version still builds OK
Modified cloned version still builds OK.

-----------------------------------------

Now all my new attempts work, but the original working one from which I tried to clone doesn't.

What goes on here guys?


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 153 guests