C#应用程序部署 [英] C# Application Deployment

查看:70
本文介绍了C#应用程序部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



问题是,当我卸载文件时,还有文件以及应用程序目录.

原因是这些文件是在运行时创建的.

之所以创建它们,是因为它们是保存应用程序数据的.xml文件.

如何使用批处理文件?



如何添加安装程序类

将会卸载这些文件以及应用程序的目录.

默认情况下,msi不会删除未安装的任何文件.

谢谢

Bobby Oakes

Hi,

The problem is that there are files left as well as the application directory when I uninstall it.

The reason is that these files are created during Run Time.

They are created because they are .xml files that save application data.

How can i use either a batch file?

Or

How can I add an installer class

that will uninstall these files as well as the directory for the application.

The msi by default does not delete any files that it did not install.

Thanks

Bobby Oakes

推荐答案

一种检查文件夹所在文件的方法
为此,您可以编写脚本.该脚本将删除所有文件(如果存在),或删除包含这些文件的整个文件夹.
该脚本可以在卸载过程中运行...
请参阅以下文章:
http://www.ehow.com/how_7281329_uninstall-msi-script.html [ ^ ]
http://www.symantec.com/connect/downloads/uninstall-msi-vbscript [ ^ ]
One way to check your folder where located yours files
For this purpose, you can write a script. The script will delete all the files (if they exist), or will delete the entire folder that contains the files.
The script can be run during uninstall...
Please see following articles:
http://www.ehow.com/how_7281329_uninstall-msi-script.html[^]
http://www.symantec.com/connect/downloads/uninstall-msi-vbscript[^]


这篇关于C#应用程序部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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