Skip to content

Commit c6a4345

Browse files
committed
build: implement smart upgrade detection and English UI notice (v6.0.1.11)
1 parent 89df0bf commit c6a4345

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

QuickView/QuickView.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
// Version Information - This sets the display name in Windows
1212
VS_VERSION_INFO VERSIONINFO
13-
FILEVERSION 6,0,1,10
14-
PRODUCTVERSION 6,0,1,10
13+
FILEVERSION 6,0,1,11
14+
PRODUCTVERSION 6,0,1,11
1515
FILEFLAGSMASK 0x3fL
1616
FILEFLAGS 0x0L
1717
FILEOS VOS_NT_WINDOWS32
@@ -24,11 +24,11 @@ BEGIN
2424
BEGIN
2525
VALUE "CompanyName", "QuickView"
2626
VALUE "FileDescription", "QuickView"
27-
VALUE "FileVersion", "6.0.1.10"
27+
VALUE "FileVersion", "6.0.1.11"
2828
VALUE "InternalName", "QuickView"
2929
VALUE "OriginalFilename", "QuickView.exe"
3030
VALUE "ProductName", "QuickView"
31-
VALUE "ProductVersion", "6.0.1.10"
31+
VALUE "ProductVersion", "6.0.1.11"
3232
END
3333
END
3434
BLOCK "VarFileInfo"

installer/QuickView.iss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,21 @@ Filename: "{app}\{#MyAppExeName}"; Parameters: "--uninstall"; Flags: runhidden
8383
Type: files; Name: "{app}\QuickView.ini"
8484
Type: files; Name: "{app}\*.old"
8585
Type: filesandordirs; Name: "{userappdata}\QuickView"
86+
87+
[Code]
88+
procedure InitializeWizard;
89+
var
90+
ExistingPath: String;
91+
UpgradeMsg: String;
92+
begin
93+
// Check if QuickView is already installed
94+
// The AppId is {D175135F-5C7A-4E7B-B41E-C638E75C421A}
95+
if RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D175135F-5C7A-4E7B-B41E-C638E75C421A}_is1', 'InstallLocation', ExistingPath) or
96+
RegQueryStringValue(HKCU, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D175135F-5C7A-4E7B-B41E-C638E75C421A}_is1', 'InstallLocation', ExistingPath) then
97+
begin
98+
UpgradeMsg := 'QuickView has detected an existing installation on your system.' + #13#10#13#10 +
99+
'The installer will now update your current version to the latest one while preserving your settings.' + #13#10#13#10 +
100+
'Click Next to continue with the update.';
101+
WizardForm.WelcomeLabel2.Caption := UpgradeMsg;
102+
end;
103+
end;

0 commit comments

Comments
 (0)