GiffRansom
Posts: 2
Joined: Fri Jun 06, 2008 4:43 pm

A Problem with Completely Removing the Application Directory

We're trying to add a custom install action to completely remove the Application directory as a final uninstall step. On these forums I ran into this advice:
Working Dir=SystemFolder
Full Path=cmd.exe /Q /C "rd /S /Q "[APPDIR]""
It's just a dos command which should theoretically remove the directory. However, there is a problem - this only works if you have installed the application in the default directory. Apparently "APPDIR" is set at the session level, and, at the time of uninstall it is reset to the original value rather than reflecting the path in the registry. Any ideas on how to address this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: A Problem with Completely Removing the Application Directory

Hi,
Apparently "APPDIR" is set at the session level, and, at the time of uninstall it is reset to the original value rather than reflecting the path in the registry.
I cannot reproduce this behavior on my test machine. When using this custom action the APPDIR property should be set to the value given by the user during the installation (it doesn't matter if its the default value or a custom one). Can you please send us the AIP which shows this problem to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”