I've been trying to figure out the following question on the net, but cound't find an answer.
I'm doing custom application installations using Powershell (nothing new here).
Now, I have the following requirement: I would like to add a Comment and a Contact in the Add / Remove Programs, that indicates by which process the application has been installed.
Any ideas?
I eventually stumbled on a PS command to do this, thx to ConnorLSW's answer:
Set-RegistryKey -key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + $RegKey -Name "$MyKey" -Value "$MyValue" -Type String
where
$RegKey
is some (king of UUID) string that identifies your installed application$MyKey
is the field you need to update (in my case, DisplayName
, Contact
or Comments
)$MyValue
is the actual value you want to display in that fieldNow it's time for a little caution disclaimer:
My understanding is that this command can be further generalized to update any registration keys on your machine. Please be very cautious when using it.