powershellinstallationaddremoveprograms

Powershell custom install shows in Add / Remove Programs


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?


Solution

  • 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

    Now 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.