DifxApp driver uninstall

Hi all,
my wix/difx based driver installation part of my installation package
does not get uninstalled and according to
http://msdn.microsoft.com/en-us/library/ff549843(v=vs.85).aspx
the uninstall flags difx:Driver DeleteFiles=“yes” are ignored now
under Windows 7.
Whats the proposed way of uninstalling the driver package then?

(The issue is that under some circumstances only the driver package
does not get updated after the remove/install procedure of my wix
based installation package.)

Thanks,
Hagen.

Of late I have become very fond of custom actions to ‘accommodate’ (eg.
whack into submission with a big hammer) the proclivities of DIFxAPP.

So there are three places where you files end up:

  1. Wherever the MSI component says you put them. MSI should remove these.
  2. In the Driver Store. DIFxAPP ought to remove these.
  3. In the system where they ‘run’ from (%systemroot%\system32\drivers ?).

As I understand it the DeleteFiles=yes thingy was supposed to go find all
the CopyFiles directives in your INF and ‘undo’ them by deleting the
destination files. So it would only address (3).

If your MSI custom action logic can ascertain that all your devices are
gone, the package is not in use, and that services are stopped and removed
(or at least marked for delete) then just delete the files from a CA.

Are you trying to ‘downgrade’ to an earlier version? Have you investigated
the effect of ForceInstall=yes on this scenario?

I use the following which seems to do the trick most of the time:

<difx:driver sequence=“0” addremoveprograms=“no” deletefiles=“yes”>ForceInstall=“yes” PlugAndPlayPrompt=“no” Legacy=“yes”/>

Good Luck,
Dave Cattley

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of hagen
Sent: Friday, July 15, 2011 4:25 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] DifxApp driver uninstall

Hi all,
my wix/difx based driver installation part of my installation package
does not get uninstalled and according to
http://msdn.microsoft.com/en-us/library/ff549843(v=vs.85).aspx
the uninstall flags difx:Driver DeleteFiles=“yes” are ignored now
under Windows 7.
Whats the proposed way of uninstalling the driver package then?

(The issue is that under some circumstances only the driver package
does not get updated after the remove/install procedure of my wix
based installation package.)

Thanks,
Hagen.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</difx:driver>

hagen wrote:

my wix/difx based driver installation part of my installation package
does not get uninstalled and according to
http://msdn.microsoft.com/en-us/library/ff549843(v=vs.85).aspx
the uninstall flags difx:Driver DeleteFiles=“yes” are ignored now
under Windows 7.
Whats the proposed way of uninstalling the driver package then?

Your driver package IS getting uninstalled. It’s just leaving files
behind. That is now the Microsoft philosophy.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

I’m having a problem also, and I’m using Wix 3.5 using difx:Driver. The install seems to go correctly, but when I un-install, it wants to ‘revert’ to prior driver (of which there isn’t any because this is first install). Also at the time, the de-install bui hangs (may be issues with install script)

Any suggestions?

Bernie