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: Shared files are not removes on uninstall
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
‎May 16, 2008
02:19 AM
Shared files are not removes on uninstall
Hallo,
as our applications share a few files I marked them as "shared" in the IS project. According to help this will increase a counter.
I would expect that this counter is decreased on uninstallation and the file is removed when the counter is 0.
Just that it doesn't. Even if only one application is installed the shared files remain after uninstallation.
What am I missing?
Thanks
Rita
as our applications share a few files I marked them as "shared" in the IS project. According to help this will increase a counter.
I would expect that this counter is decreased on uninstallation and the file is removed when the counter is 0.
Just that it doesn't. Even if only one application is installed the shared files remain after uninstallation.
What am I missing?
Thanks
Rita
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2008
05:33 PM
What type of project (MSI or InstallScript) are you using?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 19, 2008
01:44 AM
It's a pure InstallScript project.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 19, 2008
02:48 AM
write a custom action to delete shared files while uninstallation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 19, 2008
03:09 AM
No kidding? IS doesn't handle this itself? *sigh*
Just to simplify things for me - could you tell me please how I can check this counter in order to delete the files manually if they are no longer used by any of my apps?
Thanks a lot.
Regards
Rita
Just to simplify things for me - could you tell me please how I can check this counter in order to delete the files manually if they are no longer used by any of my apps?
Thanks a lot.
Regards
Rita
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 19, 2008
09:32 AM
Yes, the shared file count should be adjusted on both installation and uninstallation; I think there's special handling if files already exist, even if they don't have reference counts, that InstallShield plays it safe and sets the the count to 2, to ensure the files aren't removed while some other app still needs them.
If you do need to check a file's count, you can call GetFileInfo with FILE_SHARED_COUNT.
If you do need to check a file's count, you can call GetFileInfo with FILE_SHARED_COUNT.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 22, 2008
03:05 AM
RobertDickau wrote:
Yes, the shared file count should be adjusted on both installation and uninstallation; I think there's special handling if files already exist, even if they don't have reference counts, that InstallShield plays it safe and sets the the count to 2, to ensure the files aren't removed while some other app still needs them.
Sounds as if I could forget about shared files completetely, just install all files as non-shared and hope that if a user really should install two of our apps into one folder and the uninstalls only one that it still works.
I don't see any reason why there is such a component option in InstallShield when I still have to deal with it all by myself. :confused:
And as I don't see the reason behind it, I'll probably end up screwing it all up when trying to handle it correctly. Not to mention wasting time with setup programming instead of dealing with my software project. :mad:
But thanks for your reply!
Regards
Rita