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: Installation not going to INSTALLDIR on changed directory
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
‎Nov 25, 2008
07:44 PM
Installation not going to INSTALLDIR on changed directory
Hi,
I've got a relatively simple installation (Basic MSI Project) that I am trying to click on the Change button to change the INSTALLDIR. I can see that the INSTALLDIR changes on the clicking of this button, and I don't see anywhere in the installation that I change it back, but in spite of this the files that I am moving onto the target system are going to the default directory. INSTALLDIR is created, but no files go there. (I have attempted to change TARGETDIR as well to try to get around this problem, but no luck there either) INSTALLDIR is used at the end of the application and in the script, it remains the directory that I changed it to.
-Tim
I've got a relatively simple installation (Basic MSI Project) that I am trying to click on the Change button to change the INSTALLDIR. I can see that the INSTALLDIR changes on the clicking of this button, and I don't see anywhere in the installation that I change it back, but in spite of this the files that I am moving onto the target system are going to the default directory. INSTALLDIR is created, but no files go there. (I have attempted to change TARGETDIR as well to try to get around this problem, but no luck there either) INSTALLDIR is used at the end of the application and in the script, it remains the directory that I changed it to.
-Tim
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 01, 2008
02:39 PM
This could occur if you are changing the folder path after CostFinalize and the method used to change the path sets the INSTALLDIR property instead of setting the target path (SetTargetPath control event or MsiSetTargetPath through a custom action).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 05, 2008
10:14 AM
First, I'd recommend a verbose log so you can see exactly what directories are changing and when instead of trying to infer it.
Second, be sure that the folders your files should be installing to actually are children of the INSTALLDIR directory. I find the easiest way to verify this is in the Direct Editor, Directory table.
The table might look something like:
Directory / Directory_Parent / DefaultDir
APPNAME / ProgramFilesDir / MyApplicationName
INSTALLDIR / APPNAME / .
SUBFOLDER1 / INSTALLDIR / Subfolder1
SUBFOLDER2 / INSTALLDIR / Subfolder2
where C:\Program Files\MyApplicationName\Subfolder1 is an example of a path you're installing to.
Hope that helps.
Second, be sure that the folders your files should be installing to actually are children of the INSTALLDIR directory. I find the easiest way to verify this is in the Direct Editor, Directory table.
The table might look something like:
Directory / Directory_Parent / DefaultDir
APPNAME / ProgramFilesDir / MyApplicationName
INSTALLDIR / APPNAME / .
SUBFOLDER1 / INSTALLDIR / Subfolder1
SUBFOLDER2 / INSTALLDIR / Subfolder2
where C:\Program Files\MyApplicationName\Subfolder1 is an example of a path you're installing to.
Hope that helps.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)