Skip to content

Commit 85aa251

Browse files
committed
message
1 parent 0af0e3a commit 85aa251

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

src/AppInstallerCLICore/Resources.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ namespace AppInstaller::CLI::Resource
9898
WINGET_DEFINE_RESOURCE_STRINGID(ConfigurationInDesiredState);
9999
WINGET_DEFINE_RESOURCE_STRINGID(ConfigurationInform);
100100
WINGET_DEFINE_RESOURCE_STRINGID(ConfigurationInitializing);
101+
WINGET_DEFINE_RESOURCE_STRINGID(ConfigurationInstallDscPackage);
101102
WINGET_DEFINE_RESOURCE_STRINGID(ConfigurationLocal);
102103
WINGET_DEFINE_RESOURCE_STRINGID(ConfigurationModuleNameOnly);
103104
WINGET_DEFINE_RESOURCE_STRINGID(ConfigurationModulePath);

src/AppInstallerCLICore/Workflows/ConfigurationFlow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ namespace AppInstaller::CLI::Workflow
195195
if (foundExecutablePath.empty())
196196
{
197197
AICLI_LOG(Config, Info, << "dsc.exe not found and not provided. Installing dsc package from store.");
198+
context.Reporter.Info() << Resource::String::ConfigurationInstallDscPackage;
198199

199200
auto installDscContextPtr = context.CreateSubContext();
200201
Execution::Context& installDscContext = *installDscContextPtr;
@@ -216,7 +217,7 @@ namespace AppInstaller::CLI::Workflow
216217

217218
if (installDscContext.IsTerminated())
218219
{
219-
AICLI_LOG(Config, Error, << "Could not find dsc.exe, it must be provided by the user.");
220+
AICLI_LOG(Config, Error, << "Failed to install dsc v3 package and could not find dsc.exe, it must be provided by the user.");
220221
THROW_WIN32(ERROR_FILE_NOT_FOUND);
221222
}
222223
}

src/PowerShell/Microsoft.WinGet.Configuration.Engine/Resources/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/PowerShell/Microsoft.WinGet.Configuration.Engine/Resources/Resources.resx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<root>
33
<!--
44
Microsoft ResX Schema
@@ -318,4 +318,7 @@
318318
<data name="ConfigurationReadingConfigHistory" xml:space="preserve">
319319
<value>Reading configuration history</value>
320320
</data>
321-
</root>
321+
<data name="ConfigurationInstallDscPackage" xml:space="preserve">
322+
<value>Desired State Configuration package not found on the system. Installing the package...</value>
323+
</data>
324+
</root>

0 commit comments

Comments
 (0)