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?