Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no way to execute a PowerShell script from the Winget configuration file with the Dev Home #1406

Open
MirolimMajidov opened this issue Aug 15, 2023 · 2 comments
Labels
Area-Machine-Config Related to the machine configuration feature Area-Machine-Config-DSC Related to WinGet DSC configuration in machine config flow Issue-Feature New feature or request

Comments

@MirolimMajidov
Copy link

MirolimMajidov commented Aug 15, 2023

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_x64__8wekyb3d8bbwe
Microsoft.Windows.DevHomeGitHubExtension_0.300.198.0_x64__8wekyb3d8bbwe

@MirolimMajidov MirolimMajidov added the Issue-Bug Something isn't working or needs investigation label Aug 15, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage New issue that the core contributors need to triage label Aug 15, 2023
@krschau krschau added the Area-Machine-Config Related to the machine configuration feature label Aug 15, 2023
@AmelBawa-msft AmelBawa-msft added the Area-Machine-Config-DSC Related to WinGet DSC configuration in machine config flow label Aug 18, 2023
@AmelBawa-msft
Copy link
Contributor

Related: microsoft/winget-cli#3522

@denelon
Copy link
Contributor

denelon commented Sep 18, 2023

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.

@denelon denelon removed the Needs-Triage New issue that the core contributors need to triage label Sep 18, 2023
@kanismohammed kanismohammed added Issue-Feature New feature or request and removed Issue-Bug Something isn't working or needs investigation labels Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Machine-Config Related to the machine configuration feature Area-Machine-Config-DSC Related to WinGet DSC configuration in machine config flow Issue-Feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants