st279
Posts: 19
Joined: Mon Jul 10, 2006 11:21 am

Problem installing driver on Vista

Hi

I am trying to install a driver on Vista and I am using version 4.6.3 of AI. The install is failing during the DIFXApp stage, the following is part of the log I got when trying to install:

DIFXAPP: InstallDriverPackages
DIFXAPP: 'CustomActionData' property 'DIFxApp Version' is 2.01.
DIFXAPP: 'CustomActionData' property 'UI Level' is 3.
DIFXAPP: 'CustomActionData' property 'componentId' is {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.
DIFXAPP: 'CustomActionData' property 'componentPath' is C:\Program Files\My Company Software\USBDriver\.
DIFXAPP: 'CustomActionData' property 'flags' is 0x1E.
DIFXAPP: 'CustomActionData' property 'installState' is 2.
DIFXAPP: 'CustomActionData' property 'ProductName' is My Company Software.
DIFXAPP: 'CustomActionData' property 'ManufacturerName' is My Company.
DIFXAPP: INFO: ENTER: DriverPackageInstallW
DIFXAPP: INFO: Running on Windows codenamed Longhorn.
DIFXAPP: INFO: Installing INF file "C:\Program Files\My Company Software\USBDriver\MyCompanyusb.inf" (Plug and Play).
DIFXAPP: INFO: Looking for Model Section ...
DIFXAPP: INFO: Installing devices with Id "USB\VID_17E9&PID_8042&REV_0004" using INF "C:\Program Files\My Company Software\USBDriver\MyCompanyusb.inf".
DIFXAPP: INFO: Installation did not occur because the hardware isn't currently present.
DIFXAPP: INFO: Installing devices with Id "USB\VID_XXXX&PID_XXXX&REV_XXXX" using INF "C:\Program Files\My Company Software\USBDriver\MyCompanyusb.inf".
DIFXAPP: INFO: Installation did not occur because the current driver on the device is the same or better.
DIFXAPP: INFO: No drivers installed. Drivers contained in 'C:\Program Files\My Company Core Software\USBDriver\MyCompanyusb.inf' are not better than current one's.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0x103)
DIFXAPP: The driver did not get installed on the device because the already existing driver is a better match
DIFXAPP: INFO: ENTER: DriverPackageGetPathW
DIFXAPP: ERROR: DriverPackageGetPath is not yet supported for PnP drivers on LH.
DIFXAPP: INFO: RETURN: DriverPackageGetPathW (0xA)
DIFXAPP: ERROR failed to obtain driver store handle for C:\Program Files\My Company Software\USBDriver\MyCompanyusb.inf
DIFXAPP: InstallDriverPackages failed with error 0x103
Action ended 13:46:03: InstallFinalize. Return value 3.
MSI (s) (4C:64) [13:46:03:318]: User policy value 'DisableRollback' is 0
MSI (s) (4C:64) [13:46:03:328]: Machine policy value 'DisableRollback' is 0
MSI (s) (4C:64) [13:46:03:328]: Executing op: Header(Signature=1397708873,Version=400,Timestamp=908750266,LangId=1033,Platform=0,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=1)
MSI (s) (4C:64) [13:46:03:328]: Executing op: DialogInfo(Type=0,Argument=1033)
MSI (s) (4C:64) [13:46:03:338]: Executing op: DialogInfo(Type=1,Argument=My Company Software)
MSI (s) (4C:64) [13:46:03:338]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back action:,,CleanupAction=RollbackCleanup,CleanupDescription=Removing backup files,CleanupTemplate=File: [1])
MSI (s) (4C:64) [13:46:03:338]: Executing op: ActionStart(Name=MsiInstallDrivers,,)
MSI (s) (4C:64) [13:46:03:338]: Executing op: ProductInfo(ProductKey={C66593D6-AF24-4E61-8124-9D2E353C8002},ProductName=My Company Software,PackageName=MyCompany.msi,Language=1033,Version=67179904,Assignment=1,ObsoleteArg=0,ProductIcon=controlPanelIcon.exe,,PackageCode={0B90A369-25C5-4AC0-933E-79F0A5D74C79},,,InstanceType=0,LUASetting=0,RemoteURTInstalls=0,ProductDeploymentFlags=3)
MSI (s) (4C:64) [13:46:03:348]: Executing op: ActionStart(Name=MsiRollbackInstall,,)
MSI (s) (4C:64) [13:46:03:358]: Executing op: CustomActionRollback(Action=MsiRollbackInstall,ActionType=3329,Source=BinaryData,Target=RollbackInstall,CustomActionData=2.013{55CAE759-57F1-4FC1-A419-FCA3BB776690}302MyCompany SoftwareMy Company.)
MSI (s) (4C:94) [13:46:03:398]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI5467.tmp, Entrypoint: RollbackInstall
DIFXAPP: RollbackInstall
DIFXAPP: 'CustomActionData' property 'DIFxApp Version' is 2.01.
DIFXAPP: 'CustomActionData' property 'componentId' is {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.
DIFXAPP: 'CustomActionData' property 'flags' is 0x1E.
DIFXAPP: 'CustomActionData' property 'installState' is 2.
DIFXAPP: 'CustomActionData' property 'ProductName' is My Company Software.
DIFXAPP: 'CustomActionData' property 'ManufacturerName' is My Company.
DIFXAPP: ERROR - Unable to retrieve the driver store handle corresponding to componentId '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
DIFXAPP: Rollback failed with error 0x2

Any idea how to fix this problem?

The DIFXApp version is listed as being 2.01. I believe that DIFXApp version 2.1 exists which has better support for Vista - should AI not be using that?

Also, if I uncheck the 'Do not prompt the user to connect the device to the computer' the install mysteriously succeeds but I still get some errors in the log:

DIFXAPP: InstallDriverPackages
DIFXAPP: 'CustomActionData' property 'DIFxApp Version' is 2.01.
DIFXAPP: 'CustomActionData' property 'UI Level' is 3.
DIFXAPP: 'CustomActionData' property 'componentId' is {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.
DIFXAPP: 'CustomActionData' property 'componentPath' is C:\Program Files\MyCompany Software\USBDriver\.
DIFXAPP: 'CustomActionData' property 'flags' is 0x1C.
DIFXAPP: 'CustomActionData' property 'installState' is 2.
DIFXAPP: 'CustomActionData' property 'ProductName' is MyCompany Software.
DIFXAPP: 'CustomActionData' property 'ManufacturerName' is MyCompany Corp..
DIFXAPP: INFO: ENTER: DriverPackageInstallW
DIFXAPP: INFO: Running on Windows codenamed Longhorn.
DIFXAPP: INFO: Installing INF file "C:\Program Files\MyCompany Software\USBDriver\MyCompanyusb.inf" (Plug and Play).
DIFXAPP: INFO: Looking for Model Section ...
DIFXAPP: INFO: Installing devices with Id "USB\VID_17E9&PID_8042&REV_0004" using INF "C:\Program

Files\MyCompanySoftware\USBDriver\MyCompanyusb.inf".
DIFXAPP: INFO: Installation did not occur because the hardware isn't currently present.
DIFXAPP: INFO: Installing devices with Id "USB\VID_17E9&PID_0030&REV_3202" using INF "C:\Program

Files\MyCompanySoftware\USBDriver\MyCompanyusb.inf".
DIFXAPP: INFO: Installation did not occur because the hardware isn't currently present.
DIFXAPP: INFO: No drivers installed. No devices found that match driver(s) contained in 'C:\Program

Files\MyCompanySoftware\USBDriver\MyCompanyusb.inf'.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0xE000020B)
DIFXAPP: The device(s) for which the driver is being installed has not been plugged into the computer.
DIFXAPP: INFO: ENTER: DriverPackageGetPathW
DIFXAPP: ERROR: DriverPackageGetPath is not yet supported for PnP drivers on LH.
DIFXAPP: INFO: RETURN: DriverPackageGetPathW (0xA)
DIFXAPP: ERROR failed to obtain driver store handle for C:\Program Files\MyCompany Software\USBDriver\MyCompanyusb.inf

I need to get this working (preferably wihout the prompt to plug in the device) as soon as possible...

Thanks

Sian
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

From the log in your post it seams that you trying to install a driver that is already installed or a new version is already present:
DIFXAPP: INFO: Installing devices with Id "USB\VID_XXXX&PID_XXXX&REV_XXXX" using INF "C:\Program Files\My Company Software\USBDriver\MyCompanyusb.inf".
DIFXAPP: INFO: Installation did not occur because the current driver on the device is the same or better.
DIFXAPP: INFO: No drivers installed. Drivers contained in 'C:\Program Files\My Company Core Software\USBDriver\MyCompanyusb.inf' are not better than current one's.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0x103)
DIFXAPP: The driver did not get installed on the device because the already existing driver is a better match
Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
st279
Posts: 19
Joined: Mon Jul 10, 2006 11:21 am

Hi, thanks for the response.

I have made sure I am installing on a clean machine with no other version of our driver software there and I still get problems. I have tested installing with the device unplugged and with the device plugged in and I get different outcomes.

Here is the log for an install carried out with the device unplugged - the install fails:

DIFXAPP: InstallDriverPackages
DIFXAPP: 'CustomActionData' property 'DIFxApp Version' is 2.01.
DIFXAPP: 'CustomActionData' property 'UI Level' is 3.
DIFXAPP: 'CustomActionData' property 'componentId' is {XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXX}.
DIFXAPP: 'CustomActionData' property 'componentPath' is C:\Program Files\DisplayLink Core Software\USBDriver\.
DIFXAPP: 'CustomActionData' property 'flags' is 0x1E.
DIFXAPP: 'CustomActionData' property 'installState' is 2.
DIFXAPP: 'CustomActionData' property 'ProductName' is MyCompany Software.
DIFXAPP: 'CustomActionData' property 'ManufacturerName' is MyCompany.
DIFXAPP: INFO: ENTER: DriverPackageInstallW
DIFXAPP: INFO: Running on Windows codenamed Longhorn.
DIFXAPP: INFO: Installing INF file "C:\Program Files\MyCompanySoftware\USBDriver\MyCompanyusb.inf" (Plug and Play).
DIFXAPP: INFO: Looking for Model Section ...
DIFXAPP: INFO: No matching devices found in INF "C:\Program Files\MyCompany Software\USBDriver\MyCompanyusb.inf" on the Machine.
DIFXAPP: INFO: No drivers installed. No devices found that match driver(s) contained in 'C:\Program Files\MyCompanySoftware\USBDriver\MyCompanyusb.inf'.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0xE000020B)
DIFXAPP: The device(s) for which the driver is being installed has not been plugged into the computer.
DIFXAPP: INFO: ENTER: DriverPackageGetPathW
DIFXAPP: ERROR: DriverPackageGetPath is not yet supported for PnP drivers on LH.
DIFXAPP: INFO: RETURN: DriverPackageGetPathW (0xA)
DIFXAPP: ERROR failed to obtain driver store handle for C:\Program Files\MyCompanySoftware\USBDriver\MyCompanyusb.inf
DIFXAPP: InstallDriverPackages failed with error 0xE000020B

Here is the log for when the device is plugged in - install succeeds:


DIFXAPP: InstallDriverPackages
DIFXAPP: 'CustomActionData' property 'DIFxApp Version' is 2.01.
DIFXAPP: 'CustomActionData' property 'UI Level' is 3.
DIFXAPP: 'CustomActionData' property 'componentId' is {XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXX}.
DIFXAPP: 'CustomActionData' property 'componentPath' is C:\Program Files\MyCompany Software\USBDriver\.
DIFXAPP: 'CustomActionData' property 'flags' is 0x1E.
DIFXAPP: 'CustomActionData' property 'installState' is 2.
DIFXAPP: 'CustomActionData' property 'ProductName' is MyCompanySoftware.
DIFXAPP: 'CustomActionData' property 'ManufacturerName' is MyCompany.
DIFXAPP: INFO: ENTER: DriverPackageInstallW
DIFXAPP: INFO: Running on Windows codenamed Longhorn.
DIFXAPP: INFO: Installing INF file "C:\Program Files\MyCompanySoftware\USBDriver\MyCompanyusb.inf" (Plug and Play).
DIFXAPP: INFO: Looking for Model Section ...
DIFXAPP: INFO: Installing devices with Id "USB\VID_17E9&PID_0030&REV_3202" using INF "C:\Program Files\MyCompany Software\USBDriver\MyCompanyusb.inf".
DIFXAPP: INFO: ENTER UpdateDriverForPlugAndPlayDevices...
DIFXAPP: SUCCESS:RETURN UpdateDriverForPlugAndPlayDevices.
DIFXAPP: INFO: Installation was successful.
DIFXAPP: SUCCESS:Install completed
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0x0)
DIFXAPP: INFO: ENTER: DriverPackageGetPathW
DIFXAPP: ERROR: DriverPackageGetPath is not yet supported for PnP drivers on LH.
DIFXAPP: INFO: RETURN: DriverPackageGetPathW (0xA)
DIFXAPP: ERROR failed to obtain driver store handle for C:\Program Files\MyCompany Software\USBDriver\MyCompanyusb.inf


Surely on vista I can install software-first without the device being plugged in?

Any further thoughts?
Sian
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The behavior you encounter is normal. You need to have the device plugged since your driver requires it in order to be installed.
Surely on vista I can install software-first without the device being plugged in?
DIFx is designed for installing Software First Install drivers. These are the drivers that come with your application, e.g. an antivirus filter for the network adapter. It is not recommended to use it for installing Hardware First Install type of drivers, e.g. a driver for your sound card.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
st279
Posts: 19
Joined: Mon Jul 10, 2006 11:21 am

Hi Gigi

We have been using the same method we are using now to install our usb driver package (that has an associated software package built with AI) both hardware first and software first on Windows XP and Windows 2k. We are using the microsoft suggested method of installing a driver with associated software by using a coinstaller to install hardware first. We encountered no problems before with having our device plugged in or not when installing.

From the log files I get it looks like AI is using DIFxApp version 2.01. There is a more recent version of DIFxApp (2.1 - distributed with the latest WDK) that is supposed to have more support for vista - are there any plans for AI to use this new version or is there any way for me to manualling use this version when I build my installer with AI?

I have found some posts on other forums from people encountering similar problems to me and they have been told to upgrade to DIFxApp 2.1 if they are installing on vista.

Thanks

Sian
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
are there any plans for AI to use this new version or is there any way for me to manualling use this version when I build my installer with AI?
We add this on our TODO list and will be available in a future version of AI. Thank you for you suggestion.

Until then to use DIFxApp version 2.1 copy the DIFxApp.dll and DIFxAppA.dll files (that come with version 2.1 of DIFxApp) to DIFxAPP\English-US\x86 folder from Advanced Installer working dir.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
st279
Posts: 19
Joined: Mon Jul 10, 2006 11:21 am

Hi Gigi

I've been doing some experimeting. I did as you suggested and copied the DIFxApp version 2.1 copy the DIFxApp.dll and DIFxAppA.dll files to DIFxAPP\English-US\x86 but the build of my msi was still using version 2.01 of DIFxApp - I'm not sure why this is.

However, instead I decided to try and include the version 2.1 DIFXAPP.msm manually to install my usb driver so I included the merge module and associated it with my usb driver package (like we used to do before AI provided built in DIFxAPP support). This installed my usb driver very happily software first and hardware first on Vista producing the following logging:

DIFXAPP: ENTER: InstallDriverPackages()
DIFXAPP: 'CustomActionData' property 'DIFxApp Version' is 2.1.
DIFXAPP: 'CustomActionData' property 'UI Level' is 2.
DIFXAPP: 'CustomActionData' property 'componentId' is {XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.
DIFXAPP: 'CustomActionData' property 'componentPath' is C:\Program Files\Company Software\USBDriver\.
DIFXAPP: 'CustomActionData' property 'flags' is 0x1E.
DIFXAPP: 'CustomActionData' property 'installState' is 2.
DIFXAPP: 'CustomActionData' property 'ProductName' is Company Software.
DIFXAPP: 'CustomActionData' property 'ManufacturerName' is Company Corp..
DIFXAPP: INFO: opening HKEY_USERS 'S-1-5-18\Software\Microsoft\Windows\CurrentVersion\DIFxApp\Components\{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}' (User's SID:

'S-1-5-18') ...
DIFXAPP: INFO: ENTER: DriverPackageInstallW
DIFXAPP: WARNING:DRIVER_PACKAGE_LEGACY_MODE flag set but not supported on Plug and Play driver on VISTA. Flag will be ignored.
DIFXAPP: INFO: Installing INF file 'C:\Program Files\Company Software\USBDriver\Companyusb.inf' (Plug and Play).
DIFXAPP: INFO: Looking for Model Section ...
DIFXAPP: INFO: Installing devices with Id "USB\VID_XXXX&PID_XXXX&REV_XXXX" using INF

"C:\Windows\System32\DriverStore\FileRepository\companyusb.inf_94f5b448\companyusb.inf".
DIFXAPP: INFO: Installation did not occur because the current driver on the device is the same or better.
DIFXAPP: INFO: No drivers installed. Drivers contained in 'C:\Windows\System32\DriverStore\FileRepository\companyusb.inf_94f5b448\companyusb.inf' are not

better than current one's.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0x103)
DIFXAPP: The driver did not get installed on the device because the already existing driver is a better match
DIFXAPP: INFO: ENTER: DriverPackageGetPathW
DIFXAPP: INFO: RETURN: DriverPackageGetPathW (0x7A)
DIFXAPP: INFO: ENTER: DriverPackageGetPathW
DIFXAPP: INFO: RETURN: DriverPackageGetPathW (0x0)
DIFXAPP: A reboot is not needed to install the component '{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'.
MSI (s) (94:50) [10:03:48:314]: Executing op: ActionStart(Name=WriteRegistryValues,Description=Writing system registry values,Template=Key: [1], Name: [2],

Value: [3])
DIFXAPP: RETURN: InstallDriverPackages() 0 (0x0)

The only problem I now have is that the DIFXAPP merge module does not support the languages our package need to support so this is not a full solution to our problem.

When will you have version 2.1 of DIFxAPP integrated into AI as this will solve many of our current problems on vista?

Thanks for your continued help

Sian
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Sian,

You need to uninstall the old version (2.01) of DIFxApp before copying those files to AI working folder.

Regarding the merge module note that there are two merge modules and perhaps you use the one without localization.
When will you have version 2.1 of DIFxAPP integrated into AI as this will solve many of our current problems on vista?
For now DIFxAPP 2.1 is not redistributable. Advanced Installer will use the 2.1 version of DIFxApp when it will become redistributable.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”