InstallDriver.exe silent?

My x64 port of InpOut32
Post Reply
ericj
New User
Posts: 3
Joined: Mon Feb 15, 2010 11:08 pm

InstallDriver.exe silent?

Post by ericj » Mon Feb 15, 2010 11:22 pm

I'd like to integrate InstallDriver.exe into the installer of my own (commercial) application (is that allowed by the licence?)

Does it support a command line switch to run silently (i.e. displays no success message at the end)?

User avatar
phil
Site Admin
Posts: 5953
Joined: Sun Apr 06, 2003 11:12 pm

Re: InstallDriver.exe silent?

Post by phil » Tue Feb 16, 2010 11:34 am

Urm, I guess its allowed - there is no license other than that that comes with InpOut32 (which I didn't write so I cant really comment)....

But why would you want to do this. The point of InstallDriver is just to ensure that the driver is run from an elevated process the first time its run (to ensure it has permissions to install). You don't even need it if UAC id not running....

So I would think it best if you could do this from your own installation?

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

ericj
New User
Posts: 3
Joined: Mon Feb 15, 2010 11:08 pm

Re: InstallDriver.exe silent?

Post by ericj » Wed Feb 17, 2010 12:47 pm

Thanks for your answer.

But how do i install the driver from my own setup?
Shall i just call copy inpout32.dll to /system32/ and call any function in it so that the driver installs itself?

User avatar
phil
Site Admin
Posts: 5953
Joined: Sun Apr 06, 2003 11:12 pm

Re: InstallDriver.exe silent?

Post by phil » Wed Feb 17, 2010 11:58 pm

All InstallDriver does is call the Open function on the InpOut DLL.
When the DLL is called, if the driver is not installed it does so automatically. The only reason for InstallDriver.exe is to "force" administrative privileges.


So, the easy solution is, from your install (which I assume will be running as admin) you can call the DLL's open function yourself which will install the driver.

If your interested, the (C#) source for installdriver is available on my website in the source for 1.2.0.0. Your welcome to do whatever you want with it to make it do what you want if you dont want to call the DLL yourself - or just use it as an example :)

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

ericj
New User
Posts: 3
Joined: Mon Feb 15, 2010 11:08 pm

Re: InstallDriver.exe silent?

Post by ericj » Thu Feb 18, 2010 12:46 am

Thanks Phil, that helps.

Post Reply