Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

[Discontinued] AutoRIS V2.10

* * * * * 4 votes

  • Please log in to reply
169 replies to this topic

#1
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04
AutoRIS V2.10
2006-04-07
David Stein aka RogueSpear

AutoRIS V2.10 - 2.76MB
MD5: 62F36324F011B8B9D61128068C309514

NOTICE - 08/08/2006
I will leave this final version of AutoRIS available for download until 12/31/2006 for those that are interested for one reason or another. Understand however that the DriverPacks functionality will not work at all with the new generation of that project. Furthermore, I will no longer be updating AutoRIS since it has been succeeded by my new utility AutoImage. The source code for AutoRIS is free for use and / or modification by anybody with a few conditions:
  • You do not purport any modified code to be completely of your own making. My name or handle should still be referenced in the source code.
  • You will NOT sell the source code or any modified version of it.
  • You will NOT include the source code or any modified version of it as a part of some other commercial software.
  • You absolutely CAN include the source code or any modified version of it as a part of an open source software project.
  • YOU will provide support for and take responsibility for any technical issues the arrise from using the source code or a modified version of it.
If you have seen my guide to unattended RIS then you will have an idea of what this utility will do. What is in the guide has been automated now, but I would recommend it for reading if you are involved with RIS deployments and plan on using AutoRIS. It's always a good idea to know what's going on in the background. Please make sure that you have read this entire post and the documentation inside of the AutoRIS.ini file prior to asking for help.

Features
  • Prepare your RIS image for compatibility and processing with RyanVM's Windows XP Post-SP2 Update Pack, nLite, XPize (as an nLite hotfix), and Bashrat the Sneaky's Driver Packs.
  • Perform the integration of RyanVM's Update Pack.
  • Automatically launch nLite and resume upon completion.
  • Automatic Method 2 integration of the BTS Driver Packs.
  • Includes added support for new model Broadcom, Intel, Marvel, and RealTek NIC adapters.
  • Add your own new NIC drivers that are not natively supported by RIS.
  • Add custom user .SIF files to the \Templates directory.
  • Will automatically restart the BINL service on your RIS server.
  • Will upload the image back to the RIS server, including the $OEM$ directory.
  • Recompress the .INF and .PNF files directly on the server.
  • Easily configurable by modification of an .ini file.
  • Integration of the Microsoft .NET Framework V1.1 SP1 and V2.0.
  • Integration of the Microsoft Visual J# Redistributables V1.1 and V2.0
  • Ready made cmdlines.txt with accompanying cmdlines.vbs script and ready made VBscripts for RunOnceEx. No script modification is necessary. All script settings are now stored in an .ini file. This makes for a total end to end RIS solution. Please visit this thread for documentation regarding the scripts.
INSTRUCTIONS
  • Decompress the AutoRIS.7z archive directly to the root of a hard drive. The hard disk should have enough free space on it for a fresh RIS image in addition to enough space to perform RVM and nLite operations.
  • After decompressing the archive you will have a directory called AutoRIS. This directory is where everything will take place. Copy the RVM Integrator and whatever update packs you use to the AutoRIS directory. The Windows XP SP2 ident files are included with AutoRIS and they should not be deleted.
  • Filecase.exe is required and must be within your system path for AutoRIS to function properly. It is included with AutoRIS, but you can just drop in %SystemRoot% or somewhere else within your path. If you already have filecase.exe, feel free to delete the copy inside the AutoRIS directory.
  • Open AutoRIS.ini in any text editor and edit the entries to suit your environment. Many of the default settings will be fine for most users, but some of the paths that are specific to YOUR network must be set before running AutoRIS.
  • An example custom .SIF file, SP2.SIF, is included. You may edit this file to suit your environment. You can put as many of your own custom .SIF files in the AutoRIS directory as you like. They will all be integrated into your RIS image.
  • Before running AutoRIS, you should generate an integrator.ini file for the RVM Integrator to use. A sample integrator.ini is included so that all you need to do is modify it to your needs. NOTE: AutoRIS requires at a minimum V1.05 of the RVM Integrator.
  • nLite V1.0 RC7 has been tested. Included is RIS.ini, the settings file from nLite that I personally use with RIS deployments. You are welcome to inspect it, modify it, and use it as you see fit. Please note that it removes all languages except US English.
  • Adjust the settings in AutoRIS.ini for BTS DriverPack integration. Make sure to read the documentation contained in AutoRIS.ini for how to do this properly.
  • On your RIS server, after creating a fresh image, you should have a directory named "i386". The first time AutoRIS is executed, it will check for this directory, and rename it to "i386-Original". AutoRIS will then copy down it's source files from there. You should leave this directory in place for future use. When a new version of RVM, nLite, or BTS comes out, you can then just run AutoRIS and it will grab the default image from i386-Original.
  • Once you have everything edited and your files in place, just double click on AutoRIS.vbs. This should go without saying, but the script obviously won't work if you have disabled WSH.
Please note the following:
  • This tool was designed around and tested on a RIS image created with Windows Server 2000, but I have received multiple reports of full compatibility with Windows Server 2003, including SBS.
  • AutoRIS must be executed using a domain account that has administrative rights to your target RIS server. This must include the right to stop and start the BINL service.
Change Log

V2.10 - 04/07/2006
- As it turns out, I didn't inroduce a bug with the WMI method of BINL service restarting. It does seem that PsService is the more reliable method. I really don't know what method PsService is using to do it's thing, but it must not be WMI.
- All NIC drivers have been updated.
- Experimental support for nVidia nForce NICs has been added. Since I don't have any such hardware, I can't do any testing of this myself. As always, your feedback is welcome.
- The cmdlines and RunOnceEx script have continued to undergo extensive updating. For a complete description and documentation of the scripts please visit this thread.

V2.00 - 03/26/2006
- Finally I broke down and put the code in to do a Method 2 BTS DriverPack integration. Method 2 is the only one supported and will be the only one supported until the next gen BTS Slipstreamer is released. In order for the integration to work you must use the Method 2 Helper Addon that I include with either the RyanVM Integrator or nLite. In order to get the DriverPack Sound packs to function properly with HD sound adapters, you must integrate RyanVM's Post SP2 Update Pack with either the RVM Integrator or nLite.
- I completely reworked all of the scripts. These will be better documented shortly in another thread which I will link to. This new set of scripts is completely modular. They will work with either a RIS or CD/DVD based install. There are two basic requirements - you must use my cmdlines.vbs script and the file 999_settings.ini must be located in $OEM$\$1 (for RIS) or %CDROM$\OEM (for CD/DVD). If there is a script that you don't want to use in RunOnceEx, just leave it out - everything is autodetected now. Some initial documentation is located in the 999_settings.ini file.
- There is now a choice between using either WMI or SysInternal's PsService to restart the BINL service. This will hopefully eliminate the issues with Windows Server 2003 throwing up a permissions error. The selection is a setting in AutoRIS.ini. Due to licensing restrictions I am unable to include PsService with the AutoRIS distribution. You can download it from SysInternals directly here.

V1.52 - 02/10/2006
- The supplemental NIC drivers have been updated. There is still a conflict between the latest revisions of RealTek's NICs and their older integrated NICs. If you need to support only the older versions, you should remove the updated RealTek drivers from the NIC_Drivers folder.
- Automation for a full BTS DriverPack slipstream has been removed. In place is the old style "pause and wait" where you must perform the slipstream/integration on your own.
- The nLite sample .ini file has been updated to reflect nLite V1.0 RC6.
- Added Restricted Sites Zone protection to the cmdlines.reg registry tweak file.

V1.51 - 01/12/2006
- Corrected a fairly serious bug in which not all compressable files were being compressed.
- The location of additional NIC drivers to be integrated is no longer user definable in AutoRIS.ini.
- All VBscripts have been updated and there is one less reboot required during the setup now.
- There is no more Full and Lite versions. The AutoRIS download now includes all of the VBscripts.
- Links are provided for the additional addons and installers.

V1.50 - 12/31/2005
- AutoRIS settings are now retrieved from an .ini file, AutoRIS.ini.
- More and better error checking and handling.
- Deleting the default .SIF file, RISTNDRD.SIF, is now an option (set in AutoRIS.ini).
- Updated existing NIC drivers, and added support for Broadcom NICs.
- Integrating additional NIC drivers is now an option (set in AutoRIS.ini).
- VMware or VirtualPC, if present will be launched automatically after the BINL service is restarted on the RIS server.
- nLite is now automatically launched.
- Final compression of .INF and .PNF file is now optional.
- AutoRIS now indicated that it is terminating both at the completion of processing and when it encounters path errors.
- A "Full" version of AutoRIS is now available for download. This version includes support for cmdlines.txt, RunOnceEx, automatic integration of .NET runtimes, and more.

V1.03 - 10/30/2005
- Add custom user .SIF files to the \Templates directory. I have included a sample .SIF file which will be copied by AutoRIS. Users can either edit this file to suit their needs or replace it entirely with one or more of their own .SIF files. The default .SIF file, RISTNDRD.SIF, is deleted by default.
- Drivers for Intel Pro, Marvel Yukon, and RealTek are now included with AutoRIS. The .SYS files are not compressed in the distribution in order to achieve greater compression of the AutoRIS download file. The .SYS files are compressed during execution of AutoRIS.

V1.02 - 10/13/2005
- More error trapping, couple of minor modifications, and a lot of testing.
- Changed the defaults to drive letter C:\ as this seems to be much more popular than D:\.

V1.01 - 10/12/2005
- Tag files for Windows XP SP2 and filecase.exe are now included in the AutoRIS download. Tag file detection has been removed completely. Removal of the tagfiles from the AutoRIS temp directory could prevent RVM and nLite from properly functioning.

Edited by RogueSpear, 08 August 2006 - 09:17 AM.



How to remove advertisement from MSFN

#2
InTheWayBoy

InTheWayBoy

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 709 posts
  • Joined 16-August 04
Nice...between this and RISult I have much to play with this weekend! Thanx!!

#3
Fencer128

Fencer128

    Fluffy

  • Member
  • PipPip
  • 231 posts
  • Joined 05-January 05
Hi Dave,

This looks very good. I'm sure it will progress quickly.

There's nothing like a little competition to get speed up development... ;)

I'll have to go and re-code in VBasic now to get a GUI and ini file capability! :P

Cheers,

Andy
RISult a utility to integrate RyanVM Updates and/or BTS DriverPacks into your RIS image.

#4
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04
Yea and I'll have to get BTS integration put in ;) You're a bigger man than me for tackling that one as smooth as you did.

#5
Fencer128

Fencer128

    Fluffy

  • Member
  • PipPip
  • 231 posts
  • Joined 05-January 05

Yea and I'll have to get BTS integration put in ;) You're a bigger man than me for tackling that one as smooth as you did.


I'm sure you'll manage to work it in soon enough. The real question - as you've mentioned above - is how are things going to change with BTS driverpack BASE. It could make things a lot easier, or it could become a much bigger problem in the short term.

I personally need to rebuild a RIS image on a monthly basis (I guess you need a quick turnaround too) so I'm hoping it will be a nice, smooth transition to code for.

Cheers :),

Andy
RISult a utility to integrate RyanVM Updates and/or BTS DriverPacks into your RIS image.

#6
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
Getting a Script error. see attachment

Running from XP SP2 to a Windows SBS 2003 Server

from AutoRIS.vbs
Const RISSERVER = "sbs01.krismark.local"
Const RISIMAGE = "\\sbs01.krismark.local\Reminst\Setup\English\Images\AUTORIS"
Const RISTEMP = "e:\RISTEMP"
Const RVMEXE = "e:\RISTEMP\RVM_Integrator_1.0RC8.exe"

from integrator.ini
[Settings]
UpdatePack=e:\RISTEMP\RVMUpdatePack1.3.1.cab
AddonPacks=e:\RISTEMP|RVMAddonsFull_1.0.cab|RVMAddonsWMP10_1.0.cab
Source=e:\RISTEMP\
Destination=e:\RISTEMP\

Regards

Attached Files



#7
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04
The error seems to be indicating that you do not have a Windows XP SP2 CD in your CD-ROM (or an .ISO file of such mounted with something like Daemon Tools). AutoRIS attempts to copy the tag files over to the RISTEMP directory since RVM (and maybe nLite) need them in order to function properly.

In the next version I'll throw in some code to check and see if those files are already there and if they are not there and there is no XP SP2 source available the script will allow you to put a CD in and continue. For now though, just make sure you have a CD in the drive.

#8
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
Thanks RogueSpear

Next.

Can AutoRis be used without RVM Update pack

#9
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04
Yes, if the executable for the RVM integrator is not found, AutoRIS will just skip over that section completely. The same with nLite. I do have a mandatory pause for BTS at the moment because I'm still not sure how that integration will take place.

#10
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
Great.

BTW still getting error in line 84 with Windows XP SP2 CD in CD-ROM ( tried virtual cd as well)

Is there a specific Drive Letter being Looked for ( mine is S:)

Edit.

Looks like this error happens after tag files are copied. WIN51 & WIN51IP are there. What other files do you require ?

Edited by krismark, 11 October 2005 - 07:27 PM.


#11
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04
Ok, the script looks for all four tag files on an XP SP2 CD which are "WIN51", "WIN51IP", "WIN51IP.SP1", and "WIN51IP.SP2". Are all of these files on your CD? I can say that I've never had this problem before and I certainly had a few in the development of Virgin 1.0.

EDIT: Looks like I was posting as you were editing. And from your edit it appears the two of the tag files are missing from your distro CD.

Edited by RogueSpear, 11 October 2005 - 07:29 PM.


#12
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
I am using Windows XP pro SP2 Retail CD, it only has

WIN51
WIN51IP
WIN51IP.SP2

#13
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,419 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
He should have a re edit version ready in a day or so that shoud take care of that problem.
But In The mean Time Could you try this script and see if it read your CD Correct
Save As CDCheck.Vbs

Dim ws, fs,CDdrv, Inta : Inta = 0
Set ws = WScript.CreateObject("WScript.Shell")
Set fs = CreateObject("Scripting.FileSystemObject")
Set Drv = Fs.Drives
Function CDCheck
For Each strDrive In Drv '''' Set The Drive Letter
If strDrive.DriveType = 4 Then '''' CD Or DVD drive
CDdrv = strDrive.DriveLetter
End If
Next
Do Until Inta = 5 '''' Loop Until True Or It Will Exit And Close
Inta = Inta + 1
If fs.FileExists(CDdrv & ":\Win51") Then
ws.Popup "Confirm Correct CD" & vbCrLf & CDdrv & ":\" ,5,"Confirm CD",0 + 32
Exit Do
Else
ws.Popup "This Is Not The Correct" & vbCrLf & "CD Or DVD, Place The Correct" &_
vbCrLf & "CD OR DVD In The Drive" & vbCrLf & CDdrv & ":\", 5, "Missing CD", 0 + 32
Wscript.sleep 7000
If Inta = 5 Then
ws.Popup "The defualt Time Out Has occur" & vbCrLf & "Preparing to Exit" &_
vbCrLf & "Please Rerun This With The " & vbCrLf & "Proper Cd Inserted In The Cdrom", 5, "Time Out Error", 0 + 32
Exit Do
Exit function
End If
End If
Loop
End Function
CdCheck


Edited by gunsmokingman, 11 October 2005 - 10:16 PM.



GunSmokingMan



#14
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
gunsmokingman:

What does this mean/prove ?

RogueSpear:

Deleted reference to WIN51IP.SP1, now getting this:

EDIT:RogueSpear: Error line 114, When were you going to tell us we needed filecase.exe in the path. ??

Attached Files


Edited by krismark, 11 October 2005 - 10:45 PM.


#15
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
OK.

Fixed tag file issue. Copied in Filecase.exe

Now getting this:

Attached Files



#16
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,419 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
I just wanted to check to see if it a proper CD.
That what the purpose of the script.
Posted Image


GunSmokingMan



#17
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
gunsmokingman:
Its an Genuine Microsoft Hologramed Disk that came in microsoft packaging with an authentic COA

I suspect RogueSpear has Slipstreamd XP gold with SP1 & Then SP2 that is why is looking for both "WIN51IP.SP1", and "WIN51IP.SP2".


RogueSpear: Ran the script (with Fixed tag file issue. Copied in Filecase.exe) all seemed ok (Restarted Service & asked me to start an ris install).

But now Windows Setup Complains about no NIC Drivers Loaded for Current NIC , .inf & sys files are there.

Should there be a coresponding .pnf ?? eg yk51x86.pnf

#18
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,419 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
The script I posted just checks for one file Win51 that all i wanted to know if it found it.
I made that Script on Vista and the image in the reply I get when i put in the XPCD
in my CD Drive.
I think RogueSpear did it that why so it would work for either SP1 or SP2 pack. But this
is just a guess.

But now Windows Setup Complains about no NIC Drivers Loaded for Current NIC , .inf & sys files are there.

This I have no knowlegde on i just wanted to make sure the cd was being identified correctly.


GunSmokingMan



#19
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04
Ok, just got into work and I'm going to need some coffee before any major work gets done, but I should have V1.01 posted later in the day (it's 8:00AM now where I am).

@krismark, don't ya know any better than to run version 1.0 software from a guy who's avatar looks like mine? :P Ok, seriously.. My XP CD is actually a Gold + SP2 slipstream. I think what I'll do is change the code to only look for and copy WIN51IP.SP2 since that seems to be what we're looking for here. I'll have to test it though to see if both RVM and nLite are satisfied with only that file. Also I'll change the code to leave the tag file in place for future use. I think I was a little too aggressive in my cleanup efforts.

Regarding filecase.exe - just a plain old oversight on my part. You can try to get everything down the first time but it never fails, always forget something. In case you're wondering, filecase.exe is actually needed for the proper operation of the script. Some of the compression routines run on the basis of file extension and they're case sensitive. My personal taste is to have everything in one case or the other as it makes it easier to go through a directory with thousands of files that way. So I opted in favor of filecase.exe rather than putting in redundant code to process each file extention twice (once for each case).

Regarding your last screenshot error, I think it was line 227. I'll have to put a note about that in the first post. You must be running AutoRIS from an account that has the right to attach to WMI and restart the BINL service on your RIS server. The permission denied error I can only assume was due to an account with insufficient privleges or there was a WMI problem on your computer.

Like a lot of programs and general procedures regarding the processing of an install image, if something goes wrong towards the beginning then it all goes to hell. I think this could have something to do with your final problem of NIC drivers not being found. Rest assured I'll get a revision up soon.

#20
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04
I just noticed something. For the constant RVMEXE, you put in the path and filename.

from AutoRIS.vbs
Const RISSERVER = "sbs01.krismark.local"
Const RISIMAGE = "\\sbs01.krismark.local\Reminst\Setup\English\Images\AUTORIS"
Const RISTEMP = "e:\RISTEMP"
Const RVMEXE = "e:\RISTEMP\RVM_Integrator_1.0RC8.exe"


It should be the filename only. Slightly further down the script is this line:
RVM = RISTEMP & "\" & RVMEXE & " " & RISTEMP & """\integrator.ini"" /integrate"

AutoRIS expects to find the RVM Integrator (and the RVM Packs) inside of RISTEMP. As you can see from the line above, adding the path to the constant will create issues. Also you are using too old a version of the RVM Integrator. The minimum version level is specified in post #1.

#21
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
I am logged onto the domain with administrator & Domain Admin Rights. Do you know how to give rights to attach to WMI and restart the BINL service ??
Edit: I found this :http://support.microsoft.com/default.aspx?scid=kb;en-us;325353

Looking foward to future versions. BTW where is the link for 1.01 ??

I am home from work with the flu and you are helping me pass the time. BTW its 6.10 A.M here in Sydney.

Edited by krismark, 12 October 2005 - 02:19 PM.


#22
dmweimer

dmweimer
  • Member
  • 1 posts
  • Joined 21-December 04
Ok, I may be blind, but is there a download for this somewhere?

#23
Fencer128

Fencer128

    Fluffy

  • Member
  • PipPip
  • 231 posts
  • Joined 05-January 05

Ok, I may be blind, but is there a download for this somewhere?


Should be on first post ;) !

He must of accidentally removed it...

Cheers,

Andy

Edited by Fencer128, 12 October 2005 - 03:00 PM.

RISult a utility to integrate RyanVM Updates and/or BTS DriverPacks into your RIS image.

#24
krismark

krismark

    Format C: Y/N

  • Member
  • Pip
  • 70 posts
  • Joined 22-June 04
Heres a few things I found today.

1. You need to remove Read Only attributes from txtsetup.sif and other files if using BTS Driver Pack

2. BTS Removes Filecase.exe from your Ristemp Directory, so as RogueSpear points out:
Filecase.exe is required and must be within your system path for AutoRIS to function properly. It is now included with AutoRIS. Just drop in %SystemRoot% or somewhere else within your path.

#25
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04
Ok, I had V1.01 up for a short while when I discovered a not so nice error in my code. For the user who isn't versed in VBS, this would render the script pretty much useless since they couldn't fix the error. I'm currently running a test of what should be V1.02. My efforts have been hampered today by my main job (imagine that) and then an emergency call from a client. No rest for the weary.

Please keep in mind too that when I run through a test it can take well over an hour to complete. And then some more time to analyze the results. So I'm going to make every effort to get 1.02 out the door tonight. I just want to be a little confident that there aren't any major issues with it.

Version 1.0 had been running so smooth for me for like a week. I must have run 20 different tests with it and had no problems at all. The slew of issues that were brought to my attention within hours of it's posting kind of shook me into reality and made me realize this could be more challenging than I had once though.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users