From 75e3f2cf523c30547e5386d602f6d51f830a4e1d Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sun, 30 Jun 2024 17:10:46 -0700 Subject: [PATCH] use relative path --- win_inno_installscript.iss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/win_inno_installscript.iss b/win_inno_installscript.iss index 8f5f740..19a5387 100644 --- a/win_inno_installscript.iss +++ b/win_inno_installscript.iss @@ -7,6 +7,8 @@ #define MyAppURL "https://github.com/dweymouth/supersonic" #define MyAppExeName "Supersonic.exe" +#define PathToSelf ExtractFileDir(__PATHFILENAME__) + [Setup] ; 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.) @@ -28,7 +30,7 @@ ArchitecturesAllowed=x64compatible ; the 64-bit view of the registry. ArchitecturesInstallIn64BitMode=x64compatible 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.) ;PrivilegesRequired=lowest PrivilegesRequiredOverridesAllowed=dialog @@ -44,8 +46,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl" Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] -Source: "C:\msys64\home\dravin\supersonic\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion -Source: "C:\msys64\home\dravin\supersonic\libmpv-2.dll"; DestDir: "{app}"; Flags: ignoreversion +Source: "{#PathToSelf}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion +Source: "{#PathToSelf}\libmpv-2.dll"; DestDir: "{app}"; Flags: ignoreversion ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons]