@Kingswood: I Will Post up the scripts used on Monday for you as I do not have them with me at the moment.
Didn't actually know that- thanks for the info!Originally Posted by ajbritton
@Kingswood: I Will Post up the scripts used on Monday for you as I do not have them with me at the moment.
No problem- and thanks!
I found similar things and odd behaviour even on the same type of hardware.Originally Posted by ICTNUT
If you want to see an example of these type of scripts look on the MSFN board at RogueSpears AutoRIS scripts. The auto ris script itself is great for preparing your source for driver integration like ICT Nut mentioned. I also have used Nlite to take out windows components that will never be used like obscure languages and keyboard mappings etc. I generally reduce the source by 150-200 meg. I also have most of the current updates integrated as well.
I have started a RIS section on the WIKI but havent put any content on it yet so people go forth and add your 2p worth.
I will start putting some stuff on myself today or tommorow as well.
I'd like to know more about these scripts and also how to do it in a bit more indepth information if thats possible.
I will be putting more stuff on the wiki later. But basically during the later stages of windows setup some registry entries are added that will be the tasks to perform on first logon. To perform this first logon you must also set some registry keys that allows autologon of an admin account.
This list is then processed. In my list I have it install various programs like studio 2004 etc, run a registry optimiser and remove all the auto logon details. This is a good opportunity to use any autoit based installs you have.
I will stick some detail in the wiki later.
@ChrisH: I did used to use nLite for cd based installs and it worked great but I have never been able to get to work properly with an RIS based image.
Currently we have 12 apps being installed silently and automatically, including serial numbers and the like, for out ICT rooms.
Average time for a complete install of an ICT room PC varies between 35mins to 60mins depending on the number of PC's also being imaged in the same room.
Also a side note: By removing components using third party applications such as nLite you maybe, and probobly are, violating the EULA for Microsoft Windows.
I have had trouble in the past with Nlite but it works flawlessly for me now. I really do need to trim the install down though as I have 128 meg machines with shared graphics etc which means they already using the pagefile too much so copying files is always slow.
Have you tried it since you started using Risult or try AutosRIS that my favorite I ahd trouble with the risult script?
small ris problemo
I've got ris working fine on nearly all systems,
but on a few laptops after I type in my username
and password, the client install wizard skips the OS choice menu
and asks me to repartition my disk( all data etc..). All other pc/laptops work fine. on other pcs you get a choice of os image but not on these.
any help would be nice
I think that is something to do with the HAL line at the bottom of your sif file
Try seeing what HAL your machines are using and see if tis different.Code:HalName=halaacpi.dll
The scripts I use are as follows:
First of I add a folder called Install to the following path:
Within this folder there are a number of batch (.cmd) files that correspond to various installs that need to be done and by placing them in this folder the are copied over to the machince during the text portion of setup.
This is the first thing that is run and add all the entires into registry under RunOnceEx and then reboots the machineCode:cmdow @ /HID @echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Drives And Applications" /f REG ADD %KEY%\001 /VE /D "Mapping Network Drive" /f REG ADD %KEY%\001 /V /1 /D "%systemdrive%\install\1.cmd" /f REG ADD %KEY%\005 /VE /D "Adobe Reader 7" /f REG ADD %KEY%\005 /V 1 /D "q:\AdobeReader7\acroread702.exe" /f REG ADD %KEY%\006 /VE /D "Smoothwall IDT" /f REG ADD %KEY%\006 /V 1 /D "q:\Smoothwall_Ident\SWIDent.msi /quiet" /f REG ADD %KEY%\007 /VE /D "User Hive Cleanup" /f REG ADD %KEY%\007 /V 1 /D "MSIEXEC.EXE /i q:\UserCleanUp\UPHClean-Setup.msi /q" /f REG ADD %KEY%\010 /VE /D "Microsoft Office 2003" /f REG ADD %KEY%\010 /V 1 /D "q:\Office11\setup.exe TRANSFORMS=q:\Office11\Setup_Office_20_01_06.MST /qb-" /f REG ADD %KEY%\011 /VE /D "Macromedia Dreamweaver 8" /f REG ADD %KEY%\011 /V 1 /D "msiexec /qb! /i q:\Studio8\Macromedia_Dreamweaver_8.msi" REG ADD %KEY%\012 /VE /D "Macromedia Extension Manager" /f REG ADD %KEY%\012 /V 1 /D "msiexec /qb! /i q:\Studio8\Macromedia_Extension_Manager.msi" REG ADD %KEY%\013 /VE /D "Macromedia Fireworks 8" /f REG ADD %KEY%\013 /V 1 /D "msiexec /qb! /i q:\Studio8\Macromedia_Fireworks_8.msi" REG ADD %KEY%\014 /VE /D "Macromedia Flash 8" /f REG ADD %KEY%\014 /V 1 /D "msiexec /qb! /i q:\Studio8\Macromedia_Flash_8.msi" REG ADD %KEY%\015 /VE /D "Macromedia Flash 8 Video Encoder" /f REG ADD %KEY%\015 /V 1 /D "msiexec /qb! /i q:\Studio8\Macromedia_Flash_8_Video_Encoder.msi" REG ADD %KEY%\016 /VE /D "Macromedia Patch Update 3.0.1" /f REG ADD %KEY%\016 /V 1 /D "Msiexec /update q:\Studio8\CT_3.0.1_PatchPackage.msp /quiet" REG ADD %KEY%\017 /VE /D "Macromedia Patch Update 3.1.1" /f REG ADD %KEY%\017 /V 1 /D "msiexec /update q:\Studio8\CT_3.1.1_PatchPackage.msp /quiet" REG ADD %KEY%\018 /VE /D "Macromedia Contribute 3.11" /f REG ADD %KEY%\018 /V 1 /D "msiexec /qb! /i q:\Studio8\Macromedia_Contribute_3.11.msi" REG ADD %KEY%\019 /VE /D "IS Script 10.5" /f REG ADD %KEY%\019 /V 1 /D "MSIEXEC.EXE /i q:\MindManager\ISScript1050.msi /qn" /f REG ADD %KEY%\020 /VE /D "Mind Manager" /f REG ADD %KEY%\020 /V 1 /D "MSIEXEC.EXE /i q:\MindManager\Mindjet_MindManager_Pro_6.msi /qn INSTALLDIR=C:\Progra~1\MindJet\MindManager6 EULA_REGION=2 ISX_SERIALNUM=XXXX-XXX-XXXX-XXXX-XXXX USERNAME=USER COMAPNYNAME=JCOMPANY" /f REG ADD %KEY%\025 /VE /D "IS Script 11" /f REG ADD %KEY%\025 /V 1 /D "MSIEXEC.EXE /i q:\QuickTime\ISScript11.msi /qn" /f REG ADD %KEY%\030 /VE /D "Quick Time Player 7" /f REG ADD %KEY%\030 /V 1 /D "MSIEXEC.EXE /i q:\QuickTime\QuickTime.msi /t q:\QuickTime\1031.MST ISSETUPDRIVEN=1" /f REG ADD %KEY%\035 /VE /D "Windows Media Player 10" /f REG ADD %KEY%\035 /V 1 /D "q:\WM10\mpsetupedp.msi /quiet" /f REG ADD %KEY%\045 /VE /D "McAffee Anti Virus" /f REG ADD %KEY%\045 /V 1 /D "q:\ePOAV\framepkg.exe" /f REG ADD %KEY%\050 /VE /D "Cleaning Up and Rebooting" /f REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\2.cmd" /f shutdown.exe -r -f -t 5 -c "Windows will now restart...." Exit
Within our *.sif file we have set the autologin count = 2 as this is the number we need.
Once the machine has rebooted and logs in the registry stuff we entered in 0.cmd is executed and the next .cmd is run
All this script does is map a physical drive to our remote apps server where we hold all the install files and then changes to it. Once this is done and all the applications have been installed we need to tidy up abit so we run the final .cmd fileCode:cmdow @ /HID @echo off :: Create an authenticated connection to the server by mapping a drive. net use q: \\YOUR_SERVER\RemoteInstall\Programs /user:DOMAIN\USER /persistent:no PASSWORD :: Change to the Q Drive q: exit
All this does is gut out a few shortcuts from the various profiles and remove all the driver files and extra stuff that was copied over during the text part of the setup.Code:CMDOW @ /HID @echo off :: Start >> set AUPSM=%ALLUSERSPROFILE%\Start Menu del "%AUPSM%\New Office Document.lnk" del "%AUPSM%\Open Office Document.lnk" del "%AUPSM%\Set Program Access and Defaults.lnk" del "%AUPSM%\Windows Catalog.lnk" del "%AUPSM%\Windows Update.lnk" :: Start >> Programs >> set UPSMP=%USERPROFILE%\Start Menu\Programs del "%UPSMP%\Remote Assistance.lnk" set DUSMP=C:\Documents and Settings\Default User\Start Menu\Programs del "%DUSMP%\Remote Assistance.lnk" :: Start >> Programs >> Accessories >> set AUPSMPA=%ALLUSERSPROFILE%\Start Menu\Programs\Accessories rd /s /q "%AUPSMPA%\System Tools" rd /s /q "%AUPSMPA%\Communications" set DUSMP=C:\Documents and Settings\Default User\Start Menu\Programs\Accessories del "%DUSMP%\Tour Windows XP.lnk" del "%DUSMP%\Program Compatibility Wizard.lnk" del "%DUSMP%\Synchronize.lnk" del "%DUSMP%\Command Prompt.lnk" :: Start >> Programs >> Administrative Tools set AUPSMPA=%ALLUSERSPROFILE%\Start Menu\Programs\Administrative Tools rd /s /q "%AUPSMPA%\Component Services.lnk" rd /s /q "%AUPSMPA%\Computer Management.lnk" rd /s /q "%AUPSMPA%\Data Sources (ODBC).lnk" rd /s /q "%AUPSMPA%\Event Viewer.lnk" rd /s /q "%AUPSMPA%\Local Security Policy.lnk" rd /s /q "%AUPSMPA%\Performance.lnk" rd /s /q "%AUPSMPA%\Services.lnk" :: Start >> Programs >> TightVNC set AUPSMPA=%ALLUSERSPROFILE%\Start Menu\Programs\TightVNC rd /s /q "%AUPSMPA%\Administration" rd /s /q "%AUPSMPA%\Documentation" rd /s /q "%AUPSMPA%\Show About Box.lnk" rd /s /q "%AUPSMPA%\Show User Settings.lnk" rd /s /q "%AUPSMPA%\TightVNC Viewer (Best Compression).lnk" rd /s /q "%AUPSMPA%\TightVNC Viewer (Fast Compression).lnk" rd /s /q "%AUPSMPA%\TightVNC Viewer (Listen Mode).lnk" :: Start >> Programs >> Macromedia set AUPSMPA=%ALLUSERSPROFILE%\Start Menu\Programs\Macromedia rd /s /q "%AUPSMPA%\Readme Files" :: Start >> Programs >> QuickTime set AUPSMPA=%ALLUSERSPROFILE%\Start Menu\Programs\QuickTime rd /s /q "%AUPSMPA%\About QuickTime.lnk" rd /s /q "%AUPSMPA%\Uninstall QuickTime.lnk" set UPSMPA=%USERPROFILE%\Start Menu\Programs\Accessories del "%UPSMPA%\Tour Windows XP.lnk" del "%UPSMPA%\Program Compatibility Wizard.lnk" del "%UPSMPA%\Synchronize.lnk" del "%UPSMPA%\Command Prompt.lnk" del "%UPSMPA%\Address Book.lnk" :: Copy Macromedia Licence Information Over Call macro_licence.vbs DEL "%systemroot%\*.bmp" DEL "%systemroot%\system32\dllcache\*.scr" DEL "%systemroot%\system32\*.scr" DEL /F /Q %SYSTEMDRIVE%\*.7z DEL /F /Q %WINDIR%\system32\setupold.exe DEL /F /Q %WINDIR%\system32\7za.exe DEL /F /Q %WINDIR%\system32\presetup.cmd RD /S /Q %SystemDrive%\D RD /S /Q %systemdrive%\Drivers RD /S /Q %systemdrive%\Macromedia net user aspnet /delete shutdown.exe -r -f -t 5 -c "Windows will now restart...." RD /S /Q %systemdrive%\install EXIT
All you need to do to kick the whole thing off is add the following to you /sif file:
And that's it really, by doing our installs this way all our machines get a complete clean install (not based on an image which is problematic in itself) and becouse we use RISult for driver intergration and post-SP2 fixes we have a very stable base image that we simply add .sif files to if we need another set of programs for a particular function i.e ICT, Science, Maths etc...Code:[GuiRunOnce] %systemdrive%\install\0.cmd
Now as you may have guessed if you add alternative .sif files to the templates folder within I386, for example:
and number you initial .cmd files to correspond to the .sif file for example:
0.cmd --> XPSP2.sif
0a.cmd --> XPSP2ICT.sif
0b.cmd --> XPSP2SCIENCE.sif
you can quickly build up a very flexible imaging solution that works, doing it this way our ICT rooms using the batch files above take around 35-40mins each to image from start to finish however we are running a true 1GB backbone so your may take a little longer.
I think thats it for now but if I think of anything else I update this post.
Any questions please ask....
Chris - can you post your nlite [RIS.ini] config file [the one you use with AutoRIS] please?
Also, does anyone know why I still get the Welcome to XP section even tho I have:
Also, the:Code:[Unattended] OEMPREINSTALL = YES [guiunattended] OEMSkipWelcome = 1
doesnt work either - not particularly very good during a autoinstall heheCode:[Display] AutoConfirm=1
Any thoughts as time is going fast
Do you mean this ?
I have the same settings as you nath but only get that screen when the machine fails to join the domain properly.
There are currently 1 users browsing this thread. (0 members and 1 guests)