简体   繁体   English

选择要在Inno Setup卸载程序上卸载的自定义组件

[英]Select custom components to uninstall on Inno Setup uninstaller

I made installer with Inno Setup. 我用Inno Setup制作了安装程序。 It consist of multiple executables all located in Program Files "APP" folder. 它由多个可执行文件组成,所有可执行文件都位于Program Files“APP”文件夹中。 But for every executable there's different subfolder in this "APP" folder. 但是对于每个可执行文件,这个“APP”文件夹中有不同的子文件夹。

Because every executable is different from purpose, I want to create uninstaller where I can choose, which component I want to uninstall (for example Change button in Add/Remove programs). 因为每个可执行文件都与目的不同,所以我想在我可以选择的地方创建卸载程序,我要卸载哪个组件(例如“添加/删除程序”中的“更改”按钮)。 At the moment uninstaller removes all the applications. 目前,卸载程序会删除所有应用程序。

One option is to create different installer for every component and then create installer that contains other installers, but this is too weird. 一种选择是为每个组件创建不同的安装程序,然后创建包含其他安装程序的安装程序,但这太奇怪了。

Is it possible to create custom uninstaller with option to select which component I want to uninstall? 是否可以创建自定义卸载程序,并选择选择要卸载的组件?

What seems that you need is a modify/repair setup option to your application's setup, right? 您需要的是应用程序设置的修改/修复设置选项,对吧? Take a look in this extension named UninsHs 看看这个名为UninsHs的扩展程序

Note: Searching in Google I've found another newer version in other site, but I am not sure if it is legit. 注意:在Google中搜索我在其他网站上发现了另一个较新的版本,但我不确定它是否合法。

It is possible to do in the Inno uninstaller but it won't "fit in" with the wizard style, and will require showing your own forms, and cancelling the uninstall when you've removed the bits you want. 可以在Inno卸载程序中执行,但它不会“适应”向导样式,并且需要显示您自己的表单,并在删除所需的位时取消卸载。

An alternative is to use the setup (which is slightly better suited for this) and handle components being ticked and unticked. 另一种方法是使用设置(稍微更适合此设置)并处理被勾选和未勾选的组件。

Both of these will require fairly extensive [Code] being written though. 这两个都需要相当广泛的[代码]。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM