This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Problem with relative path variables at build time.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2009
03:17 PM
Problem with relative path variables at build time.
I have encountered a rather annoying problem when building my IS projects on our buildserver.
I have several path variables assigned so I can supply the correct paths on the command line at build time. I have a standard path variable that points to the root folder and I have other standard path variables that build on this to point to specific folders. If I change the root folder value using the standalone build command line build, the specific folders are still pointing at the old value. It is like they are being evaluated before the change is made to the root folder path variable.
example
ROOT ="C:\rootSource"
Images = "\Images"
if I supply "D:\otherSource" for the ROOT path variable at buildtime it is still looking for images in "C:\rootSource\Images"
has anyone else encountered this problem and is there a solution other than explicitly setting every path variable in the project?
I have several path variables assigned so I can supply the correct paths on the command line at build time. I have a standard path variable that points to the root folder and I have other standard path variables that build on this to point to specific folders. If I change the root folder value using the standalone build command line build, the specific folders are still pointing at the old value. It is like they are being evaluated before the change is made to the root folder path variable.
example
ROOT ="C:\rootSource"
Images = "
if I supply "D:\otherSource" for the ROOT path variable at buildtime it is still looking for images in "C:\rootSource\Images"
has anyone else encountered this problem and is there a solution other than explicitly setting every path variable in the project?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2009
03:04 PM
Has nobody else seen this problem?
if you have seen this problem how did you solve it?
I find it hard to believe that I am doing something so different from most users that this is the first time this problem has been discovered. Given the number of people using Installshield.
any help offered would be appreciated.
James
if you have seen this problem how did you solve it?
I find it hard to believe that I am doing something so different from most users that this is the first time this problem has been discovered. Given the number of people using Installshield.
any help offered would be appreciated.
James
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
01:48 PM
What does your command line look like?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
02:12 PM
the commandline I use is basically
ISCMDBLD.exe -p -l ROOT=D:\otherSource -a -r -o
as I said the ROOT value is getting changed but any other path variables that reference ROOT are not updating.
James
ISCMDBLD.exe -p
as I said the ROOT value is getting changed but any other path variables that reference ROOT are not updating.
James
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
02:31 PM
That looks correct. I would just specify each path variable on the commandline and see if that works. MIght be a bug, might be how it intended.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
02:36 PM
yeah,
I was hoping to avoid having to specify each subpath individually as there are quite a few of them. According to the documentation relative paths should work and there is nothing about having to do anything special to make them function as they should from commandline builds done on other machines. I am guessing this is a bug.
James
I was hoping to avoid having to specify each subpath individually as there are quite a few of them. According to the documentation relative paths should work and there is nothing about having to do anything special to make them function as they should from commandline builds done on other machines. I am guessing this is a bug.
James
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 07, 2009
11:30 AM
This has been acknowledged as a bug.
I have found a workaround for now that will let me continue. I have started using environment variable path variables for the root directories. And then in my command line build scripts I am setting the local environment variables to the values I need. Since the environment variables are set before the project is loaded they successfully overwrite the values to point to the new locations.
James
I have found a workaround for now that will let me continue. I have started using environment variable path variables for the root directories. And then in my command line build scripts I am setting the local environment variables to the values I need. Since the environment variables are set before the project is loaded they successfully overwrite the values to point to the new locations.
James