@@ -34,7 +34,6 @@ ShowLanguageDialog=auto
34
34
ArchitecturesAllowed = {#ArchitecturesAllowed}
35
35
ArchitecturesInstallIn64BitMode = {#ArchitecturesInstallIn64BitMode}
36
36
WizardStyle = modern
37
- SetupLogging = yes
38
37
39
38
#ifdef Sign
40
39
SignTool = esrp
@@ -89,7 +88,7 @@ Name: "{app}"; AfterInstall: DisableAppDirInheritance
89
88
[Files]
90
89
Source : " *" ; Excludes: " \CodeSignSummary*.md,\tools,\tools\*,\appx,\appx\*,\resources\app\product.json" ; DestDir : " {code:GetDestDir}" ; Flags : ignoreversion recursesubdirs createallsubdirs
91
90
Source : " tools\*" ; DestDir : " {app} \tools" ; Flags : ignoreversion
92
- Source : " appx\*" ; DestDir : " {app} \appx" ; BeforeInstall : RemoveAppxPackage; AfterInstall : AddAppxPackage; Flags : ignoreversion
91
+ Source : " appx\*" ; DestDir : " {app} \appx" ; BeforeInstall : RemoveAppxPackage; AfterInstall : AddAppxPackage; Flags : ignoreversion ; Check : IsWindows11OrLater and QualityIsInsiders
93
92
Source : " {#ProductJsonPath}" ; DestDir : " {code:GetDestDir}\resources\app" ; Flags : ignoreversion
94
93
95
94
[Icons]
@@ -1423,26 +1422,22 @@ procedure AddAppxPackage();
1423
1422
var
1424
1423
AddAppxPackageResultCode: Integer;
1425
1424
begin
1426
- if IsWindows11OrLater() and QualityIsInsiders() then begin
1427
- if WizardIsTaskSelected(' addcontextmenufiles' ) then begin
1428
- ShellExec(' ' , ' powershell.exe' , ' -Command ' + AddQuotes(' Add-AppxPackage -Path '' ' + ExpandConstant(' {app}\appx\{#AppxPackage}' ) + ' '' -ExternalLocation '' ' + ExpandConstant(' {app}\appx' ) + ' '' ' ), ' ' , SW_HIDE, ewWaitUntilTerminated, AddAppxPackageResultCode);
1429
- RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\*\shell\{#RegValueName}' );
1430
- RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\directory\shell\{#RegValueName}' );
1431
- RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\directory\background\shell\{#RegValueName}' );
1432
- RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\Drive\shell\{#RegValueName}' );
1433
- end ;
1425
+ if WizardIsTaskSelected(' addcontextmenufiles' ) then begin
1426
+ ShellExec(' ' , ' powershell.exe' , ' -Command ' + AddQuotes(' Add-AppxPackage -Path '' ' + ExpandConstant(' {app}\appx\{#AppxPackage}' ) + ' '' -ExternalLocation '' ' + ExpandConstant(' {app}\appx' ) + ' '' ' ), ' ' , SW_HIDE, ewWaitUntilTerminated, AddAppxPackageResultCode);
1427
+ RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\*\shell\{#RegValueName}' );
1428
+ RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\directory\shell\{#RegValueName}' );
1429
+ RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\directory\background\shell\{#RegValueName}' );
1430
+ RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\Drive\shell\{#RegValueName}' );
1434
1431
end ;
1435
1432
end ;
1436
1433
1437
1434
procedure RemoveAppxPackage ();
1438
1435
var
1439
1436
RemoveAppxPackageResultCode: Integer;
1440
1437
begin
1441
- if IsWindows11OrLater() and QualityIsInsiders() then begin
1442
- ShellExec(' ' , ' powershell.exe' , ' -Command ' + AddQuotes(' Remove-AppxPackage -Package '' {#AppxPackageFullname}'' ' ), ' ' , SW_HIDE, ewWaitUntilTerminated, RemoveAppxPackageResultCode);
1443
- if not WizardIsTaskSelected(' addcontextmenufiles' ) then begin
1444
- RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\{#RegValueName}ContextMenu' );
1445
- end ;
1438
+ ShellExec(' ' , ' powershell.exe' , ' -Command ' + AddQuotes(' Remove-AppxPackage -Package '' {#AppxPackageFullname}'' ' ), ' ' , SW_HIDE, ewWaitUntilTerminated, RemoveAppxPackageResultCode);
1439
+ if not WizardIsTaskSelected(' addcontextmenufiles' ) then begin
1440
+ RegDeleteKeyIncludingSubkeys({ #EnvironmentRootKey} , ' Software\Classes\{#RegValueName}ContextMenu' );
1446
1441
end ;
1447
1442
end ;
1448
1443
0 commit comments