use relative path

This commit is contained in:
Drew Weymouth
2024-06-30 17:10:46 -07:00
parent 0f12bd89dc
commit 75e3f2cf52
+5 -3
View File
@@ -7,6 +7,8 @@
#define MyAppURL "https://github.com/dweymouth/supersonic" #define MyAppURL "https://github.com/dweymouth/supersonic"
#define MyAppExeName "Supersonic.exe" #define MyAppExeName "Supersonic.exe"
#define PathToSelf ExtractFileDir(__PATHFILENAME__)
[Setup] [Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
@@ -28,7 +30,7 @@ ArchitecturesAllowed=x64compatible
; the 64-bit view of the registry. ; the 64-bit view of the registry.
ArchitecturesInstallIn64BitMode=x64compatible ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes DisableProgramGroupPage=yes
LicenseFile=C:\msys64\home\dravin\supersonic\LICENSE LicenseFile="{#PathToSelf}\LICENSE"
; Uncomment the following line to run in non administrative install mode (install for current user only.) ; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest ;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog PrivilegesRequiredOverridesAllowed=dialog
@@ -44,8 +46,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files] [Files]
Source: "C:\msys64\home\dravin\supersonic\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion Source: "{#PathToSelf}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\msys64\home\dravin\supersonic\libmpv-2.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#PathToSelf}\libmpv-2.dll"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons] [Icons]