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: INSTALLDIR not updating subfolder locations
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
‎Oct 12, 2007
03:36 PM
INSTALLDIR not updating subfolder locations
I have a project that allows the user to change the INSTALLDIR. I have components that add folders to the project based on the value of INSTALLDIR. When the user changes the location of INSTALLDIR, the files for INSTALLDIR gets installed into the directory they specify, but any subfolders and contents of those subfolders gets installed in the default location.
Example:
INSTALLDIR Default Value: C:\Program Files\MyCo\MyApp\
Component Program: [INSTALLDIR]
Component Data: [INSTALLDIR]Data
User sets INSTALLDIR to C:\PApp during installation
INSTALLDIR changes to: C:\PApp
Program installs to C:\PApp
Data installs to C:\Program Files\MyCo\MyApp\Data
It should install to: C:\PApp\Data
Any ideas?
Example:
INSTALLDIR Default Value: C:\Program Files\MyCo\MyApp\
Component Program: [INSTALLDIR]
Component Data: [INSTALLDIR]Data
User sets INSTALLDIR to C:\PApp during installation
INSTALLDIR changes to: C:\PApp
Program installs to C:\PApp
Data installs to C:\Program Files\MyCo\MyApp\Data
It should install to: C:\PApp\Data
Any ideas?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 12, 2007
05:02 PM
I have not seen this one yet, my latest takes all the files that should be going into [installdir]myappdir/files just dumps everything into [installdir] so it is [installdir]files so instead of have c:\myapp\itsfiles or c:\program files\myapp\itsfiles it is more like c:\itsfiles.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 12, 2007
06:10 PM
I finally discovered the error. I was forgetting to set the event: SetTargetPath to set and update the target.
My problem was that I was using a custom dialog I created for updating the path. I had set up a Property "_Browse_InstallDir" which was set to INSTALLDIR. On the dialog for the edit box, I set the Indirect Property to True. What I had forgotten was to put the event on the Next button.
Event: SetTargetPath
Argument: [_Browse_InstallDir]
Condition: 1
Once I did that, everything worked as expected.
My problem was that I was using a custom dialog I created for updating the path. I had set up a Property "_Browse_InstallDir" which was set to INSTALLDIR. On the dialog for the edit box, I set the Indirect Property to True. What I had forgotten was to put the event on the Next button.
Event: SetTargetPath
Argument: [_Browse_InstallDir]
Condition: 1
Once I did that, everything worked as expected.