We have a Windows installer package, sample.msi
. To install the package we are using
msiexec /i sample.exec /qr
To uninstall the same package, the below code is used.
msiexec /x sample.exec /qr
When we use /x
it deletes all the files in the associated directory which is created. We want to retain all the contents in the directory. How is that possible?