Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a .inf with a batch file

Status
Not open for further replies.
Jul 13, 2005
14
US
I've been trying to create a simple little installer script for one of the sites where I work. All it needs to do is grab two files off of a server, drop them in the user directory, and create a shortcut on the desktop. The first part couldn't get more basic (If you'll excuse the pun). the MD command makes the files a home, so to speak, and the xcopy command grabs the files. However, the shotcut is a different story. I am redirecting echoes into a .inf file to create the shortcut, but I don't know what application or executable installs .inf files.
The beef is that each "install" if you will, has to be customized for that user. I can't create a ready made shortcut and use xcopy again to drag it off. Here's what I've written so far:


rem @echo off
set MenuDir=C:\Documents and Settings\%username%

cd %MenuDir%
mkdir client
xcopy "\\bus1\APPS\FNET\FNW\client\*.*" "%MenuDir%\client" /v /g /y /i

echo > %temp%\#path#.bat path %path%
path "%MenuDir%\client\fnwclient2005.mdb"

echo >%temp%\#scmkr#.inf [version]
echo >>%temp%\#scmkr#.inf signature="$chicago$"
echo >>%temp%\#scmkr#.inf [DefaultInstall]
echo >>%temp%\#scmkr#.inf UpdateInis=Addlink
echo >>%temp%\#scmkr#.inf [AddLink]
echo >>%temp%\#scmkr#.inf setup.ini, progman.groups,, "group1=""%MenuDir%\desktop"""
echo >>%temp%\#scmkr#.inf setup.ini, group1,,"""fnwclient2005"",""%MenuDir%\client\fnwclient2005.mdb"",""%MenuDir%\client\fnet.ico"",^^^some number^^^,,"
rem start %temp%\#scmkr#.inf /wait
rem start /wait rundll setupx.dll, DefaultInstall 132 %temp%\#scmkr#.inf


I remmed out the commands that don't work. Does anyone know the rundll or .dll, or anything, that can install this? ANd if I have some random lines in the .inf, let me know. I don't *exactly* know what I'm doing here... hence the name.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top