Replies: 1 comment 3 replies
-
Have you tried
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I allow setting a MSI's Public Properties i.e. [PROPERTY=PropertyValue] whilst installing via winget?
with choco I can do something like:
...
$pp = Get-PackageParameters
if (!$pp['REGISTRATIONTOKEN']) {
$pp['REGISTRATIONTOKEN'] = "!INVALID KEY"
Write-Warning "Package needs parameter 'REGISTRATIONTOKEN' to install, that must be provided in params or in prompt."
}
...
silentArgs = "/quiet /qn /norestart REGISTRATIONTOKEN=
"$($pp['REGISTRATIONTOKEN'])
""and end user can provide via switches during install
choco install wvd-agent -s . -y --params="'/REGISTRATIONTOKEN:[Registration key for WVD Host Pool]'"
Many Thanks!
Beta Was this translation helpful? Give feedback.
All reactions