ashraf798
Posts: 11
Joined: Mon Apr 23, 2012 10:58 am

Unable to find driver files

Hi,
I have created a small project to install drivers on a machine. I've also created a .inf file and added it to the project. However during installation it asks for the location of the files, if i specify the file path, after the dialog is displayed which I've attached. I am also putting the inf file below:

[Version]
Signature = "$WINDOWS NT$"
Provider = %pawsft%
DriverVer = 10/09/2013,1.0.0.0
DriverPackageType=KernelModule
CatalogFile =

[DestinationDirs]
DefaultDestDir = 12

[SourceDisksNames]
1 = %Disk1%

[DefaultInstall]
OptionDesc = %papmkServiceDesc%
CopyFiles = papmk.DriverFiles

[DefaultInstall.Services]
AddService = %papmkServiceName%,,papmk.Service
AddService = %iohndlServiceName%,,iohndl.Service

[papmk.Service]
DisplayName = %papmkServiceName%
Description = %papmkServiceDesc%
ServiceBinary = %12%\papmk64.sys
ServiceType = 1 ; SERVICE_KERNEL_DRIVER 2 for SERVICE_FILE_SYSTEM_DRIVER
StartType = 2 ; SERVICE_AUTO_START 3 for SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL

[iohndl.Service]
DisplayName = %iohndlServiceName%
Description = %iohndlServiceDesc%
ServiceBinary = %12%\iohndl64.sys
ServiceType = 2 ; SERVICE_KERNEL_DRIVER 2 for SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ; SERVICE_AUTO_START 3 for SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
Dependencies = papmk

[papmk.DriverFiles]
papmk32.sys=1
papmk64.sys=1
iohndl32.sys=1
iohndl64.sys=1

[Strings]
pawsft = "Pawaa Software"
papmkServiceDesc = "papmk"
papmkServiceName = "papmk"
iohndlServiceName = "iohndl"
iohndlServiceDesc = "iohndl"
Disk1 = "IOHandler Driver"
Attachments
driver path.png
driver path.png (32.12 KiB) Viewed 5600 times
pawdriver.aip
(18.49 KiB) Downloaded 581 times
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Unable to find driver files

Hi
ashraf798 wrote:I have created a small project to install drivers on a machine. I've also created a .inf file and added it to the project. However during installation it asks for the location of the files...
All the driver's files should be placed in a location relative to the location of the INF file. Usually it's enough to follow our Installing Driver howto and everything should work properly if it's a Software First Install driver.

If you have other questions, please let us know.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ashraf798
Posts: 11
Joined: Mon Apr 23, 2012 10:58 am

Re: Unable to find driver files

Dear Teodor,
if you see the project file i've attached, you will see that all the files(4 driver files and 1 inf file) are in the same folder(Application Folder). Also during uninstall, its unable to uninstall the drivers and the setup terminates prematurely. Please can you help me out with this, its urgent. I've also gone through the help files(whose links you have sent in your previous post). I have a suspicion that the difx is not finding the inf file in correct format.

Thanks and Regards,
Ashraf Hussain
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Unable to find driver files

Hi
ashraf798 wrote:Also during uninstall, its unable to uninstall the drivers and the setup terminates prematurely.
I have a suspicion that the difx is not finding the inf file in correct format.
I'm not familiar with INF files, your suspicion is most probably right.

Can you please test your driver directly without Advanced Installer? It's very important to know that the driver can install/uninstall before you build your packages with Advanced Installer.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ashraf798
Posts: 11
Joined: Mon Apr 23, 2012 10:58 am

Re: Unable to find driver files

hi Teodor,
I was right, the inf file was not according to difxapp guidlines, It was expecting [SourceDiskFiles] section and moreover, i cannot install two services form same inf file, so i had to split it. Now its working perfectly. Thanks for all your help.

Regards,
Ashraf Hussain

Return to “Building Installers”