-
Notifications
You must be signed in to change notification settings - Fork 70
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
Set Chrome as default browser #1164
Conversation
2d139e7
to
5d86ed7
Compare
|
||
[Parameter(Mandatory=$true)] | ||
[ValidateNotNullOrEmpty()] | ||
[string] $data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change breaks the call to this function in VM-Apply-Configurations
used to parse our config:
VM-Update-Registry-Value -name $name -path $path -value $value -type $type -data $data
. I think it may possible to remove name
from this function as it is a description in the config, but we do use data
and removing it, breaks the installer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I missed that one. I was looking at packages that used the function and didn't see it used, so I assumed it was just a mistake. :)
Just seems odd to me to use $value
for -Name
in Set-ItemProperty
and not $name
, and then use $data
/ $validatedData
for -Value
instead of using $value
.
I would think that changing the naming convention to what Set-ItemProperty
expects (to mean, also updating the places that use this function) might be a better route to take, but we can address that in another PR. :)
f1794fb
to
dbb7027
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emtuls I think this PR is not failing in the CI because of the exit code as you told me, but because you are using VM-Update-Registry-Value
:
cmdlet VM-Update-Registry-Value at command pipeline position 1
data
Confirmation (`-y`) is set.
Respond within 30 seconds or the default selection will be chosen.
ERROR: Cannot process command because of one or more missing mandatory parameters: data.
Please change it by Set-ItemProperty
as I suggested in my previous comment.
dbb7027
to
174381f
Compare
Ah, I thought I made that change... I overlooked that. Thank you! |
Waiting for a fix for #1188 to be able to test this PR. 😇 |
174381f
to
9965a42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes #822
It also fixes an issue in the function
VM-Update-Registry-Value
incommon.vm
where a parameter was not being used and other parameter names were not used correctly.