cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vnikolov
Level 3

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
Labels (1)
0 Kudos
(4) Replies
bornali
Level 5

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.
0 Kudos
Ranjit_Kumar
Level 6

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
0 Kudos
vnikolov
Level 3

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
0 Kudos
bornali
Level 5

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
0 Kudos