MrDavid949
Posts: 3
Joined: Wed Jul 10, 2024 12:02 am

How to install a driver without asking for a destination

Hi,

I'm trying to create an installer that will install my driver (.sys .inf and .cat files). In AdvancedInstaller I placed my 3 driver files in the "Application folder" under Resoureces/Files and Folders. Then I go to Resources/Drivers and reference my .inf file from there. I build the installer and when I run it, it asks me for the destination where the driver will be installed. Is this necessary? I want the driver to be installed in the system as if I had installed it with pnputil.exe. Is there any way I can install it without having the installer ask me for a folder destination for my driver?

thanks
David
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: How to install a driver without asking for a destination

Hello David,

I think that is the default behavior of your driver and therefore I'm not sure whether it can be changed or not.

For instance, if you install it manually, does it prompt you to select the installation location?

Please let me know if you have any other questions and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrDavid949
Posts: 3
Joined: Wed Jul 10, 2024 12:02 am

Re: How to install a driver without asking for a destination

Manually installing a driver can be done in device manager. Right click on the device and choose update driver or install driver. In either case, it will ask for the location of the INF file and that is all. The driver will be installed on the OS automatically and it never asks for an installation destination. I want to do the same thing with AdvInstaller. I want to click next to install my driver, but I don't want it to ask me for a folder where it will land.

thanks
David
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: How to install a driver without asking for a destination

Hey David,

Do you think you could share the driver file with me so I can run some tests on my end?

If so, please forward me a download link by email at support at advancedinstaller dot com.

Additionally, if possible, please also forward me a sample AIP file that contains the driver and how you configured it.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrDavid949
Posts: 3
Joined: Wed Jul 10, 2024 12:02 am

Re: How to install a driver without asking for a destination

Hi, my driver is for a device which you don't have so you will not be able to PnP install it. I suggest obtaining the INF and SYS files for an inexpensive USB to serial device such as this one: https://learn.sparkfun.com/tutorials/ho ... rivers/all

From that link if you download the windows ZIP you can see the .cat .sys and .inf files for the driver. Ignore the setup.exe. The driver package is essentially the 3 files (sys, cat, inf). How would one install those driver files using AdvancedInstaller?

David
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: How to install a driver without asking for a destination

Hello David,
How would one install those driver files using AdvancedInstaller?
Advanced Installer offers multiple options when it comes to instlaling a driver - How to Handle Driver Installation through an MSI package?

With the INF file you provided, I simply added it in the "Drivers" page and everything seemed to be working as expected.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”