We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

venuspatelindianic
Posts: 2
Joined: Fri Jan 29, 2016 10:46 am

How to remove a folder created by old version of application with files during upgrade in advanced installer

Many thanks in advance, I am using advanced installer 12.1, the scenario is we have already installed application with some custom location feature and is extends the default application location, this installation creates some folders to store temporary files like "Temporary" folder, this folder is used by the application on every minute basis and hence there are some files in this folder, now issue is when i run a new build or try to install the new version of the application, i again select the another custom location, before finishing the installation the installer deleting all the folders installed with older version but not deleting the folders which contains files created by the application e.g the temporary directory above is deleted if it is empty but when it is non-empty it is not removed.

Solution i tried:
1) I used file Removal tool to remove the file, but i think it point the current location and not pointing the older application path.
2) A custom VB script, but again the same issue as #1
3) I tried uninstall cleanup wizard, result #1

Please guide me how i can delete that folder, any help would be appreciated.

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to remove a folder created by old version of application with files during upgrade in advanced installer

Hello and welcome to Advanced Installer forums,

Indeed, during an uninstall, Windows Installer removes only the data registered into the MSI file. All other data created by custom actions, by the installed application or by the user is not registered in the MSI, therefore it will not be removed.

If you want to also delete this data, you can use the "Uninstall Cleanup" wizard feature to remove any redundant files or folder. On the Files and Folders page, simply right click the folder that needs to be cleaned up upon uninstall and click “Uninstall Cleanup". The “Wizard” will guide you through the rest of the process.

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
venuspatelindianic
Posts: 2
Joined: Fri Jan 29, 2016 10:46 am

Re: How to remove a folder created by old version of application with files during upgrade in advanced installer

Dan Thanks For Your Support,

I tried the feature you mentioned above, but it deleting the directory only if the older and newer version is installed in the same directory, and the another issue with my case is that we did removed the folder in our newer version of the package, otherwise we can use the Folder Removal or Uninstall Cleanup wizard to solution. I am sure there should be some trick that we can get the registered directory paths by MSI installer during new installation, if there is any we can create a custom action and then we can remove it, kindly suggest the way around.


Thanks
Venus Patel

Return to “Common Problems”