There is this bug in Windows that requires me to install a particular inf file every now and then. I would like to run it automatically on startup. But when I put it in Start | Programs | Startup, it opens the inf file in Notepad. Is there anyway I can make it install silently on startup?
.inf files don’t “run” because they’re not executable. If your intention is to put a particular .inf file in a specific directory on bootup, you can add a copy statement to the autoexec.bat file, i.e. Copy c: emp\whatever.ini c:\windows /Y
That’s kind of kludgy though. Maybe if you say what this file is that keeps needing a reinstall, we can help you fix the problem.
here’s the command you need to add :
rundll setupx.dll,InstallHinfSection DefaultInstall 132 c:\windows\inf\filename.inf
.inf files cannot be "open with"ed by other programs, but the above command will make it run and install on start up.
more information here :
http://support.microsoft.com/support/kb/articles/Q145/8/10.asp
so basically, make a .bat file with the following line :
rundll setupx.dll,InstallHinfSection DefaultInstall 132 c:\windows\inf\filename.inf
and copy that .bat file into the StartUp folder. that’s all.