jmlacoste
asked on
C# uninstall a program on Windows 7
Hello,
I would like to find a way to uninstall a software by looking up the registry and find the msi file to launch with the uninstall commandline switch.
Basically, I can't find an elegant way to look into the appropriate registry path to find this info.
I know the place in the registry is different on my Windows 7 64-bits that what I've found on the Internet so far.
Is there a way compatible with all the versions of Windows?
I would do the lookup based on the msi name.
Thanks for your help
I would like to find a way to uninstall a software by looking up the registry and find the msi file to launch with the uninstall commandline switch.
Basically, I can't find an elegant way to look into the appropriate registry path to find this info.
I know the place in the registry is different on my Windows 7 64-bits that what I've found on the Internet so far.
Is there a way compatible with all the versions of Windows?
I would do the lookup based on the msi name.
Thanks for your help
ASKER
Hi AndyAinscow
Yes I would like to do it programmatically from looking up an MSI name in the registry.
The software is available in the de-installation screen in control panel.
I was just saying that the registry path that I've found on the Internet to check what software is installed is different on my version of windows: I can find my software in HKLM\Software\Wow6432Node but the various solutions online are talking about something more like this: HKEY_LOCAL_MACHINE\SOFTWAR E\Microsof t\Windows\ CurrentVer sion\Unins tall
Hence I'm looking for a way to programmatically uninstall a specific MSI on all Windows versions (XP, Vista, 2003...)
Thanks again ;)
Yes I would like to do it programmatically from looking up an MSI name in the registry.
The software is available in the de-installation screen in control panel.
I was just saying that the registry path that I've found on the Internet to check what software is installed is different on my version of windows: I can find my software in HKLM\Software\Wow6432Node but the various solutions online are talking about something more like this: HKEY_LOCAL_MACHINE\SOFTWAR
Hence I'm looking for a way to programmatically uninstall a specific MSI on all Windows versions (XP, Vista, 2003...)
Thanks again ;)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I didn't have the chance to actully implement this solution but it looks like the right direction to look into.
Thanks
Thanks
Are you saying it doesn't ?
Or do you want to do it programatically ?