Setup Factory 9安装前卸载旧版本的方法

Setup factory 9 删除前一版本的方法(即升级的方法):

1、在Actions的On Pre Install中加入以下语句

result = File.Run(SessionVar.Expand("%AppFolder%\\uninstall.exe"), "/U:Uninstall/uninstall.xml", SessionVar.Expand("%AppFolder%"), SW_SHOWNORMAL, true);

2、在Uninstall的Settings选项卡中,设定静默卸载

Options中Allow silent uninstall和Start in silent mode都打勾

以上方法亲测正常可用

猜你喜欢

转载自my.oschina.net/u/2606498/blog/1543788
今日推荐