一.inno setup准备工作
1.要实现inno setup自定义卸载程序,首先需要关闭自带的卸载程序。在[Setup]的字段关闭卸载程序步骤和页面。
[Setup]
Uninstallable = no
2.自定义快捷方式和程序菜单
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}";
3.自定义卸载程序相关的注册表信息。
sUnInstPath := 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{#MyAppID}_is1';
sUnInstallString := 'UninstallString';
// window 卸载位置显示的卸载名称
RegWriteStringValue(HKEY_LOCAL_MA