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
- :
- Config files are deleted during the uninstallation
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 15, 2008
10:03 AM
Config files are deleted during the uninstallation
In my case, my application need some copy config files to CommonAppDataFolder during installing or upgrading, so I do this action at OnFirstUIBefore and OnResumeUIBefore. it works well at installtion, config files are copied to correct directoy,and then I uninstall the application, these config files were deleted during uninstallation process automatically(I expected config files leave it there after uninstallation). I have try many times, the results are the same. finally, I remove copy action code in OnFirstUIBefore and OnResumeUIBefore, and copy config file to CommonAppDataFolder mamually after installed application,and then remove the application, the config files did not be deleted. so i feel strange. someone could tell me what is root cause and how to fixed it? Thanks !!!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2008
07:10 AM
Installers traditionally remove everything they installed, but not anything they did not.
You can change this behavior by marking the components containing those files as "permanent" to prevent them from being uninstalled.
You can change this behavior by marking the components containing those files as "permanent" to prevent them from being uninstalled.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2008
09:18 AM
If you're copying the files by using InstallScript code in the InstallScript events, you might want to try using Disable(LOGGING) before the copy code, and Enable(LOGGING) afterward.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2008
09:28 AM
yes, I used xcopyfile function. I will try this at once. Thanks very much, DebbieL!
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)