Repository navigation
Is it possible to set MSI's Public Properties at install time? #6589
Unanswered
GarethE (keyoke)
asked this question in
Q&A
Replies: 1 comment 3 replies
|
Have you tried
|
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
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!
All reactions