Worf Posted January 12, 2007 Share Posted January 12, 2007 (edited) Ok, i first posted this as a reply to another post and thought i would post it again here for all to read.Nobody has seemed to have mentioned this method of installing applications so i thought i would post this method which is the way i do it. Now, the method i have seen posted here using the RunOnceEX.cmd installed applications after the first login which i do not like, this method will install the applications on the first reboot after Windows has finnished installing.Below is the way i do it, which is a lot better i think.This is my $OEM$ folder.-----$OEM$|---- $1|----Temp|-----RunOnceEX.cmdMy RunOnceEX.cmd is copied to my harddrive inside the Temp Folder.Anything in the $1 folder is copied to the root of your harddrive. I.E. C:\Temp\RunOnceEX.cmdYou can if you wish leave the RunOnceEx.cmd on your CDROM and run it from there.-----------------------------------------------------------------------------------------This is part of my RunOnceEX.cmd file.cmdow @ /HID@echo offThe lines below looks for the CD.TXT on the CDRom and assigns that letter to CDROM.IF EXIST D:\CD.TXT SET CDROM=D:IF EXIST E:\CD.TXT SET CDROM=E:IF EXIST F:\CD.TXT SET CDROM=F:IF EXIST G:\CD.TXT SET CDROM=G:IF EXIST H:\CD.TXT SET CDROM=H:IF EXIST I:\CD.TXT SET CDROM=I:IF EXIST J:\CD.TXT SET CDROM=J:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%/V TITLE /D "Installing Applications" /fREG ADD %KEY%/V1 /D "Please wait while Your Applications" /f; Install SpyWare DoctorREG ADD %KEY%06 /VE /D "SpyWare Doctor" /fREG ADD %KEY%06 /V 1 /D "%CDROM%\apps\SpywareDoctor\sdsetup.exe /VERYSILENT /SP- /NORESTART" /f; Cleaning Up And RebootingREG ADD %KEY%95 /VE /D "Cleaning Up And Rebooting" /fREG ADD %KEY%95 /V 1 /D "%CDROM%\CleanUP\cleanup.cmd" /fExit---------------------------------------------------------------------------------------------The line below goes in my WINNT.sif file, it is the very last line in this file.Since my RunOnceEX.cmd was copied to the root of the harddrive ie C:\Temp\RunOnceEX.cmdi use the line UserExecute="%systemdrive%\Temp\RunOnceEX.cmd (%systemdrive% being C:)If you wish to leave your RunOnceEX.cmd on the CDROM and have it run from there, then change %systemdrive% to %CDROM%[setupParams]UserExecute="%systemdrive%\Temp\RunOnceEx.cmd"This way as i said before will install my applications on the first reboot after Windows has finished installing and not after my first login.Try it, you will fined it a lot better than the other method....Hope this helps anyone?Worf. Edited January 13, 2007 by Worf Link to comment Share on other sites More sharing options...
ajua Posted January 12, 2007 Share Posted January 12, 2007 i install tons of programs and congifs on first login and have been like this for ages without any problems so far.but thanks for the alternative method just in case. Link to comment Share on other sites More sharing options...
Sonic Posted January 12, 2007 Share Posted January 12, 2007 I think it's same as cmdlines.txt stage, so some applications doesn't install in SYSTEM session (as .NET FrameWork not tweaked for example) Link to comment Share on other sites More sharing options...
Acheron Posted January 12, 2007 Share Posted January 12, 2007 I think it's same as cmdlines.txt stage, so some applications doesn't install in SYSTEM session (as .NET FrameWork not tweaked for example)By forcing to install everything at T12 you actually install in the Default User profile. So every new user you create on the system will have all programs available as were it an single user system. I'm currently processing all setup programs to force creating their stuff into the UserProfile\Appdata folder, so everything can get managed centralized I will post instructions on my website when I have time. Link to comment Share on other sites More sharing options...
Sonic Posted January 12, 2007 Share Posted January 12, 2007 Oh okay thanks for precision. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now