Not sure what you mean with the last comment.

Sadly, it won't be able to handle all cases, because if the driver is in
use, by say a printer, then it will fail.

Derek


On Mon, Mar 17, 2014 at 4:25 PM, Bryan McLellan <notifications@github.com>wrote:

> In providers/printer_driver.rb:
>
> > +    end
> > +    Chef::Log.info("#{ new_resource.name } installed.")
> > +    new_resource.updated_by_last_action(true)
> > +  end
> > +end
> > +
> > +action :remove do
> > +  if driver_exists?
> > +    windows_batch "Deleting print driver: #{ new_resource.name }" do
> > +      code "rundll32 printui.dll PrintUIEntry /dd /m \"#{ new_resource.name}\" /h \"#{new_resource.environment }\""
> > +    end
> > +    Chef::Log.info("#{ new_resource.name } uninstalled.")
> > +    new_resource.updated_by_last_action(true)
> > +  else
> > +    Chef::Log.info("#{ new_resource.name } doesn't exist - can't delete.")
> > +    new_resource.updated_by_last_action(false)
>
> Curious, I don't think you need to do this, but it won't hurt.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/opscode-cookbooks/windows/pull/61/files#r10679725>
> .
>