I am trying to create my first project using a new web media block I am creating. I've read the white paper but it doesn't seem to address this issue in enough detail to get me past this. My script looks like this...
[DEFINE WEB MEDIA TestInstaller]
Run Program $SUPPORTDIR$\TestInstaller.exe (WAIT)
[OFFLINE CONTENT]
Then I add the TestInstaller.exe (150 meg) into the support files folder. When I do this, the web deploy file is about 160 meg, indicating the support file got pulled into the installer. In additon, no .7zip file gets created for the new web media block.
I've tried several different configurations of files, but my main problem appears to be how to tell InstallAware where to find the EXE that I want it to turn into the new web media block. Thanks in advance!
Creating own Web Media Block
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Creating own Web Media Block
Dear Warstrider,
you are erroneously mixing SUPPORTDIR location with a Web Media Block.
InstallAware uses "support files" at several places throughout the installation. Support files are not actually installed onto the target system, but they are part of the installation package. They are available temporarily while the installation is executing and are cleaned up when the installer finishes execution. Therefore files included as SUPPORT FILE are Always included with the setup package.
The Web Media Block command indicates that each installation command which installs files on the target system should place those files in the named source media block. This command is directive for the compiler, and is not constrained by conditional execution blocks. It has meaning only when used with Web builds and has no effect on Uncompressed or Compressed build types.
In your case and if you want to include "TestInstaller.exe" as WEB MEDIA BLOCK with your package, you should use a "File Bag" command.
Example; (... it supposes that TestInstaller.exe is available with your build machine as "F:\TestInstaller.exe")
The same code snippet as IA Clipboard Format (copy and paste it in your script)
Hope this helps you.
Regards
you are erroneously mixing SUPPORTDIR location with a Web Media Block.
InstallAware uses "support files" at several places throughout the installation. Support files are not actually installed onto the target system, but they are part of the installation package. They are available temporarily while the installation is executing and are cleaned up when the installer finishes execution. Therefore files included as SUPPORT FILE are Always included with the setup package.
The Web Media Block command indicates that each installation command which installs files on the target system should place those files in the named source media block. This command is directive for the compiler, and is not constrained by conditional execution blocks. It has meaning only when used with Web builds and has no effect on Uncompressed or Compressed build types.
In your case and if you want to include "TestInstaller.exe" as WEB MEDIA BLOCK with your package, you should use a "File Bag" command.
Example; (... it supposes that TestInstaller.exe is available with your build machine as "F:\TestInstaller.exe")
Code: Select all
[DEFINE WEB MEDIA myblock]
Set Variable MYFILE_BAG to
Define File Bag : F:\TestInstaller.exe, get runtime location of files into variable MYFILE_BAG
Run Program $MYFILE_BAG$\TestInstaller.exe
The same code snippet as IA Clipboard Format (copy and paste it in your script)
Code: Select all
~InstallAware Clipboard Data~
~Run Program~
~{C86BA6D7-011A-465D-956A-35C94CFA4D48}~
~$MYFILE_BAG$\TestInstaller.exe~
~FALSE~
~~
~FALSE~
~~
~File Bag~
~{58C66045-3D2E-45A0-984B-3E1823AC7126}~
~F:\TestInstaller.exe|,FALSE,MYFILE_BAG~
~mFileBagIDE.dll\mFileBagEXE.dll~
~Set Variable~
~{76FDC33A-2D20-4072-82C2-95A1E15C56B1}~
~MYFILE_BAG$MYAH$MYAH$FALSE~
~~
~Web Media Block~
~{B016CB06-D9C7-4D11-B6F5-FC2C0683B504}~
~myblock~
~http://www.mywebsite.com/myblock.7zip~
~FALSE$MYAH_CARET$~
Hope this helps you.
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
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
-
- Posts: 5
- Joined: Tue Mar 03, 2015 2:56 pm
Re: Creating own Web Media Block
Thank you for your help FrancescoT!
Your reply helped clarify things immensely, and the search results for "File Bag" took care of the few issues I was still having. I never knew the "File Bag" concept existed, we have always used support files for everything.
Your reply helped clarify things immensely, and the search results for "File Bag" took care of the few issues I was still having. I never knew the "File Bag" concept existed, we have always used support files for everything.
Who is online
Users browsing this forum: No registered users and 73 guests