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: Installing Files from SUPPORTDIR
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 23, 2008
08:05 AM
Installing Files from SUPPORTDIR
I have put a set of files in my basic MSI install package into the support directory because I want to be able to install them to several different locations. (a plugin for adobe acrobat/reader) So instead of including the files 6 different times for 3 different versions each of acrobat and reader. I want to install the files from using an InstallScript.
I've tried XCopyFile and this copies the files, but they are not removed during uninstallation. Am I just going to need to create a seperate uninstall script to remove the files, or add them to the RemoveFile table? Or is there a better command to use in the installscript to make the files copied "part of the install"?
I've tried XCopyFile and this copies the files, but they are not removed during uninstallation. Am I just going to need to create a seperate uninstall script to remove the files, or add them to the RemoveFile table? Or is there a better command to use in the installscript to make the files copied "part of the install"?
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2008
12:51 PM
Do I need to Enable(LOGGING)? and is there a particular part of the installation steps where I should run my installscript? I believe I currently have it going after InstallFiles.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2008
04:27 PM
LOGGING is enabled by default so I don't think that will help. But I would suggest a delete installscript custom action to be called at the end of the setup.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2008
04:43 PM
What project type are you using?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 24, 2008
08:58 AM
Basic MSI project. The files are placed in the SUPPORTDIR so that I can copy them to the subsequent areas. I thought all XCopyFile actions were suppose to be logged for uninstalling.
I am calculating and updating file cost after the FileCost action and actually performing the XCopyFiles for the different plugins after InstallFiles.
I am calculating and updating file cost after the FileCost action and actually performing the XCopyFiles for the different plugins after InstallFiles.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
09:20 AM
Well Ive basically just created scripts that will uninstall the files when that is called for. Though I would like to know why XCopyFile is not being logged as the documentation says it should be.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
09:47 AM
I think the issue is just that InstallScript changes are logged for uninstallation only for InstallScript and InstallScript MSI projects (please see "InstallScript Functions that Are Logged for Uninstallation", for example) and not for Basic MSI projects with InstallScript actions...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
10:51 AM
ah, I got it. Im only using a Basic MSI project because that is what it started out as (before I got here). Perhaps I should just recode the thing as an Install Script project. Probably be cleaner that way.
Thanks!
Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 26, 2008
10:54 AM
Depending on what you're doing, you might also look into using the MoveFile table, RemoveFile table, or both...
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)