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: Relative paths in Prerequisites dont work
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
Jan 20, 2011
02:57 AM
Relative paths in Prerequisites dont work
I have the .prq files and the .exe (Files To Include) files stored in TFS under \Installation Resources\Prerequisites. In IS2011 -> Tools -> Options -> Prerequisites tab I have set the prq file locations to \Installation Resources\Prerequisites. So far it works fine for me, but the .prq files can not use the to point out the location for the .exe files in the "Files to include" tab.
However in http://www.installsite.biz/en/desc/ix/rn_IS2011_prepro_en.pdf
it says that it should work using relative path if the .exe files are store in the same folder as the .prq files, but I have not got this to work at all in IS2011.
”In addition, if the files that you are adding are stored in the same folder as the InstallShield
prerequisite's .prq file—or a subfolder of the folder that contains the .prq file—the InstallShield Prerequisite Editor
uses a relative path for the file in the .prq file.”
What am I doing wrong?
However in http://www.installsite.biz/en/desc/ix/rn_IS2011_prepro_en.pdf
it says that it should work using relative path if the .exe files are store in the same folder as the .prq files, but I have not got this to work at all in IS2011.
”In addition, if the files that you are adding are stored in the same folder as the InstallShield
prerequisite's .prq file—or a subfolder of the folder that contains the .prq file—the InstallShield Prerequisite Editor
uses a relative path for the file in the .prq file.”
What am I doing wrong?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 21, 2011
12:29 AM
OK, I've just found the solution. Just open the prq file in notepad and type:
to get a relative path. The pqr-editor will still show the full path.
to get a relative path. The pqr-editor will still show the full path.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 24, 2011
04:16 PM
How did you figure this out? Is "PrqLocalFiles" an InstallShield variable or something you defined?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 24, 2011
07:44 PM
You can use inside the PRQ files also.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 25, 2011
12:40 AM
CHOeld: "PrqLocalFiles" is just a subfolder defined by me, where I store my prerequisites .exe and msi files.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 31, 2011
04:01 PM
I'd have to run some tests to be certain, but I believe the behavior is now to represent file paths relative to the location of the .prq file. That is if you are editing the .prq file C:\MyPrereqs\Some.prq and add the file C:\MyPrereqs\Some Data\Some.dat to it, it will be referenced in the resulting prerequsite as .\Some Data\Some.dat. This is re-evaluated every save, so if you save a new copy elsewhere, the relative paths are updated.
There' are a few more considerations that might have made this harder for you to test:
There' are a few more considerations that might have made this harder for you to test:
- If instead you add a file from a known location like C:\Windows\Notepad.exe, it refers to it as [WindowsFolder]Notepad.exe, etc.
- If there is no useful relation between the location of the .prq file and the file added to the prerequisite, you'll either get a raw path, or a really messy relative path.
- If you have prerequisites created in earlier versions of InstallShield, you'll need to load and save these prerequisites before the relative path will be applied.