Inno Setup 将 DLL 嵌入到卸载程序中

Inno Setup Embed DLL into uninstaller

是否可以加载位于 unins000.exe 而不是文件系统或 {app} 路径内的 DLL?

我想隐藏此 DLL 并仅在卸载时加载它。

谢谢

很难将文件嵌入到卸载程序中 (unins000.exe)。

但这是可能的,请参阅我对 How keep uninstall files inside uninstaller?

的回答

另一种 "hide" DLL 的方法,您可以将其重命名为一些不明显的扩展名。

或者更进一步,将其打包为某种存档格式。例如,您可以使用 Windows .cab 格式。为此,您拥有工具(extract.exe and makecab.exe 在所有 Windows 的现代版本中(至少 XP 及更高版本)。

请注意,无论您尝试什么,都无法阻止用户访问 DLL(即使您将其嵌入到卸载程序中)。你只能努力。