InstallShield:自定义操作&错误1722 [英] InstallShield: Custom Action & Error 1722

查看:85
本文介绍了InstallShield:自定义操作&错误1722的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个InstallShield项目,我检查某些条件,如果不满足我想要安装中止。  所以我创建了一个具有以下属性的自定义操作:

I have an InstallShield project where I check for certain conditions and if they are not met I want to installation to abort.  So I created a custom action with the following properties:

*初始化后

*源位置:浏览文件系统

*文件名:MyProg.exe

*命令行:[空]

*等待动作:是

*忽略退出代码:否

*评论:[空]

*条件:无条件

* After Initialization
* Source Location: Browse File System
* File Name: MyProg.exe
* Command Line: [Empty]
* Wait for Action: Yes
* Ignore Exit Code: No
* Comments: [Empty]
* Condition: No Conditions

如果操作系统是32位且程序返回0 3当它是64位操作系统时(它还显示一个对话框)。我遇到的问题是,之后我收到以下错误:

The program returns 0 if the OS is 32-bit and 3 when it is a 64-bit OS (it also shows a dialog). The problem I am having is that afterwards I get the following error:

"错误1722.此Windows Installer程序包有问题。作为设置的一部分运行的程序没有按预期完成。 "

"Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. "

为什么我收到此错误?重点是程序返回一个非零值以中止安装,因此它不应显示这样的错误。是否有一些设置不显示此错误?

Why am I getting this error? The whole point is that the program returns a non-zero value in order to abort the installation so it shouldn't show such an error. Is there some setting to not show this error?

推荐答案

您好,

这是一个常见问题。您需要在日志文件中提供详细的例外信息,以帮助我们找到问题的根源。 

This is a commonly issue. You need to provide the detail exception information in log file that help us to find the root of issue in your case. 

尝试下面提到的解决方案。

Try the solution below thread mentioned.

https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/there-is-a-problem-with-this-windows-installer/36faa78f -f670-e011-8dfc-68b599b31bf5

https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/error-1722-with-windows -7 / 3b7278c4-5fd8-49b4-96f2-52ddcdbc743

顺便说一句,由于 InstallShield不是Microsoft产品,
我建议你在
Flexera软件社区论坛。
在这里,您将获得更专业的回复和建议。

By the way, since the InstallShield is not Microsoft Product, I suggest you ask question at Flexera Software Community Forums . Here you will get some more professional response and suggestions .

希望它对你有所帮助。

Hope it will be helpful to you.

最好的问候,

Bob


这篇关于InstallShield:自定义操作&错误1722的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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