本文介绍了Inno Setup:如果选择了其他组件,则禁止显示警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[Components]中,有两个定义为exclusive的组件(例如A和B).实际上,这两个组件并不是真正的组件,而是用户必须选择的两个版本的应用程序配置.

In [Components] I have two components (say A and B) defined exclusive. In fact the two components are not really components but two versions of the application configuration the user must choose from.

假设用户已经安装了我的应用程序,并且选择了组件A.如果用户这次安装了我的应用程序的更新,则选择组件B,将弹出一个警告框,提示

Assume the user has installed my application with component A chosen. If the user installs an update of my application this time choosing component B a warning box pops up that says

是否有任何方法可以消除此警告消息,因为在我看来,它使用户感到困惑(因为他知道组件A和B只是应用程序配置的不同版本)?

Is there any way to suppress this warning message since it is in my case rather confusing to the user (since he knows that component A and B are just different versions of the application configuration)?

我是否滥用向导组件选择页面?如果是,我还应该使用什么来允许用户为其应用程序配置选择版本A或B?

Am I misusing the wizard component selection page? If yes what else should I use to allow the user to select version A or B for his application configuration?

推荐答案

首先,是的,您可能会滥用这些组件.设置类型会更合适吗?

First, yes, you are possibly misusing the components. Would not a setup type be more appropriate?

无论如何,您可以使用 disablenouninstallwarning标志:

Anyway, you can use the disablenouninstallwarning flag:

根据组件的复杂程度,您可以尝试使用[InstallDelete]部分和此标志来自动卸载"取消选择的组件.

Depending on the complexity of your components, you can try to use the [InstallDelete] section and this flag to automatically 'uninstall' deselected components.

这篇关于Inno Setup:如果选择了其他组件,则禁止显示警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 16:13
查看更多