Open MirolimMajidov opened 1 year ago
Copying my response on the linked issue here:
There is a DSC Script Resource. The primary thing to be cautious of is to make sure your script is idempotent so it can be run multiple times without causing a failure or other unintended side effects.
Dev Home version
0.301.198.0
Windows build number
10.0.22621.2134
Other software
OS Build Version: 10.0.22621.2134.amd64fre.ni_release.220506-1250 .NET Version: .NET 6.0.18
Steps to reproduce the bug
I'm using the WinGet configuration for installing some necessary applications with components by creating a YAML file and using that from the Dev Home. I did all of them except the SQL Server features. I'm able to install the SQL server, but I could not enable (Install) the "Full-text search" and "FileStream" features of the SQL Server.
And also I am planning to do a lot of custom logic to customize and configurate a necessary applications. I hope this should be possible with a PowerShell script, but I did find anything to being able to execute a PowerShell script from the winget configuration file.
Expected result
There is should be way to being able to execute a PowerShell script from the winget configuration file and use that from the DevHome
Actual result
There is no way to do that
Included System Information
Physical Memory: 31.78GB (12.67GB free) Processor Architecture: x64
Included Extensions Information
Extensions: Microsoft.Windows.DevHome_0.301.198.0_x648wekyb3d8bbwe Microsoft.Windows.DevHomeGitHubExtension_0.300.198.0_x648wekyb3d8bbwe