'Handling Program Specific Pop-ups after Registry Change

I set a script to add registry key "HKLM:\software\classes<program folder name>" -Force. I also added the license key and other info it asks at first sign in which all worked well. The problem is that I get a popup box saying "[program name] has updated the registry and must be restarted.". This only shows up once for each user the first time they try to run the application but was told it is still annoying.

How can I handle this pop-up? I was thinking if there is a way I can find out which registry entry is making this pop-up and delete it perhaps? or a way to automate the clicking "ok" and restart the program in PowerShell? IDK. The name of the program is called Respondus and below is the regkey script I used

#create Respondus regkey and values for all users at startup New-Item -Path "HKLM:\Software\Classes\Respondus" -Force New-ItemProperty -Path "HKLM:\Software\Classes\Respondus" -Name "language" -Value "0" -Force New-ItemProperty -Path "HKLM:\Software\Classes\Respondus" -Name "kz1" -Value "blah blah company" -Force New-ItemProperty -Path "HKLM:\Software\Classes\Respondus" -Name "kz2" -Value "[email protected]" -Force New-ItemProperty -Path "HKLM:\Software\Classes\Respondus" -Name "kz3" -Value "blahblahlicensekey" -Force New-ItemProperty -Path "HKLM:\Software\Classes\Respondus" -Name "proj" -Value "C:\Respondus Projects" -Force

Thank you for any insight



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source