Jump to content

Can someone tell me what I am doing wrong with my runonceex.cmd file


Recommended Posts

Posted (edited)

First off I am new to the boards and I would like to say hello to everyone. I am also new to unattended installs so please forgive me if I sound like a rookie. I have been trolling here for about a month and found tons of help searching the forums. Well onto my issue. Have built 2 server install DVD's that work perfect thats not the issue. My issue is that now for some of our older servers that dont have DVD Drives I would like to have the Runonceex.cmd file run a command to map a network drive and then autoinstall apps off of our network. The map drive command fires no problem...however I am getting weird errors just trying to install say the support tools. I am sure I am just not stating the path right...so I was wondering if an expert or 2 here could tell me what i am doing wrong. below is the first 2 or 3 lines from my runonceex.cmd file...note the first line that sets the CDrom is so that the server will run the cmd file that maps the network drive and that works perfectly...its just everything else after it that fails...

Seems to me like the MSIEXEC command is what I have wrong

thanks so much in advance...hate being new at someting but I am stuck and could use a pointer or 2

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

FOR %%j IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%j:\Cd.txt SET Cdrom=%%j:

SET PP=%cdrom%\$OEM$\

REG ADD %KEY% /V TITLE /D "Please Wait Installing The Following Programs" /f

REG ADD %KEY%\01 /VE /D "Mapping Network Drives" /f

REG ADD %KEY%\01 /V 1 /D "%PP%MapNetwork.cmd" /f

REG ADD %KEY%\002 /VE /D "Windows Resoucekit" /f

REG ADD %KEY%\002 /V 1 /D "msiexec /i I:\Servertools\rktools.msi /qn" /f

Edited by swallent

Posted

googled "rktools silent" and hit the first return.

Once the files are extracted, installation is simply a matter of running msiexec — the only tricky part is specifying a custom install directory. This MSI uses a non-standard parameter for the job (shame on the packagers for not using INSTALLDIR!), but once you know the magic word, it’s easy.

C:\Temp\rktools\>msiexec /qn /i rktools.msi RKTOOLS=”D:\Program Files\Windows Resource Kit\Tools”

http://remstate.com/2008/05/21/the-windows-resource-kit/

Posted

Ok I got that...I guess i should add that all my files and folders are already extracted to a network share... I:\Servername\Share\apps

so basically all I want to do is map to the folder...and trigger the install...

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...