fix(windows打包): 修改桌面图标创建任务默认选中状态

移除CurPageChanged过程中强制选中桌面图标的逻辑,改为直接在Tasks中设置默认选中
This commit is contained in:
shanshanzhong 2025-11-24 02:52:16 -08:00
parent e537775e71
commit ee3fdd91fa

View File

@ -52,7 +52,7 @@ CloseApplications=force
{% endfor %}
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkedonce
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checked
Name: "launchAtStartup"; Description: "{cm:AutoStartProgram,{{DISPLAY_NAME}}}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: {% if LAUNCH_AT_STARTUP != true %}unchecked{% else %}checkedonce{% endif %}
[Files]
Source: "{{SOURCE_DIR}}\\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
@ -144,10 +144,3 @@ begin
CleanPaths();
Result := True;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpSelectTasks then begin
WizardSelectTasks('desktopicon', True);
end;
end;