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”

 

附:

使用Advanced Installer 自动部署 Arcgis Engine Runtime 10.0

你可能感兴趣的:(MSI)