Version 15 and Web Media Blocks

Got a problem you cannot solve? Try here.
redbyron
Posts: 28
Joined: Fri Nov 12, 2010 2:21 am

Version 15 and Web Media Blocks

Postby redbyron » Fri Jan 04, 2013 9:36 am

Hello,

when i create a Web Based output, when running the setup from disk it constantly reports that the download is broken...

Sometimes, if i remove the application runtimes, and add again for example the Windows Installer 3.1 runtime, it works... some times it does not...

I upgraded to the latest 15.22 version of IA with no luck...
Regards,

Michael

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Version 15 and Web Media Blocks

Postby FrancescoT » Fri Jan 04, 2013 10:31 am

Dear Michael,

let me verify it.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Version 15 and Web Media Blocks

Postby FrancescoT » Fri Jan 04, 2013 2:48 pm

Dear Michael,

I just tried including different runtimes for several times, but I haven't found the problem your are reporting.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

redbyron
Posts: 28
Joined: Fri Nov 12, 2010 2:21 am

Re: Version 15 and Web Media Blocks

Postby redbyron » Sun Jan 06, 2013 11:44 am

Hi Fransesco,

i forgot to mention that the setup project is created from a custom template.
I will try to send you the original setup project to check for yourself...

Regards,

Michael
Regards,

Michael

redbyron
Posts: 28
Joined: Fri Nov 12, 2010 2:21 am

Re: Version 15 and Web Media Blocks

Postby redbyron » Mon Jan 07, 2013 2:39 am

Also a key for this issue, is that i create MSI outputs...

So please try again with the "Build MSI outputs instead of EXE outputs" setting checked and inform if you managed to reproduce the problem...

Otherwise i will remove our identification from a demo project and post it on the forum....
Regards,

Michael

redbyron
Posts: 28
Joined: Fri Nov 12, 2010 2:21 am

Re: Version 15 and Web Media Blocks

Postby redbyron » Mon Jan 07, 2013 6:31 am

FYI

it seems that when you define a FILEBAG in the setup, and is not in the [OFFLINE CONTENT] media block (eg try the Define Setup Globals section),
when the output is msi the installer prompts for broken download links....

I think that this was my issue...

Thanx for your Help.
Regards,

Michael

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Version 15 and Web Media Blocks

Postby FrancescoT » Mon Jan 07, 2013 12:08 pm

Dear Michael,

Excuse me, but It is not very clear to me what you are reporting with your last reply.

Are you building a WEB BASED EXE?

I don't understand what you mean with;
it seems that when you define a FILEBAG in the setup, and is not in the [OFFLINE CONTENT] media block (eg try the Define Setup Globals section), when the output is msi the installer prompts for broken download links....


Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

redbyron
Posts: 28
Joined: Fri Nov 12, 2010 2:21 am

Re: Version 15 and Web Media Blocks

Postby redbyron » Tue Jan 08, 2013 1:16 am

Hi Francesco,

the issue is that if you create a web based setup, set the MSI_ALL compiler variable to true, and you define a FILEBAG in the eg Define Setup Globals region,
then when you run the installation it displays a message box that the web media is broken and prompts you to retry or resume the download with no success.

I moved the FILEBAG definition to the [Offline Content] web media, and the installation works as expected.
Regards,

Michael

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Version 15 and Web Media Blocks

Postby FrancescoT » Tue Jan 08, 2013 10:17 am

Dear Michael,

I'm sorry, but I'm not able to replicate your issue.
I have executed several verifications producing a MSI package ... Web Media Blocks are installed correctly.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

redbyron
Posts: 28
Joined: Fri Nov 12, 2010 2:21 am

Re: Version 15 and Web Media Blocks

Postby redbyron » Wed Jan 09, 2013 1:59 am

Hi Francesco.

I have attached a zip file reproducing the behavior i described previously...

There are two folders with the same IA project, the [OK] folder and the [PROBLEM] one.
The setup in the [PROBLEM] folder does not work.
In the [OK] folder works...

The only difference is that i moved the following lines from "[DEFINE REGION: Define Setup Globals]" to "[OFFLINE CONTENT]"

Set Variable FILEBAG to
Define File Bag : #BINARIES#\InstallApp.config, get runtime location of files into variable FILEBAG
Attachments
WEBSETUP.zip
(1.36 MiB) Downloaded 399 times
Regards,

Michael

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Version 15 and Web Media Blocks

Postby FrancescoT » Wed Jan 09, 2013 10:18 am

Dear Michael,

Ok, now it is clear what happens.

if you have a look at IA documentation about Web Media Block you will find that:
"... Each media block is effective until a subsequent media block is encountered."

This means that each installation command which installs files on the target system, will place those files in the named source media block.

In your case, you are including your File Bag within the same Web Media Block for Windows Installer runtimes.
Because the Windows Installer runtimes already stores the required files as File Bag, this can generate some errors to correctly identify the included Files, if you include your File Bag with the same Web Media Block.

So if you want to distribute your File Bag with a Web Media Block, you should declare a New Web Media Block for the given file, as follow;

Code: Select all

[DEFINE WEB MEDIA Microsoft Windows Installer 3.1]
  Include Script: setupmsi31
[DEFINE WEB MEDIA Myblock]
Set Variable FILEBAG to
Define File Bag : #BINARIES#\InstallApp.config, get runtime location of files into variable FILEBAG


or alternatively, you have to explicitly place your File Bag out of the previous Web Media Block, as illustrated below;

Code: Select all

[DEFINE WEB MEDIA Microsoft Windows Installer 3.1]
  Include Script: setupmsi31
[OFFLINE CONTENT]
Set Variable FILEBAG to
Define File Bag : #BINARIES#\InstallApp.config, get runtime location of files into variable FILEBAG


In addition, instead of using a File Bag to store temporarily your file, you could add it to SUPPORT File list and to access it at runtime, use the SUPPORTDIR pre-defined script variable.

Regards

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

redbyron
Posts: 28
Joined: Fri Nov 12, 2010 2:21 am

Re: Version 15 and Web Media Blocks

Postby redbyron » Wed Jan 09, 2013 12:29 pm

Thank you,
now it is clear what was happening.

I was using the SUPPORTDIR variable, but i don't know how i could add the file using the #BINARIES# compiler variable,
is there a way to do it with msi scripting?

thank you in advance,
Regards,

Michael

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Version 15 and Web Media Blocks

Postby FrancescoT » Wed Jan 09, 2013 12:46 pm

Dear Michael,

unfortunately, it is not possible.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 104 guests