Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

multiple directories not following drive letter


1 reply to this topic

robqa

robqa
  • Full Members
  • 1 posts

Posted 07 November 2007 - 20:39

I have an installation that installs into two directories in the program files folder. One directory is set to be the [installdir] and the other is just a plain folder in the setuppackage. example:


[drive]
[program files]
<folder 1>
<folder 2>[install dir]


When an installation is run, and the drive letter to be installed to is changed (F: instead of C: for example), the [install dir] directory follows to F: however <folder 1> still installs to C:...

How can i get both folders to have the [install dir] name, or at least follow the functionality associated with it? Thanks for any help!

-Rob
Installshield 2008

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 10 November 2007 - 13:07

If the user changed INSTALLDIR this will affaect other directories below it, but not its siblings. Maybe your structure should look like:

[drive]
[program files]=INSTALLDIR
<folder 1>
<folder 2>

Thus your users can change the INSTALLDIR location but they will always keep the folder structure below it.
To do this, your features should use INSTALLDIR as target (so that users can change it) and the component should use [INSTALLDIR]folder 1 etc. as destination (note that [INSTALLDIR] already includes a trailing backslash).