更改Inno设置“ ...已成功从计算机中删除。”消息并添加图片

问题描述 投票:-1回答:1

我已经阅读了互联网,Inno的文档以及这个很棒的地方Stack OverFlow。

我曾使用Inno Setup进行安装,并且一切正常。我要在卸载我的程序时更改最后一个msgbox。

我准备了带有程序徽标和消息的图像。但我看不出该如何改变。

我只想更改或添加映像,卸载结束。

我只能使用图像创建自定义表单吗?

感谢所有人。

installation installer inno-setup
1个回答
0
投票

无法自定义“ ...已成功从计算机中删除。”对话框,除了消息文本本身,可以使用[Messages]部分进行修改。

[Messages]
UninstalledAll=%1 was successfully removed from your computer.
UninstalledMost=%1 uninstall complete.%n%nSome elements could not be removed. These can be removed manually.
UninstalledAndNeedsRestart=To complete the uninstallation of %1, your computer must be restarted.%n%nWould you like to restart now?

但是您不能做其他修改,例如添加图像。至少并非没有黑客。

使用Inno Setup API所能做的就是处理usPostUninstall事件并在此处显示您的自定义对话框。然后强行中止安装程序。但是,如果需要完成安装,Windows的自动重启将无法正常工作。

© www.soinside.com 2019 - 2024. All rights reserved.