Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > uninstall drivers
 

uninstall drivers

My install loadsa pc application plus aUSB driver installer which is launched by ascript as a commint custom action.When my program is uninstalled itdoes not run the USB driver uninstaller. Looking at the add remove programs I know the name of the USB driveruninstall. Can I search the registry for the DisplayName and find the associated UninstallString and run it or do I need to write another spript?
BarberColman  Friday, September 18, 2009 12:20 PM

Hi BarberColman,

You said: When my program is uninstalled itdoes not run the USB driver uninstaller.
This is because you install the driver in the custom action.

You also said: Can I search the registry for the DisplayName and find the associated UninstallString and run it or do I need to write another spript?
Yes, you can. Please take this thread as a reference:
http://bytes.com/topic/c-sharp/answers/239542-programmatically-uninstall-program
You can also call Unload.exe to uninstall it. Please follow this thread:
http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/9dc06b94-7dbb-4cd3-9237-8dd7f9a86b8a

Let me know if this helps or not.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
  • Marked As Answer byBarberColman Wednesday, September 23, 2009 3:15 PM
  •  
Aland Li  Monday, September 21, 2009 9:25 AM

Hi BarberColman,

You said: When my program is uninstalled itdoes not run the USB driver uninstaller.
This is because you install the driver in the custom action.

You also said: Can I search the registry for the DisplayName and find the associated UninstallString and run it or do I need to write another spript?
Yes, you can. Please take this thread as a reference:
http://bytes.com/topic/c-sharp/answers/239542-programmatically-uninstall-program
You can also call Unload.exe to uninstall it. Please follow this thread:
http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/9dc06b94-7dbb-4cd3-9237-8dd7f9a86b8a

Let me know if this helps or not.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
  • Marked As Answer byBarberColman Wednesday, September 23, 2009 3:15 PM
  •  
Aland Li  Monday, September 21, 2009 9:25 AM

You can use google to search for other answers

Custom Search

More Threads

• Shortcuts doesn't get right icons
• Publish ClickOnce VSTO Add-Ins: How to deploy language packs?
• Unable to write to a file on the installation
• How to communicate with .NET 3.5 SP1 bootstrapper
• Embedding an image
• Craate a Patch File for my .NET Project using VS2005 Setup
• bootstrapper manifest - MSI is always launched silently
• How to add a icon to menuitem in vc2008 sp1
• Publish to Remote Website using ClickOnce
• Install app as admin for ALLUSERS on a single machine, requires .msi be present 1st time nonm-admin users run app.