-
Notifications
You must be signed in to change notification settings - Fork 29
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
Store installed dsc
breaks executables
#559
Comments
So AppStore installed apps don't allow the user to access files that are in the App's home directory, however, $yaml = @'
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
resources:
- name: windows product name
type: Microsoft.Windows/Registry
properties:
keyPath: HKLM\Software\Microsoft\Windows NT\CurrentVersion
valueName: ProductName
'@
dsc config get -d $yaml However, this does open up a bigger issue where apps installed from the AppStore that contains DSC resources |
dsc
breaks executables
I could have mentioned the fact that The ability to fetch schema information from command-based resources that haven't it embedded in the It isn't really related to this issue, but the package in the store doesn't have a version number. I can imagine that it is already on the list or in an issue. If that's the case, please ignore the remark. Having such information available, helps in scenarios to install/upgrade |
@Gijsreyn you can always get the version of the Store one using |
@SteveL-MSFT Yes I've got that now scripted, but I don't always want to rely on calling |
Prerequisites
Summary
When you install
DesiredStateConfiguration-Preview
using WinGet, the executables that are packaged e.g.registry.exe
, cannot be called anymore.The error message:
I'm not aware of the process behind WinGet, but it looks like the executables should also be registered in the USERPROFILE.
It also became harder to discover the original resources:
The other side-effect will be for bootsrapping scenario's - Pester tests will fail if called directly.
Steps to reproduce
Install
dsc.exe
from WinGet and try calling registry.exe.Expected behavior
Able to call `registry.exe` outside `dsc.exe`
Actual behavior
Unable to call `registry.exe` outside `dsc.exe`
Error details
No response
Environment data
Version
dsc 3.0.0-preview.10
Visuals
No response
The text was updated successfully, but these errors were encountered: