Loading
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

  • 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
    Expand Post
  • 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
    Expand Post
  • 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
    Expand Post

Loading
Folder not removed after uninstall