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
- :
- define your own remove function
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
‎Mar 31, 2009
03:22 AM
Folder not removed after uninstall
Hi,
Some strange problem just appeared:
The product is installed in "[ProgramFilesFolder]company\product"
After uninstall "[ProgramFilesFolder]company" is not removed.
It was ok some builds before and I cannot find what's changed that the upper folder is not removed. There are no files in it - all the files are stored in the "product" folder.
Thank you in advance
Vlad
Some strange problem just appeared:
The product is installed in "[ProgramFilesFolder]company\product"
After uninstall "[ProgramFilesFolder]company" is not removed.
It was ok some builds before and I cannot find what's changed that the upper folder is not removed. There are no files in it - all the files are stored in the "product" folder.
Thank you in advance
Vlad
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2009
05:23 PM
For me it happens when i have windows explorer open to that folder's path. So it removes the files in it but not the directory.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 01, 2009
01:32 AM
As you are saying that all the resources are getting deleted except company folder.
Check whether RemoveFolders action is missing from the execute sequence table.
Regards
Ranjit.Balu
Check whether RemoveFolders action is missing from the execute sequence table.
Regards
Ranjit.Balu
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 08, 2009
05:21 AM
Hi,
Thanks for the responces.
I've checked, RemoveFolders is here.
There are two folders: "[ProgramFilesFolder]company\product\" - company and product. One of them is removed (product) the other not. The folder is created by the installer and there are no files in it. Only the other folder.
So I am still searching for solution.
Regards
Vlad
Thanks for the responces.
I've checked, RemoveFolders is here.
There are two folders: "[ProgramFilesFolder]company\product\" - company and product. One of them is removed (product) the other not. The folder is created by the installer and there are no files in it. Only the other folder.
So I am still searching for solution.
Regards
Vlad
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 09, 2009
12:58 AM
You should check what you set your INSTALLDIR as (in Files and Folders panel)
I have something like below to remove all installed files upon 'uninstall'
function removeAllFiles(hMSI)
begin
DeleteDir(INSTALLDIR^"SomeFolder"^"MySubProduct", ALLCONTENTS);
end;
Where my INSTALLDIR is set as
C:\Program Files\MyCompany\MainProduct
Make a Custom Action associated with this function with
REMOVE="ALL" for Install Exec condition
So that the above removes everything under and including the folder
C:\Program Files\MyCompany\MainProduct\SomeFolder\MySubProduct
I have something like below to remove all installed files upon 'uninstall'
function removeAllFiles(hMSI)
begin
DeleteDir(INSTALLDIR^"SomeFolder"^"MySubProduct", ALLCONTENTS);
end;
Where my INSTALLDIR is set as
C:\Program Files\MyCompany\MainProduct
Make a Custom Action associated with this function with
REMOVE="ALL" for Install Exec condition
So that the above removes everything under and including the folder
C:\Program Files\MyCompany\MainProduct\SomeFolder\MySubProduct
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)