Files
CleanMachine/readme.md
gongxh b06189cb49 1
2021-06-05 14:54:17 +08:00

19 lines
817 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
1、修改主程序(CleanMachineHMI) 的程序版本。 也就是: AssemblyInfo.cs 类里的最后两行版本号。 例如:
[assembly: AssemblyVersion("1.0.0.8")]
[assembly: AssemblyFileVersion("1.0.0.8")]
2、修改打包安装程序的版本号和步骤一相同。修改打包安装程序的产品编码(ProductCode)。
3、修改打包安装程序的RemovePreviousVersions属性为true。
3、复制步骤2 的产品编码到卸载快捷方式的属性Arguments中。例如:/x {409445F2-9F92-47F8-A438-DF194B73B047}
其中前面的/x后面要加一个空格。
4、重新生成主程序和打包安装程序即可。
注意事项:有可能卸载程序所依赖的exe不存在。需要手动删除后重新选择。一般情况卸载依赖的exe位于:
C:\Windows\System32\msiexec.exe