Is it possible to use environment variable on configuration files? #5176
ariellourenco
started this conversation in
Configuration
Replies: 1 comment 2 replies
-
I've reached out to one of the developers for the DSC Resource. I'm not sure why using the alias for the path isn't working correctly. In DSC v3, we'll have support for parameters and variables in configuration files. We're working on the experimental support for DSC v3 in WinGet currently, but there are very few packages that support DSC v3 right now. Keep an eye out for the experimental support in the next preview release or two. I'll try to add links when it's available (assuming I remember 😊). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am trying to use WinGet configuration file to create a new Virtual Hard Disk to store my Dev Drive. However, I am struggling to follow the Microsoft recommendation for VHD Dev Drives which recommend use a per-user directory path location to store your Dev Drive to avoid any unintentional sharing.
So far, I got the configuration file below, which works just fine. However, I would like to update the
FilePath:
property to use the user profile environment variable.Any idea if that is possible? And if so, how to achieve it? So far, I have tried a few variants such as
%USERPROFILE%
and$env:UserProfile
Beta Was this translation helpful? Give feedback.
All reactions