Skip to content

Commit 8c0168f

Browse files
committed
Merge branch 'master' into fontinstall
2 parents 2ef2b64 + 7445e1d commit 8c0168f

File tree

73 files changed

+1830
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1830
-232
lines changed

.github/actions/spelling/allow.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ createpintable
5353
createportabletable
5454
createtables
5555
CRTDECL
56+
CRYPTPROTECT
5657
CTLs
5758
curated
5859
CURSORPOSITON
@@ -63,6 +64,7 @@ datetime
6364
dbconn
6465
DBId
6566
debugbreak
67+
dedup
6668
defaultlocale
6769
delstore
6870
Demitrius
@@ -113,6 +115,7 @@ FLUSHEACHLINE
113115
fnt
114116
forcerestart
115117
gdi
118+
genai
116119
HCCE
117120
hcertstore
118121
HCRYPTMSG
@@ -228,6 +231,7 @@ Pathto
228231
PBYTE
229232
pch
230233
PCWSTR
234+
pelikhan
231235
PEVENT
232236
pfns
233237
pfp

.github/actions/spelling/expect.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ AMap
1818
Amd
1919
amrutha
2020
ansistring
21+
anyissuer
2122
Aot
2223
APARTMENTTHREADED
2324
apfn
@@ -106,6 +107,7 @@ countryregion
106107
Cov
107108
CPIL
108109
createmanifestmetadata
110+
crt
109111
cswinrt
110112
ctc
111113
CTL
@@ -167,6 +169,7 @@ FECAFEB
167169
fedorapeople
168170
fileinuse
169171
filemode
172+
Filetime
170173
Filtercriteria
171174
Finalizers
172175
fintimes
@@ -458,6 +461,7 @@ removefile
458461
reparse
459462
repeatedkey
460463
REQS
464+
requirenonleaf
461465
restsource
462466
RGBQUAD
463467
rgp
@@ -544,6 +548,7 @@ thiscouldbeapc
544548
threehundred
545549
timespan
546550
Tlg
551+
TLSCAs
547552
tombstoned
548553
transitioning
549554
trimstart
@@ -588,6 +593,7 @@ vns
588593
vsconfig
589594
vstest
590595
waitable
596+
wal
591597
wcex
592598
WDAG
593599
webpages
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Automatic New Issue Deduplication
2+
on:
3+
issues:
4+
types: [opened, reopened]
5+
permissions:
6+
models: read
7+
issues: write
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.issue.number }}
10+
cancel-in-progress: true
11+
jobs:
12+
deduplicate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Run Deduplicate Action
16+
uses: pelikhan/action-genai-issue-dedup@v0
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
label_as_duplicate: true

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ jobs:
332332
- powershell: |
333333
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
334334
Install-Module Microsoft.WinGet.Client -Repository PSGallery -Force
335-
Repair-WingetPackageManager -AllUsers -Latest
335+
try { Repair-WingetPackageManager -AllUsers -Latest -Verbose } catch { $_.Exception }
336336
Install-WinGetPackage -Id Microsoft.Sysinternals.PsTools -Source winget
337337
displayName: Install Sysinternals PsTools Using Winget
338338
condition: succeededOrFailed()

doc/admx/en-US/DesktopAppInstaller.adml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ If you disable this setting, users will not be able to use the Windows Package M
116116
If you enable this setting, users will be able to configure the Windows Package Manager's use of proxy through the command line.
117117

118118
If you disable or do not configure this setting, users will not be able to to configure the Windows Package Manager's use of proxy through the command line.</string>
119-
<string id="EnableWindowsPackageManagerMcpServer">Enable Windows Package Manager MCP Server</string>
119+
<string id="EnableWindowsPackageManagerMcpServer">Enable MCP Server for Windows Package Manager</string>
120120
<string id="EnableWindowsPackageManagerMcpServerExplanation">
121121
This policy controls whether the Windows Package Manager Model Context Protocol (MCP) server can be used.
122122

@@ -169,3 +169,4 @@ If you disable, Microsoft SmartScreen will not be consulted before installing a
169169
</presentationTable>
170170
</resources>
171171
</policyDefinitionResources>
172+

src/AppInstallerCLI.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project", "Project", "{8D53
3737
..\azure-pipelines.nuget.yml = ..\azure-pipelines.nuget.yml
3838
..\azure-pipelines.yml = ..\azure-pipelines.yml
3939
..\cgmanifest.json = ..\cgmanifest.json
40+
Directory.Build.props = Directory.Build.props
4041
..\README.md = ..\README.md
4142
..\doc\ReleaseNotes.md = ..\doc\ReleaseNotes.md
4243
..\doc\Settings.md = ..\doc\Settings.md

src/AppInstallerCLICore/AppInstallerCLICore.vcxproj

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -279,21 +279,6 @@
279279
<SubSystem Condition="'$(Configuration)|$(Platform)'=='ReleaseStatic|x64'">Windows</SubSystem>
280280
</Link>
281281
</ItemDefinitionGroup>
282-
<ItemDefinitionGroup Condition="'$(UseProdCLSIDs)' == 'true'">
283-
<ClCompile>
284-
<PreprocessorDefinitions>USE_PROD_CLSIDS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
285-
</ClCompile>
286-
</ItemDefinitionGroup>
287-
<ItemDefinitionGroup Condition="'$(WingetDisableTestHooks)'=='true'">
288-
<ClCompile>
289-
<PreprocessorDefinitions>AICLI_DISABLE_TEST_HOOKS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
290-
</ClCompile>
291-
</ItemDefinitionGroup>
292-
<ItemDefinitionGroup Condition="'$(WingetDisableExperimentalFeatures)'=='true'">
293-
<ClCompile>
294-
<PreprocessorDefinitions>WINGET_DISABLE_EXPERIMENTAL_FEATURES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
295-
</ClCompile>
296-
</ItemDefinitionGroup>
297282
<ItemGroup>
298283
<ClInclude Include="Argument.h" />
299284
<ClInclude Include="ChannelStreams.h" />

src/AppInstallerCLICore/PortableInstaller.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ namespace AppInstaller::CLI::Portable
281281
return true;
282282
}
283283

284-
void PortableInstaller::Install( Workflow::OperationType operation = Workflow::OperationType::Install)
284+
void PortableInstaller::Install(Workflow::OperationType operation)
285285
{
286286
// If the operation is an install, the ARP entry should be created first so that a catastrophic failure
287287
// leaves the system in a state where an uninstall may be possible
@@ -420,6 +420,19 @@ namespace AppInstaller::CLI::Portable
420420
HelpLink = manifest.CurrentLocalization.Get<Manifest::Localization::PublisherSupportUrl>();
421421
}
422422

423+
AppInstaller::Manifest::AppsAndFeaturesEntry PortableInstaller::GetAppsAndFeaturesEntry()
424+
{
425+
Manifest::AppsAndFeaturesEntry entry;
426+
427+
entry.DisplayName = DisplayName;
428+
entry.Publisher = Publisher;
429+
entry.DisplayVersion = DisplayVersion;
430+
entry.InstallerType = Manifest::InstallerTypeEnum::Portable;
431+
entry.ProductCode = GetProductCode();
432+
433+
return entry;
434+
}
435+
423436
void PortableInstaller::SetExpectedState()
424437
{
425438
const auto& indexPath = InstallLocation / GetPortableIndexFileName();

src/AppInstallerCLICore/PortableInstaller.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace AppInstaller::CLI::Portable
5959
m_desiredEntries = {};
6060
}
6161

62-
void Install( AppInstaller::CLI::Workflow::OperationType operation );
62+
void Install(AppInstaller::CLI::Workflow::OperationType operation = Workflow::OperationType::Install);
6363

6464
void Uninstall();
6565

@@ -91,6 +91,8 @@ namespace AppInstaller::CLI::Portable
9191
const Manifest::Manifest& manifest,
9292
const std::vector<AppInstaller::Manifest::AppsAndFeaturesEntry>& entries);
9393

94+
AppInstaller::Manifest::AppsAndFeaturesEntry GetAppsAndFeaturesEntry();
95+
9496
private:
9597
PortableARPEntry m_portableARPEntry;
9698
std::vector<AppInstaller::Portable::PortableFileEntry> m_desiredEntries;

src/AppInstallerCLICore/Workflows/PortableFlow.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ namespace AppInstaller::CLI::Workflow
167167
}
168168

169169
portableInstaller.TargetInstallLocation = targetInstallDirectory;
170-
portableInstaller.SetAppsAndFeaturesMetadata(context.Get<Execution::Data::Manifest>(), context.Get<Execution::Data::Installer>()->AppsAndFeaturesEntries);
170+
portableInstaller.SetAppsAndFeaturesMetadata(context.Get<Execution::Data::Manifest>(), installer.AppsAndFeaturesEntries);
171171
context.Add<Execution::Data::PortableInstaller>(std::move(portableInstaller));
172172
}
173173

@@ -273,7 +273,8 @@ namespace AppInstaller::CLI::Workflow
273273
}
274274
}
275275

276-
portableInstaller.Install(installType);
276+
portableInstaller.Install(installType);
277+
context.Add<Execution::Data::CorrelatedAppsAndFeaturesEntries>({ portableInstaller.GetAppsAndFeaturesEntry() });
277278
context.Add<Execution::Data::OperationReturnCode>(ERROR_SUCCESS);
278279
context.Reporter.Warn() << portableInstaller.GetOutputMessage();
279280
}

0 commit comments

Comments
 (0)