AppDeploy.com

 


How do i install NOT PNP drivers!!!

Click here to associate this thread with a Package KB article.
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [AppDeploy Forums] >> Package Development >> How do i install NOT PNP drivers!!! Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
How do i install NOT PNP drivers!!! - 10/5/2006 1:33:17 PM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
How do i install a driver that is not microsoft certified???


I try use the pnp drivers template but not sucess.
Here's what im doing
After i install the template(msi) with the unsigned drivers a popups appears asking me if i want to install the unsigned driver
If i press yes the driver is installed
Then i connect the device(hardware) and the popups comes one more time asking me if i want to install the unsigned driver

Is there any way to remove this dialog box so the driver gets installed no matter what
And also that the box does not appear then connecting the hardware

Any suggestion folks??

Post #: 1
RE: How do i install NOT PNP drivers!!! - 10/5/2006 6:34:28 PM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
What kind of hardware are we talking about?

(in reply to Bankeralle)
Post #: 2
RE: How do i install NOT PNP drivers!!! - 10/6/2006 1:55:18 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
The Hardware is a Casio DT-X10M10E(PDA-Scanner)
Connecting by usb-cable


Hope this help

(in reply to Bankeralle)
Post #: 3
RE: How do i install NOT PNP drivers!!! - 10/6/2006 4:37:14 AM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
How do i install NOT PNP drivers?
If the hardware is usb connected then that would make it a PNP device.

Have a look at the links at PNP Device Driver.
You can use INF2CAT to create a .CAT file and you will have to sign this with either a existing certificate or create one.
Inf2Cat.exe /driver:"<Path to driver files>" /os:XP_X86 /verbose
Step-by-Step Guide to Device Driver Signing and Staging
Authenticode will work on Windows XP even it Microsoft not state this.

This should solve the issue with the hardware wizard.

(in reply to Bankeralle)
Post #: 4
RE: How do i install NOT PNP drivers!!! - 10/6/2006 7:05:10 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
Thx for all the the help AngelD, but i think i need a bit more explaining

I have used the the INF2cat to create the catalog file!! But how do i sign this
Sorry but i have never done this before

You also wrote sign this with a exsisting certificate or create a new one!!!
Since the customer is not the same company i work. What do you suggest. Is it best to create a new one or using a exsisting one.



Sorry if my question is really stupid. But im kind of new to this so ....................






< Message edited by Bankeralle -- 10/6/2006 7:41:25 AM >

(in reply to AngelD)
Post #: 5
RE: How do i install NOT PNP drivers!!! - 10/6/2006 3:42:23 PM  1 votes
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
If your customer has a certificate then ask them to use that or if they can create one to be used for all their device driver packages.

Required tools bellow can be found in “Microsoft Platform SDK”.
To create an authenticode certificate with MakeCert.Exe and Cert2Spc.Exe use:
1. MakeCert.Exe -r -pe <path to .cer file> -n CN=<certificate name> -sv <path to .pvk file> -len 2048
2. Choose password for the private key
3. Cert2Spc.Exe <path to .cer file> <path to .spc file>

To sign the catalog file (.cat) use:
signcode.exe -spc <path to spc file> -v <path to pvk file> -t http://timestamp.verisign.com/scripts/timstamp.dll <Path to catalogfile>



(in reply to Bankeralle)
Post #: 6
RE: How do i install NOT PNP drivers!!! - 10/9/2006 1:17:01 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
Im not to familar with the certificates!!

But does the certificates need to be at the customer server's????
I thought it was possible to distribute the packagee with the certificate by sms. Am i wrong here??
But the certificate must maybe be trusted by the company or......

If the cerrtificate may be trusted by the company i guess this solution to use a certificate may not be the best solution
Any other suggestion of how to do it


Thx for all the answers AngelD





(in reply to AngelD)
Post #: 7
RE: How do i install NOT PNP drivers!!! - 10/9/2006 3:15:19 AM  1 votes
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
It's not required, but if the customer has a certificate server and this certificate is distributed through the server to for clients you wouldn't have to "install" the certificate through your package.

Command line to add a certificate which you could use through a custom action.
CertMgr.Exe -add "Certificate.cer" -s -r localMachine ROOT

Certificate Manager Tool (Certmgr.exe)

(in reply to Bankeralle)
Post #: 8
RE: How do i install NOT PNP drivers!!! - 10/9/2006 6:13:03 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
I still have some problems to make a cer fil

AngelD Wrote:
To create an authenticode certificate with MakeCert.Exe and Cert2Spc.Exe use:
1. MakeCert.Exe -r -pe <path to .cer file> -n CN=<certificate name> -sv <path to .pvk file> -len 2048
2. Choose password for the private key
3. Cert2Spc.Exe <path to .cer file> <path to .spc file>

First let me say that i dont excatly know what this cmd file does but this is the message i get

C:\Program Files\Microsoft.NET\SDK\v2.0>MakeCert.Exe -r -pe D:\Ongoing\IRXPressU
SBIrDA\Drivere -n CN=WWCert -sv D:\Ongoing\IRXPressUSBIrDA\Drivere\WWCert.pvk -l
en 2048
Error: WriteFile failed => 0x5 (5)
Failed

2. Im able to choose a password for the private key but the i get asked to enter the private key= then is then i get this error message.

Hope you can explain a bit more in detail


If you also have a package where you have done this i would like to see it-because i can't see how this driver is installed automaticlly when i connect the hardware(rememver the driver is not passed microsoft logo testing)
What is a pvk file by the way




< Message edited by Bankeralle -- 10/9/2006 7:11:01 AM >

(in reply to AngelD)
Post #: 9
RE: How do i install NOT PNP drivers!!! - 10/9/2006 10:25:16 AM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
MakeCert.Exe -r -pe "D:\temp with space\WWCert.cer" -n CN=WWCert -sv "D:\temp with space\WWCert.pvk" -len 2048
Cert2Spc.Exe "D:\temp with space\WWCert.cer" "D:\temp with space\WWCert.spc"

What is a pvk file by the way
Private Key

< Message edited by AngelD -- 10/9/2006 10:59:32 AM >

(in reply to Bankeralle)
Post #: 10
RE: How do i install NOT PNP drivers!!! - 10/9/2006 10:54:41 AM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
FYI
Using this procedure creates a "Test Certificate" but it will work as all "certificate purposes" are used.

(in reply to AngelD)
Post #: 11
RE: How do i install NOT PNP drivers!!! - 10/9/2006 2:00:44 PM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
Thx AngelD foreverything so far......

So far i have - let me rather put it you have created the certificate
Signed it with the catalog file

If i know try to run the command

CertMgr.Exe -add "Certificate.cer" -s -r localMachine ROOT

The certificate gets added, but if i connect the printer the hardware wizard still popsup with driver not signed

Why???
Should it not work know




< Message edited by Bankeralle -- 10/9/2006 2:01:59 PM >

(in reply to Bankeralle)
Post #: 12
RE: How do i install NOT PNP drivers!!! - 10/9/2006 8:51:22 PM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
You havn't installed the drivers to the "%SystemRoot%\system32\DRVSTORE" yet.
Create an msi to install the driver(s) using DIFxApp merge module.

If you want to test without having a custom action to add the certificate then just run CertMgr.Exe -add "Certificate.cer" -s -r localMachine ROOT before the msi installation.

Then login with a regular user and see the drivers get installed.
Have a look at http://www.appdeploy.com/messageboards/tm.asp?m=20827 for more details.

Make sure to set the Flags column with a value of "7" in the MsiDriverPackages table for each component/driver entry in this table.

(in reply to Bankeralle)
Post #: 13
RE: How do i install NOT PNP drivers!!! - 10/10/2006 6:14:19 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
Hmmmmm

I have made a msi file where i have only included the drivers

Let my first say im using Wise

This drivers i have deployd to a catalog named c:\program files\drivers
So this drivers catalog contains a inf file and a sys file.
I might be wrong here but need i deploy the *.inf and *.sys file to the most righfull folder-etc c:\windows\inf and c:\windows\system32\drivers???

Ive also included the merge modul!!!

I used the sys file as keypath!!!

Under MsiDriverPAckage i added this one component and set the flagcolum to 7
Why 7- haven't i signed the drivers??

Then i install the certificate you made for me

The i compile and installed the package.
Under the installation the wizard pops up saying driver not signed. So i have to press yes here to continue
I guess the certificate should have solved this

Then i connect the HW and the wizard comes up and i i have to do it all over


If im following the wizard and then check device manager i see 2 driver files
1 is signed and the package sys file is NOT signed.
Shouldn't this be signed know. Thought i did this

Since the device also using a signed driver should i made the certificate with this driver also???

I desperatly need som more help here m8[:@



< Message edited by Bankeralle -- 10/10/2006 7:43:53 AM >

(in reply to AngelD)
Post #: 14
RE: How do i install NOT PNP drivers!!! - 10/10/2006 10:18:52 AM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
You missed to add the .cat file to the same folder as the .inf and .sys file.
So the files you will have to install will be: .inf, .sys and the .cat file.

The .inf file must be set as the keypath for the component holding these three files.
Add the DIFxApp.msm if not already done.

Go to the Setup Editor view and select the components tab.
You should have one component here fromout adding the files from the Installation Expert view.
Expand this component until you see the Files source tree look alike ;) (couldn't give you a better name). On the right you will see the driver "related" files.
Right-click the .inf file as set as key.

Richt-click the .inf file and select Details and go to the Driver tab.
Mark the "Use DIFxApp to....".
Un-check all of the "DIFxApp Installation Options", this will set the Flags column to 7 in the MsiDriverPackages table.
If you do not un-check "Retain better-matchine PnP function drivers." the unsigned driver already installed on the client will be used instead of this one we have signed.

A little note: after done the settings in the Driver tab and clicking OK and you suddenly want to rename the component these settings will be discarded. In this case you will need to go to the Driver tab and redo the settings again.

Hope the hero will win in the end of this story ;)

< Message edited by AngelD -- 10/10/2006 10:35:58 AM >

(in reply to Bankeralle)
Post #: 15
RE: How do i install NOT PNP drivers!!! - 10/10/2006 10:35:35 AM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
I might be wrong here but need i deploy the *.inf and *.sys file to the most righfull folder-etc c:\windows\inf and c:\windows\system32\drivers???
No, this is done by the DIFxApp merge module.

(in reply to Bankeralle)
Post #: 16
RE: How do i install NOT PNP drivers!!! - 10/10/2006 12:28:43 PM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
Ok

I have done exatly as you said!!

1. I made a msi file containing the sys,inf and the cab files at c:\program files\drivers

2.I added the DifxAPP merge module

I have one component where i put the *.inf file as key
Then right clik the inf file and marked the "Use DifxApp..." And uncked all of th other
Should this only be done for this file or the cab and the sys file also-but not the key file thing

Then i installed the certificate.
After this i installed the msi file but neighter the inf and sys file is copid to the windows folder!!!

Im doing this from home now so the hardware is plugged in, not sure if that can be problem

And by the way if we solve this im not the hero-y are:-)



(in reply to AngelD)
Post #: 17
RE: How do i install NOT PNP drivers!!! - 10/10/2006 4:04:06 PM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
Just to verify!

Look in the .inf file and find the SorceDiskFiles section.
Did you add all of these files listed in this section + the .inf and the newly created .cat (not .cab) to the msi?

The drivers (files) will be copied to it's representive folders during hardware wizard, that is when you plug in the usb hardware.
Test by not having the hardware plugged in and install the package.
When the installation has finished log in with a regular user and plugin the PDA-Scanner.
If it doesn't work have a look in the "%windir%\setupapi.log" for driver installation failure, should be located near the end of the file.

(in reply to Bankeralle)
Post #: 18
RE: How do i install NOT PNP drivers!!! - 10/11/2006 2:47:12 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
First let me say i think we are close to a solution

Then i installed the certificate and the driver-package-the new harware wizard did not pop up-yohooo
But the device got installed with wrong driver so its not working

If i check the inf-file uder
[SourceDisksFiles] ; floppy only
kcirnet.sys = 1 ; floppy only
kclk.sys = 1


Well i got the kcirnet.sys- file but the other file i dont can't find...

Then i connected the hardware it got installed but with a different driver
c:\windows\system32\drivers\irenum.sys

The driver kcirnet.sys is not copyid to c:\windows\system32\drivers

Any idea why???

Heres is the log for setupapi.log
2006/10/11 09:13:24 708.3 Driver Install]
#-019 Searching for hardware ID(s): usb\vid_050f&pid_0180&rev_0110,usb\vid_050f&pid_0180
#-018 Searching for compatible ID(s): usb\class_fe&subclass_02&prot_00,usb\class_fe&subclass_02,usb\class_fe
#-198 Command line processed: C:\WINDOWS\system32\services.exe
#I022 Found "USB\VID_050f&PID_0180" in C:\WINDOWS\inf\oem8.inf; Device: "CASIO IRXpress USB Infrared"; Driver: "CASIO IRXpress USB Infrared"; Provider: "CASIO Computer Co.,"; Mfg: "CASIO Computer Co.,"; Section name: "KC180".
#I023 Actual install section: [KC180]. Rank: 0x00000001. Effective driver date: 11/04/2002.
#I393 Modified INF cache "C:\WINDOWS\inf\INFCACHE.1".
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [KC180] in "c:\windows\inf\oem8.inf".
#I320 Class GUID of device remains: {6BDD1FC5-810F-11D0-BEC7-08002BE2092F}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#-166 Device install function: DIF_INSTALLDEVICEFILES.
#I124 Doing copy-only install of "USB\VID_050F&PID_0180\5&2B36232&0&1".
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [KC180.Interfaces] from "c:\windows\inf\oem8.inf".
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of "USB\VID_050F&PID_0180\5&2B36232&0&1".
#-035 Processing service Add/Delete section [KC180.Services].
#E339 Add Service: Binary "C:\WINDOWS\system32\DRIVERS\kcirnet.sys" for service "KCIRNET" is not present.
#E032 Error 0xe0000217: A service installation section in this INF is invalid.
#E275 Error while installing services. Error 0xe0000217: A service installation section in this INF is invalid.
#E122 Device install failed. Error 0xe0000217: A service installation section in this INF is invalid.
#E154 Class installer failed. Error 0xe0000217: A service installation section in this INF is invalid.
[2006/10/11 09:13:28 2620.2]
#-199 Executing "C:\WINDOWS\system32\rundll32.exe" with command line: rundll32.exe newdev.dll,ClientSideInstall \\.\pipe\PNP_Device_Install_Pipe_0.{75286C69-0715-4995-A35C-357212DA9E69}
#I060 Set selected driver.
#-019 Searching for hardware ID(s): usb\vid_050f&pid_0180&rev_0110,usb\vid_050f&pid_0180
#-018 Searching for compatible ID(s): usb\class_fe&subclass_02&prot_00,usb\class_fe&subclass_02,usb\class_fe
#I022 Found "USB\VID_050f&PID_0180" in C:\WINDOWS\inf\oem8.inf; Device: "CASIO IRXpress USB Infrared"; Driver: "CASIO IRXpress USB Infrared"; Provider: "CASIO Computer Co.,"; Mfg: "CASIO Computer Co.,"; Section name: "KC180".
#I023 Actual install section: [KC180]. Rank: 0x00000001. Effective driver date: 11/04/2002.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [KC180] in "c:\windows\inf\oem8.inf".
#I320 Class GUID of device remains: {6BDD1FC5-810F-11D0-BEC7-08002BE2092F}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#-124 Doing copy-only install of "USB\VID_050F&PID_0180\5&2B36232&0&1".
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [KC180.Interfaces] from "c:\windows\inf\oem8.inf".
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of "USB\VID_050F&PID_0180\5&2B36232&0&1".
#-035 Processing service Add/Delete section [KC180.Services].
#E339 Add Service: Binary "C:\WINDOWS\system32\DRIVERS\kcirnet.sys" for service "KCIRNET" is not present.
#E032 Error 0xe0000217: A service installation section in this INF is invalid.
#E275 Error while installing services. Error 0xe0000217: A service installation section in this INF is invalid.
#E122 Device install failed. Error 0xe0000217: A service installation section in this INF is invalid.
#E154 Class installer failed. Error 0xe0000217: A service installation section in this INF is invalid.
#I060 Set selected driver.
#I125 Installing NULL driver for "USB\VID_050F&PID_0180\5&2B36232&0&1".
#I121 Device install of "USB\VID_050F&PID_0180\5&2B36232&0&1" finished successfully.


The error message i get is
a service installation section in this inf file is invalid

Maybe 1 more thing i should mention when i signed the cat file i used the signtool wiz.
Could i use this tool in a wrong way

By the way i used the *.cat file not *.cab file:-)

In wise:I should only add the DIFFxAPP.msm module right. Or is there something more i must do to make it work???






< Message edited by Bankeralle -- 10/11/2006 11:50:08 AM >

(in reply to AngelD)
Post #: 19
RE: How do i install NOT PNP drivers!!! - 10/11/2006 9:37:26 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
Here is the inf file


; Copyright(c) All Rights Reserved. 2002 KC Technology, Inc.
;;
;;
;; IRXpress
;;
;;modify for casio on 11/14/2002
[Version]
Signature = "$Windows NT$"
Provider = %KCIR%
Class = Infrared
ClassGUID = {6bdd1fc5-810f-11d0-BEC7-08002BE2092F}
DriverVer = 11/04/2002, 2.11.04.1
CatalogFile = kcir.cat

[SourceDisksNames] ; floppy only
1 = %MediaDescription%,, ; floppy only

[SourceDisksFiles] ; floppy only
kcirnet.sys = 1 ; floppy only
kclk.sys = 1


[DestinationDirs]
;
; Specify destination directories for groups of files.
; '12' indicates the Windows drivers directory.
; '17' indicates the Windows Inf directory.
;
DefaultDestDir=12

[KCIR_CopySys]
;
; This section lists the source and destination names of files that need
; to be copied to the user's drive. The destination directory is given
; in the [DestinationDirs] section above.
;
kcirnet.sys,,,2 ; Do not Skip File
kclk.sys,,,2 ; Do not Skip File


[Manufacturer]
;
; Specify a name and devices section for each supported manufacturer that
; makes products of this class.
;
%KCIR% = KCTechnology

[KCTechnology]
%USB\VID_050f&PID_0180.DeviceDesc%=KC180, USB\VID_050f&PID_0180
%USB\VID_09C4&PID_0011.DeviceDesc%=KC180, USB\VID_09C4&PID_0011
%USB\VID_C409&PID_0001.DeviceDesc%=KC180, USB\VID_C409&PID_0001


[KC180]
DelReg = KC180_DelReg
AddReg = KC180_AddReg,*KC180_AddReg,Speed_Addreg,Help_AddReg
BusType = 15
Characteristics = 0x4 ; NCF_PHYSICAL
;CopyFiles = KCIR_CopySys ;auto install

[KC180.Services]
AddService= KCIRNET, 2, KCIRNET.AddService, common.EventLog

[KC180.Coinstallers]
DelReg=KC180_DelCoinstallers




[KC180_AddReg]
; Interfaces
HKR, Ndi, Service, 0, "IRXpress"
HKR, NDI\Interfaces, DefUpper, 0, ndisirda
HKR, NDI\Interfaces, UpperRange, 0, ndisirda
HKR, Ndi\Interfaces, DefLower, 0, nolower
HKR, Ndi\Interfaces, LowerRange, 0, nolower
HKR, Ndi, RequiredAll, 0, "MS_IrDA"

[*KC180_AddReg]
HKR,,BoardType,0,"3"
HKR,NDI\params\MaxConnectRate,default,,"4000000"


[Speed_Addreg]
;
;
HKR,NDI\params\MaxConnectRate,ParamDesc,,%MaxConnectRate%
HKR,NDI\params\MaxConnectRate,type,,enum
HKR,NDI\params\MaxConnectRate\enum,"4000000",,"4000000 bps"
HKR,NDI\params\MaxConnectRate\enum,"115200",, " 115200 bps"
HKR,NDI\params\MaxConnectRate\enum,"57600",, " 57600 bps"
HKR,NDI\params\MaxConnectRate\enum,"38400",, " 38400 bps"
HKR,NDI\params\MaxConnectRate\enum,"19200",, " 19200 bps"
HKR,NDI\params\MaxConnectRate\enum,"9600",, " 9600bps"

[Help_Addreg]
HKR,NDI,HelpText,0,%IRMINI_HELP%

[KC180_DelReg]
HKR,,EnumPropPages32

[KC180_DelCoinstallers]
HKR,,CoInstallers32

[KCIRNET.AddService]
DisplayName = %KCIrExpress.ServiceDesc%
ServiceType = 1 ; %SERVICE_KERNEL_DRIVER%
StartType = 3 ; %SERVICE_DEMAND_START%
ErrorControl = 1 ; %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\kcirnet.sys ;12=drivers directory
LoadOrderGroup = NDIS

[common.EventLog]
AddReg = common.AddEventLog.reg

[common.AddEventLog.reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported, 0x00010001, 7



[Strings]
;
; This section defines symbolic string constants for use in the rest
; of the .inf script. You should create and use symbols for all
; translatable strings in order to make localization easier.
; Also, spaces within strings elsewhere in the script confuse infedit.exe;
; so use symbolic constants for any multi-word strings.
;
MediaDescription = "IRXpress Installation Disk"

IRMINI_HELP="IRXpress Infrared Port. It can be used to establish wireless serial and network links to other computers and devices."
KCIrExpress.ServiceDesc="CASIO Device Driver"
USB\VID_050f&PID_0180.DeviceDesc = "CASIO IRXpress USB Infrared"
USB\VID_09C4&PID_0011.DeviceDesc = "IRXpress USB Infrared Device"
USB\VID_C409&PID_0001.DeviceDesc = "IRXpress USB Infrared Device"

V_CLASSNAME="Infrared adapters"
KCIR="CASIO Computer Co.,"
MaxConnectRate="Maximum Connect Rate"

(in reply to Bankeralle)
Post #: 20
RE: How do i install NOT PNP drivers!!! - 10/11/2006 6:17:08 PM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
All files under the "[SourceDisksFiles]" section is required, otherwise INF2CAT will fail to create the .CAT file.
Did these kclk.sys file not exist?

As the file "kcirnet.sys" is not copied the service "KCIRNET" will not be created by AddService action in the "[KC180.Services]" section.
This will log the #E339 Add Service: Binary "C:\WINDOWS\system32\DRIVERS\kcirnet.sys" for service "KCIRNET" is not present..

Have a look under the "[KC180]" section.
Remove the remark of the CopyFiles (;CopyFiles = KCIR_CopySys ;auto install) action.
The line should look like:
CopyFiles = KCIR_CopySys ;auto install

(in reply to Bankeralle)
Post #: 21
RE: How do i install NOT PNP drivers!!! - 10/12/2006 2:53:58 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline


First let me say i did not see that
CopyFiles = KCIR_CopySys ; auto install was remarked

Removed the the mark
and since i dont have kcl.sys i also removed everything about this file from the inf file.

I then made a new cat file(guess i have to do it-since i have changed the inf file)
Signed the cat fil to my certificate.

Installed the certificate
Installed the msi file


Logge in as a "standard" user
Plugged in the hardware


And guess what
IT FINALLY WORKS

So now i just i need to get the certficate installed in a custom action
Do i need to make 2 msi files, one who installs the certficate ant the other installing the drivers
IF NO- where do set the install certificate action???




< Message edited by Bankeralle -- 10/12/2006 3:14:29 AM >

(in reply to AngelD)
Post #: 22
RE: How do i install NOT PNP drivers!!! - 10/12/2006 3:42:04 AM  3 votes
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
You don't need a second MSI to install the certificate.
Add the .cer file to your package into a shared folder (ex. WINDOWS\System32)
Add a custom action executed after InstallFiles action with the condition "Not Installed".
The ca should execute: CertMgr.Exe with the parameters: -add "[#WWCert.cer]" -s -r localMachine ROOT.

I would use a Custom Action Type 2 (EXE file stored in a Binary table stream).


(in reply to Bankeralle)
Post #: 23
RE: How do i install NOT PNP drivers!!! - 10/12/2006 6:57:49 AM   
Bankeralle

 

Posts: 133
Score: 0
Joined: 5/3/2006
Status: offline
YES - IT WORKS

Thx for all the help Angeld - you truly are an angel



< Message edited by Bankeralle -- 10/12/2006 9:11:22 AM >

(in reply to AngelD)
Post #: 24
RE: How do i install NOT PNP drivers!!! - 10/12/2006 9:20:29 AM   
spartacus

 

Posts: 408
Score: 41
Joined: 2/4/2004
From: Warrington, United Kingdom
Status: offline
Very informative answers AngelD and fully deserving of a +2 rating for sheer patience alone.

Många tak

Spartacus



_____________________________

La mort ne surprend point le sage Il est toujours prêt à partir.

(in reply to AngelD)
Post #: 25
RE: How do i install NOT PNP drivers!!! - 10/12/2006 10:16:08 AM   
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
HAHA... you almost got it Spartacus, thx for the rate!

Tack så mycket

(in reply to spartacus)
Post #: 26
RE: How do i install NOT PNP drivers!!! - 10/12/2006 10:28:53 AM  1 votes
AngelD

 

Posts: 2937
Score: 102
Joined: 6/9/2004
From: Sweden
Status: offline
quote:

ORIGINAL: AngelD

I might be wrong here but need i deploy the *.inf and *.sys file to the most righfull folder-etc c:\windows\inf and c:\windows\system32\drivers???
No, this is done by the DIFxApp merge module.

To correct myself:
The DIFxApp Merge Module will add the drivers to "%WINDIR%\System32\DRVSTORE".
The Hardware Wizard till install the drivers to "%WINDIR%\inf" and "%WINDIR%\System32\drivers" if related driver files exist as there can exist just .inf files that do not require any DLL, SYS, VXD... files.

(in reply to AngelD)
Post #: 27
RE: How do i install NOT PNP drivers!!! - 3/22/2007 10:32:23 AM   
johndsummers

 

Posts: 15
Score: 0
Joined: 10/2/2003
Status: offline
I have followed the advise in this thread. I am coming up with a problem with installing the cert. It seems that the cert custom action is running before the cert is installed to the computer. I do have the custom action after InstallFiles in the Exec. Immediate. Does anyone know why that would be? I know this must be a simple answer, but I haven't worked a lot in the msi Script part of packages that I have done in the past. Please let me know what I can do.

Thank you in advance.
John

(in reply to Bankeralle)
Post #: 28
RE: How do i install NOT PNP drivers!!! - 3/22/2007 11:27:50 AM   
KrisBcn

 

Posts: 86
Score: 3
Joined: 8/16/2006
From: Barcelona, Spain
Status: offline
Hi John,
I think you should sequence the cert CA as Deferred in System Context. Assuring this way the files are been really installed before the CA starts.
Hope it helps

KrisBcn

(in reply to johndsummers)
Post #: 29
RE: How do i install NOT PNP drivers!!! - 3/22/2007 4:57:38 PM   
johndsummers

 

Posts: 15
Score: 0
Joined: 10/2/2003
Status: offline
In AngelD's response earlier, he stated the below


Richt-click the .inf file and select Details and go to the Driver tab.
Mark the "Use DIFxApp to....".
Un-check all of the "DIFxApp Installation Options", this will set the Flags column to 7 in the MsiDriverPackages table.
If you do not un-check "Retain better-matchine PnP function drivers." the unsigned driver already installed on the client will be used instead of this one we have signed.

I don't see a drivers tab in WPS 5.5. Is there suppose to be one there? Maybe that is why I am having issues with my install.

I did move the cert install to the Execute Deferred but it fails the install stating that the driver couldn't be verified. The Cert didn't get installed yet. So, it is trying to load the driver before the cert is installed. But the custom action is trying to install the cert before the files for the cert are put on the machine. I have tried to move the dll call to the msiDriverspackage in Execute immediate but then I just get an error of 2726.

I see earlier that they talked about a standard user logged in and the drivers added. I am working on a USB device that when I can get things to work (manual cert add), it will still state that a local admin has to install the device drivers.

John

(in reply to Bankeralle)
Post #: 30
Page:   [1] 2   next >   >>
All Forums >> [AppDeploy Forums] >> Package Development >> How do i install NOT PNP drivers!!! Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.078