如何在Inno Setup UninstalledAll消息中使用{app}路径名?

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

我在Inno Setup的消息中看到了如何使用宏[name][ver]。有什么方法可以使用应用程序路径(由{app}在Inno Setup中的其他位置指定)?当我卸载我的应用程序时,我想告诉用户该文件仍在磁盘上,并且具有应用程序的路径名,并且其中包含一个环境变量。我不想删除具有路径名的文件,也不想清除变量,因为它们中可能包含其他路径,但是我想警告用户。

这是我要修复的Inno Setup条目:

[Messages]
UninstalledAll=%1 uninstall complete.%n%nI did not try to remove the APP-PATHNAME-HERE from the PATH16 environment variable, or from the PATH statement in autoexec.bat in your otvdm\C folder. You may safely ignore these.
installer inno-setup
1个回答
0
投票

不是自定义消息。这是标准信息。您无法通过这种方式修改标准消息。

您所能做的就是显示另一条消息。例如来自CurUninstallStepChanged(usPostUninstall)

CurUninstallStepChanged(usPostUninstall)
© www.soinside.com 2019 - 2024. All rights reserved.