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: Prerequisite - Add File Subdirectories?
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
‎Jun 16, 2009
06:05 PM
Prerequisite - Add File Subdirectories?
I am attempting to add a prerequisite to my InstallScript MSI project that consists of somebody else's installer.
This other installer consists of several directories and this directory structure must be maintained. There are several files with duplicate names which are only distinguished by the directory they are contained in. And, for the installer to run correctly, it needs to refer to components that are in subdirectories relative to itself.
The problem is when I use the prerequisite editor to add these files and then build my project, I discover that all of the prerequisite's files are all put into the same directory (under the prereq's subdirectory under ISSetupPrerequisites); all of the directory structure is lost.
Is there a way to build a prerequisite that avoids this problem?
Thanks for the help.
Dan
This other installer consists of several directories and this directory structure must be maintained. There are several files with duplicate names which are only distinguished by the directory they are contained in. And, for the installer to run correctly, it needs to refer to components that are in subdirectories relative to itself.
The problem is when I use the prerequisite editor to add these files and then build my project, I discover that all of the prerequisite's files are all put into the same directory (under the prereq's subdirectory under ISSetupPrerequisites); all of the directory structure is lost.
Is there a way to build a prerequisite that avoids this problem?
Thanks for the help.
Dan
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2009
10:47 AM
The closest thing to a workaround that I've come up with is to create a prerequisite that only lists the initial file to execute (so that this can be specified as the app to run in the prerequisite editor).
Then, after doing a build, copy the entire directory tree into the appropriate ISSetupPrerequisites subdirectory.
This is far from optimal as it is very easy to forget to do this whenever I do a full rebuild.
Does anybody have any better suggestions as to how to do this within the IS IDE?
Thanks again for the help,
Dan
Then, after doing a build, copy the entire directory tree into the appropriate ISSetupPrerequisites subdirectory.
This is far from optimal as it is very easy to forget to do this whenever I do a full rebuild.
Does anybody have any better suggestions as to how to do this within the IS IDE?
Thanks again for the help,
Dan
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2009
11:24 AM
What is your prereq based on? Versioning, file existence, or what?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2009
01:32 PM
File versioning?
How exactly does that have any relevance to my issue?
How exactly does that have any relevance to my issue?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2009
01:55 PM
Well, if it was based on File Existence, you could do this via IS code outside of the prereq part of IS. Since it's based on version, trying to maintain that would be a hassle. However if you don't mind the hassle and maintained a flat/xml file of file's and versioning then used that instead via code.
My Installers are mainly custom so I'm finding I don't use much of the preset stuff within IS and since IS is powerful enough for me to code it myself, I do.
Just a thought, plus asking you questions gives me ideas as I may run into the same issues.
My Installers are mainly custom so I'm finding I don't use much of the preset stuff within IS and since IS is powerful enough for me to code it myself, I do.
Just a thought, plus asking you questions gives me ideas as I may run into the same issues.
