DrJones
Posts: 18
Joined: Wed Jun 28, 2006 10:00 pm

Driver install on Vista fails

I'm having similiar problems to this thread.

With Advanced Installer 4.9.2, DIFxApp 2.0.1 is being used. A simple project with just the driver installs fine on XP, but would reach the end then rollback on Vista. With some trial and error, it seemed like the problem was being caused with the "do not prompt the user to install this device" option. When that was checked (so it wouldn't prompt the user) there are errors when installing on Vista. When it isn't checked, the install goes through fine (regardless of if the USB device is connected or not).

Having it prompt the user is an acceptable workaround for this problem, however, there is one small problem. That is now at the end of installation, a dialog pops up with the name "Attach your device" and the text, "Please attach your device to this computer at any time after the installation has finished." It's only option is an "ok" button.

The problem now is, that the dialog pops up behind the installer (It does the same in both Vista and XP). Thus, many times the user won't notice that there is a dialog, since it's hidden, and the user will simply see the installation bar frozen, waiting for the OK button to be pressed. I looked around in the UI section and couldn't find this dialog anywhere. We also can't just have it not prompt, since then the install doesn't work on vista.

Is there a way we can fix this problem?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

DIFx is designed for installing Software First Install drivers. That dialog is not an Windows Installer dialog, it's part of DIFx.

You can generate a log file during installation and send it to support at advancedinstaller dot com so we can take a look.

To obtain the log file run the package with following command line:
msiexec /i package.msi /l*v package.log

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
DrJones
Posts: 18
Joined: Wed Jun 28, 2006 10:00 pm

Thanks for the response.

Looking into this a bit further, it seems like it's just a problem with DIFxApp 2.01 on Vista when that option is enabled. It sounds like using DIFxApp 2.1 will fix the problem.

According to http://msdn2.microsoft.com/en-us/library/ms790295.aspx 2.1 should be used for Vista. I know in the other thread I linked (From January) a 2.1 redistributable version of DIFxApp wasn't available. It seems like since then that has changed. That link says
The DIFxApp tool is located in the \redist\DIFx directory of the WDK.
Looking at my copy of the WDK (version 6000) the DIFxApp in that folder is version 2.1.

Is there a way I can make my project use this? I followed the instructions from the other thread but it didn't seem to make a difference. There was also no folder for DIFxAPP\English-US\x86 in the AI directory so I had to create it.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

We plan to introduce support for DIFxApp 2.1 in a future version of Advanced Installer. I'm afraid I cannot give you an ETA for now.

Until then to use DIFxApp version 2.1 copy the DIFxApp.dll and DIFxAppA.dll files (that come with version 2.1 of DIFxApp) into the "C:\Documents and Settings\All Users\Application Data\Caphyon\Advanced Installer\DIFxAPP\English-US\x86" folder.

Let me know how this works.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
belinea123
Posts: 2
Joined: Mon Aug 17, 2009 10:48 am

Re: Driver install on Vista fails

I have the same problem under Vista: The "Attach Your Device" dialog is hidden behind the installer window. Switching to DIFXApp ver 2.1 did not help.

Any solution?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Driver install on Vista fails

Hi,

Unfortunately this dialog is shown by DIFx, so it's not very related to the installer. You can try testing the package on other machines.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
belinea123
Posts: 2
Joined: Mon Aug 17, 2009 10:48 am

Re: Driver install on Vista fails

Ok, I found a cure: It is fixed in the DIFxAPP that is shipped with the current WDK for Windows 7.

Unfortunately the version numbers of the dlls weren't increased, it is still version 2.1.

Size of DIFxApp.dll 2.1 x86 multilingual old: 123.360 Bytes
Size of DIFxApp.dll 2.1 x86 multilingual new: 122.448 Bytes
Size of DIFxApp.wixlib 2.1 old: 2.868 Bytes
Size of DIFxApp.wixlib 2.1 new: 2.898 Bytes

Return to “Common Problems”