1

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?

4

1 回答 1

2

默认情况下,Windows Installer 会删除软件包安装的所有文件,安装完成后创建的文件除外。如果要在卸载后保留已安装的文件,最简单的解决方案是将其组件标记为永久,在组件表中

于 2012-04-09T07:00:47.157 回答