uninstallation

How does Windows find the installed location when uninstalling software

谁都会走 提交于 2020-07-30 04:06:29
问题 When I run an installer that allows a custom install location/path, the files will be correctly placed at the location that I select. When I run the same MSI and select remove (or uninstall from add/remove programs), how does it know the install location so the correct files are removed? I thought it would be stored at 'Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{GUID}', but when I look at that location for my installed software, the 'InstallLocation' key

Searching registry keys giving different outputs in .net core and .net framwork

做~自己de王妃 提交于 2020-07-10 09:37:19
问题 While searching for a particular registry key under Local machine SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall using C#, the >net framework application is giving different result than in .Net core App RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", false); Console.WriteLine(key.GetSubKeyNames().Length); foreach (String keyName in key.GetSubKeyNames()) { RegistryKey subkey = key.OpenSubKey(keyName); string displayName = subkey

PowerShell: How to find and uninstall a MS Office Update

匆匆过客 提交于 2020-07-05 10:37:06
问题 I've been hunting for a clean way to uninstall an MSOffice security update on a large number of workstations. I've found some awkward solutions, but nothing as clean or general like using PowerShell and get-wmiobject with Win32_QuickFixEngineering and the .Uninstall method on the resulting object. [Apparently, Win32_QuickFixEngineering only refers to Windows patches. See: http://social.technet.microsoft.com/Forums/en/winserverpowershell/thread/93cc0731-5a99-4698-b1d4-8476b3140aa3 ] Question 1

Remove all versions of LogMeIn software

狂风中的少年 提交于 2020-06-29 06:28:32
问题 I'm creating a VBScript to remove all found instances of LogMeIn Software. It seems to work installing but it is leaving the registry key. If I run the string manually from the cmd prompt it completely uninstalls, including removing the registry key. What do I need to do to not just execute the MSI uninstall but to also clean up the registry? Thank You On Error Resume Next Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set WshShell = CreateObject("Wscript.Shell") Set oReg=GetObject(