mirror of
https://github.com/ckaczor/SmartHDD.git
synced 2026-02-16 18:47:57 -05:00
Add installer
This commit is contained in:
25
Installer/scripts/products/fileversion.iss
Normal file
25
Installer/scripts/products/fileversion.iss
Normal file
@@ -0,0 +1,25 @@
|
||||
[Code]
|
||||
function GetFullVersion(VersionMS, VersionLS: cardinal): string;
|
||||
var
|
||||
version: string;
|
||||
begin
|
||||
version := IntToStr(word(VersionMS shr 16));
|
||||
version := version + '.' + IntToStr(word(VersionMS and not $ffff0000));
|
||||
|
||||
version := version + '.' + IntToStr(word(VersionLS shr 16));
|
||||
version := version + '.' + IntToStr(word(VersionLS and not $ffff0000));
|
||||
|
||||
Result := version;
|
||||
end;
|
||||
|
||||
function fileversion(file: string): string;
|
||||
var
|
||||
versionMS, versionLS: cardinal;
|
||||
begin
|
||||
if GetVersionNumbers(file, versionMS, versionLS) then
|
||||
Result := GetFullVersion(versionMS, versionLS)
|
||||
else
|
||||
Result := '0';
|
||||
end;
|
||||
|
||||
[Setup]
|
||||
Reference in New Issue
Block a user