InstallShield:卸载程序不会删除所有文件夹 [英] InstallShield: Uninstalling program not removing all folders

查看:416
本文介绍了InstallShield:卸载程序不会删除所有文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Installshield2010.我进行了基本的MSI设置,但是在卸载时遇到了问题.

I am using Installshield 2010. I made a basic MSI setup, and I am having a problem with uninstalling.

卸载并不会删除所有文件夹.

Uninstalling does not remove all folders.

完全安装后,我仅卸载后发现仍有剩余路径.

After a complete install, I then uninstall only to find that there is still a path leftover.

例如,C:\ProgramFiles\CompanyName\Account\User_1234.xml 仍然存在,而其他一切都消失了.

For example, C:\ProgramFiles\CompanyName\Account\User_1234.xml still remains, while everything else is gone.

User_1234.xml文件由应用程序生成,并且该文件通常不在安装过程中.因此,合理的解释了为什么此文件在摆脱它时可能会遇到一些问题(安装程序方面).

The User_1234.xml file is generated by the application, and this file is not normally in the install process. So it makes sense why this file may have some problems getting rid of it (installer side).

同时,我认为由于它位于CompanyName文件夹中,因此将其删除.

At the same time, I would think that it would be removed due to the fact that it is within the CompanyName folder.

有什么方法可以指定来清除内部所有内容,包括CompanyName文件夹吗?

Is there any way to specify to get rid of everything inside and including the CompanyName folder?

感谢任何想法.

推荐答案

您有几个问题,我将首先解决一个明显的问题.是的,Windows Installer的默认行为是不删除用户数据.这可能是安装程序未安装的文件,也可能是由于安装程序修改了文件而被修改的文件.要使安装程序删除它们,您必须编写RemoveFiles表来告诉它要删除哪些文件.

You have a couple problems and I'll address the obvious one first. Yes, Windows Installer default behavior is to not delete user data. This could be files not installed by the installer or files that were modified since the installer modified them. To get the installer to remove them, you must author the RemoveFiles table to teach it which files to remove.

删除文件表(Windows安装程序)

现在,我将解决不太明显的问题.您不应该期望您的应用程序能够在运行时写入ProgramFiles.我不知道您的软件会做什么,但是您应该认真考虑应用程序设计的这一方面.

Now I'll address the less obvious problem. You shouldn't expect your application to be able to write to ProgramFiles at runtime. I don't know what your software does but you should seriously consider this aspect of your application design.

这篇关于InstallShield:卸载程序不会删除所有文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆