
vladi.nikolov1.5524943579851633E12 asked a question.
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
Check whether RemoveFolders action is missing from the execute sequence table.
Regards
Ranjit.Balu
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
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