Installing USB modem drivers during installation - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bmt22033
Posts: 21
Joined: Tue Jun 26, 2012 2:14 pm

Installing USB modem drivers during installation

My application needs to deploy drivers for a USB modem. The manufacturer provides an executable file for x86 and x64 that will perform the driver install. My application installs files in the following directory structure:

\myapp.exe
\modem drivers
\modem drivers\32bit
\modem drivers\32bit\InstallDrv32.exe
\modem drivers\32bit\driver.cat
\modem drivers\32bit\driver.inf
\modem drivers\32bit\i386\driver.sys
\modem drivers\64bit
\modem drivers\64bit\InstallDrv64.exe
\modem drivers\64bit\driver.cat
\modem drivers\64bit\driver.inf
\modem drivers\64bit\amd64\driver.sys

I'm currently using two customs action with conditions (one for x86 and one for x64) to call the appropriate driver installer .exe right after the Finish Execution stage of my installer. While the correct .exe is being called, the driver installer is not working properly. If I remove the custom actions and then run the appropriate .exe manually after my installer has finished, it works perfectly so I know that the driver installer .exe files are ok. Re: my custom actions, I was originally using "Launch file or open URL". But in looking through the setupapi.dll.log in \Windows\inf, I see the following:

>>> [SetupCopyOEMInf - C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf]
>>> Section start 2012/10/16 16:09:07.471
cmd: "C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\InstallDrv64.exe"
sto: {Import Driver Package: C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf} 16:09:07.533
sto: Importing driver package into Driver Store:
sto: Driver Store = C:\Windows\System32\DriverStore (Online | 6.1.7601)
sto: Driver Package = C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf
sto: Architecture = amd64
sto: Locale Name = neutral
sto: Flags = 0x00000000
sto: Copying driver package files to 'C:\Users\bmt22033\AppData\Local\Temp\{3abdef05-ae30-7b6e-e2eb-245c4f0af37f}'.
inf: Opened INF: 'C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf' ([strings])
!!! sto: Driver package references a missing external file 'C:\Windows\system32\drivers\u302wh.sys'. Error = 0x00000002
!!! sto: Failed to retrieve driver package copy files. Error = 0x00000002
!!! sto: Failed to get list of driver package files. Error = 0x00000002, Filename = C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf
sto: {Import Driver Package: exit(0x00000002)} 16:09:07.564
inf: Opened INF: 'C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf' ([strings])
! inf: Add to Driver Store unsuccessful
! inf: Error 2: The system cannot find the file specified.
!!! inf: returning failure to SetupCopyOEMInf

Seeing the references to missing files made me think that maybe I should be using "Launch EXE with working directory" custom actions because perhaps the lack of a correct working directory is causing the problem. Sadly, that hasn't helped, either. For what it's worth, my custom action for x64 specifies a working dir of APPDIR\modem drivers\64bit and a full path to my driver installer as "[#InstallDrv64.exe]". Is there something obvious that I'm missing with these custom actions?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing USB modem drivers during installation

Hello and welcome to Advanced Installer,

I'm not sure why you are encountering this behavior. It seems that your driver package try to access a file which doesn't exist at the related location. However, can you schedule your custom action after "Install Execution Stage" -> "Add Resources" action group and run it as "Deferred with no impersonation" and see if the behavior still persist?

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bmt22033
Posts: 21
Joined: Tue Jun 26, 2012 2:14 pm

Re: Installing USB modem drivers during installation

Daniel.Radu wrote:Hello and welcome to Advanced Installer,

I'm not sure why you are encountering this behavior. It seems that your driver package try to access a file which doesn't exist at the related location. However, can you schedule your custom action after "Install Execution Stage" -> "Add Resources" action group and run it as "Deferred with no impersonation" and see if the behavior still persist?

Let us know if this helped.

All the best,
Daniel
Hi Daniel,

Thanks for the suggestion. I just tried it but unfortunately, it didn't make any difference. Here's a snippet of my setupapi.dll.log file when I run the driver installer .exe manually (in this case, the x64 version which is InstallDrv64.exe).

>>> [SetupCopyOEMInf - C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf]
>>> Section start 2012/10/16 14:24:34.101
cmd: "C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\InstallDrv64.exe"
sto: {Import Driver Package: C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf} 14:24:34.132
sto: Importing driver package into Driver Store:
sto: Driver Store = C:\Windows\System32\DriverStore (Online | 6.1.7601)
sto: Driver Package = C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf
sto: Architecture = amd64
sto: Locale Name = neutral
sto: Flags = 0x00000000
sto: Copying driver package files to 'C:\Users\bmt22033\AppData\Local\Temp\{6a503413-f989-79cd-94d6-af280f1e4214}'.
inf: Opened INF: 'C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf' ([strings])
inf: Opened INF: 'C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf' ([strings])
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000000
flq: SourceRootPath - 'C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\amd64'
flq: SourceFilename - 'u302bus.sys'
flq: TargetDirectory- 'C:\Users\bmt22033\AppData\Local\Temp\{6a503413-f989-79cd-94d6-af280f1e4214}\amd64'
flq: SourceDesc - 'u302bus.sys'
flq: SourceTagfile - 'u302bus.sys'
flq: {FILE_QUEUE_COPY exit(0x00000000)}
...

The difference between running the .exe manually and calling it from Advanced Installer seems to begin just after this line:

inf: Opened INF: 'C:\Program Files (x86)\MyCompany\MyApp\modem drivers\64bit\u302bus.inf' ([strings])

For some reason, when the .exe is being called from Advanced Installer, it causes this output:

!!! sto: Driver package references a missing external file 'C:\Windows\system32\drivers\u302wh.sys'. Error = 0x00000002

Any other thoughts on what I'm doing wrong? I'm not sure if it helps or not but here are the contents of the .inf file:


;*****************************************************************************
;
; u302bus.inf -- Install the HSPADataCard WMC Bus Driver drivers
;
; Copyright (c) 1997-2010 by MCCI Corporation
;
; MCCI is a registered trademark of MCCI Corporation.
;
; NOTICE: This software is licensed, not sold. Any modification of this
; inf file to change the reference to an operating system or to change the
; reference to a device is not permitted unless authorized in writing by
; MCCI Corporation.
;
;*****************************************************************************

[version]
signature="$WINDOWS NT$"
Class=USB
ClassGuid={36FC9E60-c465-11cf-8056-444553540000}
Provider=%Provider%
DriverVer=07/29/2010,5.22.1.1
CatalogFile=u302bus.cat

[ControlFlags]
ExcludeFromSelect = *

;-----------------------------------------------------------------------------
; Specify target paths...
;-----------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir = 11 ; LDID_SYS
U302Wdm.NT.CopyFiles = 12 ; system32\drivers
PropPages.CopyFiles = 11 ; system

;-----------------------------------------------------------------------------
; Specify the install disks. A bit unwieldy during development.
;-----------------------------------------------------------------------------
[SourceDisksNames.x86]
; diskid = description[, [tagfile] [, <unused>, subdir]]
1=%DiskString%,"u302bus.sys",,\i386


[SourceDisksNames.amd64]
; diskid = description[, [tagfile] [, <unused>, subdir]]
1=%DiskString%,"u302bus.sys",,\amd64



[SourceDisksFiles]
; filename = diskid[, [subdir] [, size]]
u302bus.sys = 1
u302whnt.sys = 1

;-----------------------------------------------------------------------------
; Table of Contents: manufacturer, then devices.
;-----------------------------------------------------------------------------
[Manufacturer]
%U302%=U302, NTamd64

;-----------------------------------------------------------------------------
; The devices
;-----------------------------------------------------------------------------
[U302]
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0001
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0002
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0003
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0004
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0005
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0006
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0007
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0008
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0009
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0010
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0011
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0012
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0013
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0014
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0015
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0016
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0017
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0018
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0019
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0020
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0021
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0022
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0023
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0024
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0025
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0026
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0027
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0028
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0029
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0030
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0031
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0032
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0033
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0034
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0035
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0036
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0037
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0038
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0039
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0040
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0041
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0042
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0043
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0044
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0045
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0046
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0047
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0048
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0049
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0050
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0051
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0052
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0053
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0054
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0055
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0056
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0057
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0058
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0059
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0060
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0061
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0062
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0063
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0064
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0065
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0066
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0067
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0068
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0069
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006f

[U302.NTamd64]
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0001
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0002
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0003
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0004
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0005
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0006
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0007
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0008
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0009
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_000f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0010
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0011
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0012
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0013
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0014
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0015
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0016
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0017
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0018
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0019
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_001f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0020
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0021
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0022
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0023
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0024
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0025
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0026
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0027
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0028
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0029
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_002f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0030
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0031
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0032
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0033
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0034
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0035
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0036
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0037
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0038
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0039
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_003f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0040
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0041
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0042
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0043
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0044
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0045
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0046
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0047
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0048
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0049
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_004f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0050
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0051
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0052
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0053
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0054
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0055
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0056
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0057
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0058
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0059
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_005f
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0060
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0061
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0062
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0063
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0064
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0065
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0066
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0067
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0068
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_0069
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006a
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006b
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006c
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006d
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006e
%U302.CdcBus.Desc% = U302Wdm.Install, USB\VID_230D&PID_006f

;-----------------------------------------------------------------------------
; How to install them:
; On NT, the system first tries [section.NT], then [section].
;-----------------------------------------------------------------------------

;-----------------------------------------------------------------------------
; Diagnostics Files CopyFiles List Section
;-----------------------------------------------------------------------------
[U302.CopyFiles]

;-----------------------------------------------------------------------------
; XXX when we have a property page DLL, add it to the following section.
;-----------------------------------------------------------------------------
[PropPages.CopyFiles]


;-----------------------------------------------------------------------------
; How to install the WDM driver on NT
;-----------------------------------------------------------------------------
[U302Wdm.Install.NT]
CopyFiles = U302Wdm.NT.CopyFiles
AddReg = U302Wdm.AddReg, U302Wdm.NT.AddReg

;-----------------------------------------------------------------------------
; How to start the WDM driver on NT
;-----------------------------------------------------------------------------



[U302Wdm.Install.NT.Services]
AddService = u302bus, 2, U302Wdm.AddService, U302Wdm.Install.EventLog

[U302Wdm.AddService]
DisplayName = %U302.Service.Desc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\u302bus.sys
LoadOrderGroup = Base

;-----------------------------------------------------------------------------
; Setup event logging, if driver supports it
;-----------------------------------------------------------------------------

[U302Wdm.Install.EventLog]
Addreg = U302Wdm.EventLog.AddReg

[U302Wdm.EventLog.AddReg]
HKR,,EventMessageFile, 0x20000, "%%SystemRoot%%\System32\drivers\u302bus.sys"
HKR,,TypesSupported, 0x10001, 7


;-----------------------------------------------------------------------------
; WDM registry entries (all platforms)
;-----------------------------------------------------------------------------
[U302Wdm.AddReg]
HKR,,Configuration,0x10001, 03,00,00,00
HKLM,"SYSTEM\CurrentControlSet\Control\DeviceOverrides\USB#VID_230D&PID_0001\LocationPaths\*", Removable, 0x10001, 0
HKLM,"SYSTEM\CurrentControlSet\Control\DeviceOverrides\USB#VID_230D&PID_0001\ChildLocationPaths\*", Removable, 0x10001, 0

HKR,,MCCI_TCPWindowSizeFix_MinValue,0x10001,f0,fa,00,00
HKR,,MCCI_MCECIDFix,0x10001,07,00,00,00


;-----------------------------------------------------------------------------
; WDM registry entries (NT only)
;-----------------------------------------------------------------------------
[U302Wdm.NT.AddReg]
HKR,,MCCIUSB_DebugLevel, 0x10001, ff,ff,ff,ff
HKR,,EnableCR3840, 0x10001, 01,00,00,00 ;fast resume 1=enabled, 0=disabled
HKR,,EnableSelectiveSuspend, 0x10001, 01,00,00,00 ;selective suspend 1=enabled, 0=disabled
HKR,,AllowRemoteWakeup, 0x10001, 01,00,00,00


;-----------------------------------------------------------------------------
; The WDM copy list for NT -- different because things go in
; different places.
;-----------------------------------------------------------------------------
[U302Wdm.NT.CopyFiles]
u302bus.sys
u302wh.sys,u302whnt.sys
u302whnt.sys

;-----------------------------------------------------------------------------


;****************************************************************************
; Localizable Strings
;****************************************************************************
[strings]

;BEGIN ENG - US English Strings
Provider = "HSPADataCard"
U302 = "HSPADataCard"
DiskString = "HSPADataCard WMC Bus Driver Installation disk"

U302.CdcBus.Desc = "HSPADataCard WMC Bus Driver"
U302.Service.Desc = "HSPADataCard WMC Bus Driver (WDM)"

CustomerDataPath = "HSPADataCard"
DriverSet = "HSPADataCard software"
UninstallFile = "U302Uninstall.exe"
McciOptions = "Uninstallable"


;END ENG - US English Strings

;-----------------------------------------------------------------------------
; Following are symbolic constants which don't change per locale.
;-----------------------------------------------------------------------------

;*** end of file ***
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing USB modem drivers during installation

Hello,

I'm not sure why this happens. Can you schedule the related custom actions on "Finish Dialogs Stage" and see if the behavior still persist? Also, can you launch your 64-bit exe installer using a "Launch file or open URL using 64-bit launcher" custom action.

Another solution you can try is to add the related exe installers as pre-install prerequisite to your project. Also, you should add their required files in the "Additional Files" group from "Prerequisites -> Setup Files" tab and you should select their target platforms accordingly from "Prerequisites -> Install Conditions" tab.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bmt22033
Posts: 21
Joined: Tue Jun 26, 2012 2:14 pm

Re: Installing USB modem drivers during installation

I'm happy to say that this problem has been resolved now. As it turns out, when I added the driver's .INF and .CAT files to "Files and Folders", Advanced Installer displayed the "Import Files" dialog which asks the user "Would you like to import INI, XML and shortcut files in Windows Installer format? Unchecked files will be added as regular files instead." I still don't completely understand what was meant by "Windows Installer format" but apparently, that's how I chose to add them to my project (as opposed to unchecking them and having them added as "regular" files). I ended up re-creating my installer again from scratch and did NOT import the .INF files in "Windows Installer format" this time. Now my application installer calls my driver installer .exe and it works fine every time.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing USB modem drivers during installation

Hello,

I'm glad you got this working.

All the best,
Danie
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”