advanced installer 使用常见问题整理

1、安装文件没有被覆盖问题
解决:
Files and Folders 选择所有文件 
右键-Properties-Operations-Always overwrite existing file

2、ocx或dll文件的注册
解决:
Files and Folders 选择所有文件 
右键-Properties-Registration-Auto register file

3、提示安装包有问题,作为安装的一部分的程序没有按预期完成
CustomAction viewer.exe returned actual error code 5 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (c) (B4:A4) [12:32:10:077]: Creating MSIHANDLE (557) of type 790531 for thread 12708
MSI (c) (B4:A4) [12:32:10:077]: Closing MSIHANDLE (557) of type 790531 for thread 12708
MSI (s) (24:7C) [12:32:10:078]: Note: 1: 1722 2: viewer.exe 3: C:\windows\Installer\MSIF3DF.tmp 4: /RunAsAdmin /HideWindow "C:\Program Files (x86)\XXX\注册.bat" 
CustomAction FontReg.exe returned actual error code -1073741819 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (c) (64:34) [14:10:51:986]: Creating MSIHANDLE (530) of type 790531 for thread 5172
MSI (c) (64:34) [14:10:51:986]: Closing MSIHANDLE (530) of type 790531 for thread 5172
MSI (s) (4C:40) [14:10:51:986]: Note: 1: 1722 2: FontReg.exe 3: C:\Program Files (x86)\XXX\FontReg.exe 4: /copy 

解决:
Custom Actions - Execution Options
取消勾选Fail installation if custom action returns an error (取消还是不取消,按个人需求)

4、防止静默安装msi导致电脑重启的问题
Install Parameters-Installation Options-Reboot behavior改为Suppress all Reboots and Rebbot prompts

5、在安装包的环境界面显示版本号
Dialogs-WelcomeDlg,定制Text属性,加入[ProductVersion]变量

6、默认以管理员方式运行
Install Parameters-Run as administrator

7、防止弹出已安装该程序的另一个版本,同时,安装前卸载掉所有旧版本
-Product Details-Product IDs,更换Product Code,保持Upgrade Code不变
-Custom Actions中增加Uninstall previous versions
-Builds-Configuration,BootStrapper Options,Uninstall a package with the same version(if found),打钩
注意:这样设置后/qn /qb /quiet参数执行时无法卸载旧版程序

8、生成项目默认为English US,如何改为Chinese Simplified(RPC)
-User Interface-Translations-Languages,勾选Chinese Simplified(RPC)
-保存项目,用记事本打开.api文件,将DOCUMENT节点的Language属性改为zh,保存,重新打开项目即可

9、安装完成后,打开程序
User Interface-Dialogs,First Time Install-ExitDialog,右键勾选Events,点击窗体,设置下面的Launch application at the end of installation

10、使生成的安装包最小
Package Definition-Builds,Archive-Archive installation files using LZMA compression同时设置 Method:LZMA2-Level:Normal

11、安装包安装时,启动特别慢的问题
Requirements-Launch Conditions,System-System Requirements,取消勾选“Run only if an active Internet connection is found”


原文链接:https://blog.csdn.net/frozleaf/article/details/84195026

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值