Inno Setup uninstall executable location and name

时光总嘲笑我的痴心妄想 提交于 2019-12-21 09:53:54

问题


Can I configure it to be placed in the same location C:\windows\something\ that .msi files produced by windows installer are hidden in, instead of in C:\Program Files\MyAppFolder\?

Also can I change the name to something more obvious in intent than unins000.exe?


回答1:


The uninstaller path can be changed by setting a value in the script file:

[Setup]
UninstallFilesDir={win}\Installer

There doesn't appear to be a way to change the name.




回答2:


With the shipping InnoSetup there is currently no way specify the Uninstall file name.

Since Source is available you can change the behavior the file name is stored in UninstallExeFileName and is set in GenerateFilenames() in the Install.pas



来源:https://stackoverflow.com/questions/1631789/inno-setup-uninstall-executable-location-and-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!