PDA

View Full Version : Uninstalling via msiexec vs end-user "uninstall" with InstallScript/MSI project



andrewcflex
05-02-2017, 03:39 PM
I am using the <ComponentName>UnInstalled event to remove some folders from the installation directory.
Works great when the end-user "Removes" the program
However, when I use msiexec /x to remove the program, these folders are not removed.
I am using the INSTALLDIR when deleting the folders. I am guessing that perhaps I should be using MSI_TARGETDIR ?
The help is quite vague on the whole TARGETDIR vs INSTALLDIR vs MSI_TARGETDIR issue.