mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 18:39:47 +02:00
Merged revision(s) 59382 #a579366c3f, 59384 #7720c8bd0a from trunk:
Installer, Win: Allow adjusting install dir, in case of 2ndary/multiple installs. ........ Installer, Win: Prevent a crash, if installing 2ndary into same path, as previous (removed) primary installation. / Added logging. ........ git-svn-id: branches/fixes_2_0@59391 -
This commit is contained in:
parent
a8374659df
commit
1249e33845
@ -103,6 +103,7 @@ begin
|
|||||||
if UninstallState = uiDone then exit;
|
if UninstallState = uiDone then exit;
|
||||||
|
|
||||||
UnInstaller := RemoveQuotes(GetUninstallData('UninstallString'));
|
UnInstaller := RemoveQuotes(GetUninstallData('UninstallString'));
|
||||||
|
Log(' UnInstaller: '+UnInstaller);
|
||||||
if (UnInstaller <> '') and FileExists(UnInstaller) then
|
if (UnInstaller <> '') and FileExists(UnInstaller) then
|
||||||
begin
|
begin
|
||||||
OldPath := RemoveQuotes((GetUninstallData('Inno Setup: App Path')));
|
OldPath := RemoveQuotes((GetUninstallData('Inno Setup: App Path')));
|
||||||
@ -110,6 +111,7 @@ begin
|
|||||||
|
|
||||||
PathEqual := (OldPath <> '') and
|
PathEqual := (OldPath <> '') and
|
||||||
(CompareText(RemoveBackslashUnlessRoot(OldPath), RemoveBackslashUnlessRoot(WizardDirValue)) = 0);
|
(CompareText(RemoveBackslashUnlessRoot(OldPath), RemoveBackslashUnlessRoot(WizardDirValue)) = 0);
|
||||||
|
Log(' OldPath: '+OldPath+' OldName: '+ OldName);
|
||||||
if PathEqual then
|
if PathEqual then
|
||||||
UninstallState := uiDestNeeded
|
UninstallState := uiDestNeeded
|
||||||
else
|
else
|
||||||
@ -128,6 +130,11 @@ begin
|
|||||||
begin
|
begin
|
||||||
if (IsSecondaryCheckBoxChecked) or IsSecondaryUpdate then
|
if (IsSecondaryCheckBoxChecked) or IsSecondaryUpdate then
|
||||||
begin
|
begin
|
||||||
|
if ForcePrimaryAppId then begin
|
||||||
|
Log('UpdateUninstallInfo recursion detected');
|
||||||
|
UninstallState := uiInconsistent;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
ForcePrimaryAppId := True;
|
ForcePrimaryAppId := True;
|
||||||
Log('REDO UninstallState '+GetUninstallData('Inno Setup: App Path')+' // '+WizardDirValue);
|
Log('REDO UninstallState '+GetUninstallData('Inno Setup: App Path')+' // '+WizardDirValue);
|
||||||
if CompareText(RemoveBackslashUnlessRoot(RemoveQuotes(GetUninstallData('Inno Setup: App Path'))),
|
if CompareText(RemoveBackslashUnlessRoot(RemoveQuotes(GetUninstallData('Inno Setup: App Path'))),
|
||||||
|
@ -56,6 +56,7 @@ ShowTasksTreeLines=true
|
|||||||
PrivilegesRequired=none
|
PrivilegesRequired=none
|
||||||
; since appid can change, UsePreviousLanguage must be off
|
; since appid can change, UsePreviousLanguage must be off
|
||||||
UsePreviousLanguage=no
|
UsePreviousLanguage=no
|
||||||
|
DisableDirPage=no
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: {#BuildDir}\image\*.*; DestDir: {app}; Flags: recursesubdirs
|
Source: {#BuildDir}\image\*.*; DestDir: {app}; Flags: recursesubdirs
|
||||||
|
Loading…
Reference in New Issue
Block a user