Code: Select all
[DEFINE WEB MEDIA File Bag]
Define File Bag : C:\\somesetup\\*, include files recursively, get runtime location of files into variable SOMESETUP
(this directory contains setup.exe, many other loose files and directories)
First, I'm not sure where or how I should define a "file bag". The in-app help is a bit vague on this and I put it in globals only because it seemed to me like a good place and only stuck a "DEFINE WEB MEDIA File Bag" above it because I got errors when I tried just defining it alone. Is there a style-guide or how-to or doc that describes how one should "add a file bag". I suspect it would include telling me how/where to set up a proper definition and then an example of how to use it. Anyway....the above seems to work, mostly.
So later I call this setup like this (this is what comes out of the paste, but the actual MSICode is one line):
Code: Select all
~InstallAware Clipboard Data~
~Run Program~
~{78240612-2896-4832-A117-0E154407F250}~
~$SOMESETUP$\\setup.exe~
~FALSE~
~~
~TRUE~
~SOMESETUP_RETVAL~
However when I run this setup during my IA install, I get the following error in an (X) error box:
"SETUP cannot proceed because the length of the specified directory path plus the installation folder name exceeds 95 characters. Please shorten one or both below the specified limit and try again."
When I watch the value of $SOMESETUP$, I see a HUGE path being used to refer to the setup:
"C:\\documents and settings\\nnn\\my documents\\ps\\Release\\Uncompressed\\data\\File Bag\\mFileBagIDE.dll\\bag\\"
So the setup is running, but failing due to the artificially created path "required?" by IA when packaging it up. How do I get around this?
Thanks.