Skip to content

Commit d3aeb27

Browse files
committed
fix: install to Program Files (x64), refresh icon cache post-install
1 parent 02d3b6a commit d3aeb27

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

installer/ClipHive.iss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ AppPublisher={#MyAppPublisher}
1313
AppPublisherURL={#MyAppURL}
1414
AppSupportURL={#MyAppURL}/issues
1515
AppUpdatesURL={#MyAppURL}/releases
16-
DefaultDirName={autopf}\{#MyAppName}
16+
DefaultDirName={autopf64}\{#MyAppName}
1717
DefaultGroupName={#MyAppName}
1818
OutputDir=..\dist
1919
OutputBaseFilename=ClipHive-{#MyAppVersion}-Setup
2020
SetupIconFile=..\assets\icon\ClipHive.ico
2121
Compression=lzma2
2222
SolidCompression=yes
2323
WizardStyle=modern
24-
PrivilegesRequired=lowest
24+
PrivilegesRequired=admin
25+
; Startup entry (HKCU) and user desktop shortcut are intentionally per-user
26+
UsedUserAreasWarning=no
2527
ArchitecturesAllowed=x64compatible
2628
ArchitecturesInstallIn64BitMode=x64compatible
2729
UninstallDisplayIcon={app}\{#MyAppExeName}
@@ -47,6 +49,9 @@ Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeNam
4749
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "ClipHive"; ValueData: """{app}\{#MyAppExeName}"""; Flags: uninsdeletevalue; Tasks: startupentry
4850

4951
[Run]
52+
; Refresh Windows icon cache so the ClipHive logo shows immediately
53+
; without needing a reboot or manual Explorer restart
54+
Filename: "ie4uinit.exe"; Parameters: "-show"; Flags: runhidden nowait
5055
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
5156

5257
[UninstallDelete]

0 commit comments

Comments
 (0)