Jump to content

Recommended Posts

Posted

Is it possible to do the following:

in the GuiRunOnce application installer section of windows, is it possible to add a section:

REG ADD %KEY%\001 /VE /D "Advanced Driver Initialisation" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\drivers.cmd" /f

and then have the drivers.cmd look something like this:

cmdow @ /HID
@echo off
REM Checking for NForce Audio Driver and installing Audio Utility as required
if not exist "%windir%\system32\nvmcp.sys" goto skipnforce
"%systemdrive%\install\Applications\NVAudio\setup.exe"
:skipnforce
REM Checking for Sound Blaster drivers
if not exist "%windir%\system32\emu10k.sys" goto skipsb
"%systemdrive%\install\Applications\SB\Mixer\setup.exe"
:skipsb

I'm just guessing the file names / paths for this example... I just want to find out if this is possible before I spend hours writing batch files and working out file names etc...

also, if someone can correct my syntax, i know for sure that the "if not exist blah goto somewhere" doesn't work at all


Posted

yes very possible..

seems correct

and as a matter of fact u can test it just by changing the paths or putting the install folder in the system drive ©

Posted

sweet... I use my disk a lot to re-install computers here on the test bench (always better to start with a fresh install no bulls*** drivers left over) and I have always wondered how I can make it install the audio utility for the nforce boards (without it installing on every machine)...

this seems like a good way to do it? or am i better off getting it to check the registry for hardware keys?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...