Rodox Posted August 19, 2008 Posted August 19, 2008 (edited) Hi =) I've spent almost three days working on an nLited Windows XP SP3 (Spanish) installation but for some reason I can't get a batch file that installs .NET Framework, applies registry tweaks, and cleans the Start Menu to work.Here's my Last Session.ini:[Main]Env = 1.4.8 - 2.0.50727.1433.Microsoft Windows NT 5.1.2600 Service Pack 3Target = Windows XP Professional SP3 - 5.1.2600.5512 - Español - España (alfabetización internacional)[Tasks]Remove ComponentsUnattended SetupIntegrate DriversHotfixes and Update PacksTweaksCreate a Bootable ISOOptions[Components];# Applications #Accessibility OptionsBriefcaseClipBook ViewerInternet GamesWordPad;# Drivers #Tape drivesToshiba DVD decoder card;# Hardware Support #Brother DevicesIomega Zip drive;# Languages #;ÁrabeÁrabe (Arabia Saudí)Árabe (Argelia)Árabe (Bahrein)Árabe (E.A.U.)Árabe (Egipto)Árabe (Irak)Árabe (Jordania)Árabe (Kuwait)Árabe (Líbano)Árabe (Libia)Árabe (Marruecos)Árabe (Omán)Árabe (Qatar)Árabe (Siria)Árabe (Túnez)Árabe (Yemen)Divehi (Maldivas)PashtoSirio (Siria)Urdú;ArmenioArmenio;BálticoEstonioLetónLituano;Chino simplificadoChino (RPC)Chino (Singapur);Chino tradicionalChino (Taiwán)Chino (Zona administrativa especial de Hong Kong)Chino (Zona administrativa especial de Macao);CirílicoAzerí (cirílico)BielorrusoBosnio (cirílico, Bosnia-Herzegovina)BúlgaroKazakhKyrgyz (Kirguizistán)Macedonio (FYRO)Mongol (Mongolia)RusoSerbio (cirílico)Serbio cirílico (Bosnia-Herzegovina)TatarUcranianoUzbek (cirílico);CoreanoCoreano;Europa CentralAlbanésBosnio latino (Bosnia-Herzegovina)ChecoCroataCroata (Bosnia-Herzegovina)EslovacoEslovenoHúngaroPolacoRumanoSerbio (latín)Serbio latino (Bosnia-Herzegovina);Europa Occidental y Estados UnidosAfrikaansAlemán (Alemania)Alemán (Austria)Alemán (Liechtenstein)Alemán (Luxemburgo)Alemán (Suiza)CatalánDanésEspañol - España (alfabetización tradicional)Español (Argentina)Español (Bolivia)Español (Chile)Español (Colombia)Español (Costa Rica)Español (Ecuador)Español (El Salvador)Español (Guatemala)Español (Honduras)Español (México)Español (Nicaragua)Español (Panamá)Español (Paraguay)Español (Perú)Español (Puerto Rico)Español (República Dominicana)Español (Uruguay)Español (Venezuela)EuskeraFeroésFilipinoFinlandésFrancés (Bélgica)Francés (Canadá)Francés (Francia)Francés (Luxemburgo)Francés (Mónaco)Francés (Suiza)FrisónGalésGallego (España)IndonesioInglés (Australia)Inglés (Belice)Inglés (Canadá)Inglés (Caribe)Inglés (Estados Unidos)Inglés (Filipinas)Inglés (Irlanda)Inglés (Jamaica)Inglés (Nueva Zelanda)Inglés (Reino Unido)Inglés (Sudáfrica)Inglés (Trinidad)Inglés (Zimbabwe)Inuktitut (latino)IrlandésIslandésItaliano (Italia)Italiano (Suiza)LuxemburguésMalayo (Brunei Darussalam)Malayo (Malasia)MaltésMaoríMapudungunMohawkNeerlandés (Bélgica)Neerlandés (Países Bajos)Noruego (Bokmal)Noruego (Nynorsk)Portugués (Brasil)Portugués (Portugal)Quechua (Bolivia)Quechua (Ecuador)Quechua (Perú)RetorrománicoSami inari (Finlandia)Sami lule (Noruega)Sami lule (Suecia)Sami meridional (Noruega)Sami meridional (Suecia)Sami septentrional (Finlandia)Sami septentrional (Noruega)Sami septentrional (Suecia)Sami skolt (Finlandia)Sotho septentrionalSuecoSueco (Finlandia)SwahiliTswanaXhosaZulú;GeorgianoGeorgiano;GriegoGriego;HebreoHebreo;ÍndicoBengalí (India)Gujarate (India)HindúKannada (India)KonkaniMalayalam (India)MarathiNepalí (Nepal)Punjabi (India)SánscritoTamilTelugu (India);JaponésJaponés;TailandésPersaTailandés;TúrquicoAzerí (latín)TurcoUzbek (latín);VietnamitaVietnamita;# Multimedia #Intel Indeo codecsMedia CenterMusic SamplesOld CDPlayer and Sound RecorderSpeech Support;# Network #Communication toolsMSN ExplorerWindows Messenger;# Operating System Options #.NET FrameworkBlaster/Nachi removal toolDesktop Cleanup WizardFile and Settings WizardHelp and SupportSearch AssistantSecurity CenterTourZip Folders;# Services #AlerterError ReportingIndexing ServiceIPSEC Policy AgentMessengerRemote Registry;# Directories #DOCSSUPPORTVALUEADD;# Compatibility #[KeepFiles]msconfig.exe[RemoveFiles]clock.aviyahoo.bmpswtchbrd.bmp[Options]ProfilesDir = "%SystemDrive%\Documents and Settings"TargetPath = "WINDOWS"temp_dir = %USERPROFILE%\Configuración local\TempAdvTweaks[Patches]TcpIp = 50DoUxThemeDoSFC[Services2]StiSvc,3wuauserv,4BITS,3RSVP,4seclogon,4WZCSVC,3ImapiService,3SwPrv,3NtmsSvc,3srservice,4TlntSvr,3SSDPSRV,3WebClient,4NLA,3LMHosts,4AppMgmt,3CryptSvc,3HidServ,3HTTPFilter,3NetDDE,4NetDDEdsdm,4ProtectedStorage,3ScardSvr,3TapiSrv,3TrkWks,4UPS,3hkmsvc,3LanmanWorkstation,3RemoteAccess,3NetLogon,3[Tweaks]Boot and Shutdown-Auto-Kill hung applications immediatelyBoot and Shutdown-Auto-Kill hung services immediatelyBoot and Shutdown-Disable automatic restart on System FailureDesktop-My Computer icon-ShowDesktop-My Documents icon-ShowDesktop-Recycle Bin icon-ShowExplorer-Advanced Search: preconfigure optionsExplorer-Associate additional file types with NotepadExplorer-Classic Control PanelExplorer-Disable Beep on errorsExplorer-Disable Prefix: Shortcut toExplorer-Disable Web Files and Folders connectionExplorer-Display the contents of system foldersExplorer-Recycle Bin: allow to rename and deleteExplorer-Remove Send To on context menuExplorer-Show extensions of known file-typesExplorer-Show hidden files and foldersExplorer-Show Map Network Drives buttons in Explorer barExplorer-Show protected operating system filesExplorer-Show Statusbar in all windowsExplorer-Show the full path in the Address BarInternet Explorer-Disable information bar when popup is blockedInternet Explorer-Disable Internet Explorer link creationInternet Explorer-Disable Market Place bookmarkInternet Explorer-Disable Media Player 6.4 created bookmarksInternet Explorer-Disable Outlook Express link creationInternet Explorer-Disable sound when popup is blockedInternet Explorer-Enable Google URL-SearchInternet Explorer-Set Homepage-www.google.comInternet Explorer-Set IE-Cache limit to-20 MBInternet Explorer-Set Internet Explorer to accept 10 connects at a timeNetwork-Disable automatic search for network folders and printersNetwork-Disable restoring mapped network drives on logonNetwork-Disable Simple File SharingPerformance-Disable Last accessed Timestamp on filesPerformance-Disable Optimize harddisk when idlePerformance-Disable Tracking of Broken Shortcut LinksPerformance-Disable Warn on low disk spacePerformance-Do not cache thumbnailsPerformance-Processor scheduling-ProgramsPerformance-Run 16-bit Windows applications in a separate processPerformance-Speed-up Access to AVI Media FilesPrivacy-Disable Driver Update Internet promptPrivacy-Remove AlexaSecurity-Always show Updates under SoftwareStart Menu-Disable Highlight newly installed programsStart Menu-Do not use Personalized MenusStart Menu-My Network Places-Display as a linkStart Menu-Reduce popup delayStart Menu-Remove Windows Catalog shortcutStart Menu-Scroll ProgramsTaskbar-Disable Hide inactive iconsTaskbar-Disable Language-BarTaskbar-Hide Volume Control Icon in System TrayTaskbar-Lock the Taskbar-YesVisual Effects-Animate windows when minimizing and maximizing-DisableVisual Effects-Combo box animation-DisableVisual Effects-Cursor shadow-EnableVisual Effects-Display mouse pointer trails-DisableVisual Effects-Fade out selection-DisableVisual Effects-Gradient captions in windows-EnableVisual Effects-Keyboard shortcut underline-EnableVisual Effects-Menu animation-DisableVisual Effects-Menu shadows-EnableVisual Effects-Menu style-NormalVisual Effects-Show translucent selection rectangle-EnableVisual Effects-Show window contents while dragging-EnableVisual Effects-Slide taskbar buttons-DisableVisual Effects-Smooth edges of screen fonts-StandardVisual Effects-Smooth-scroll list boxes-EnableVisual Effects-Tooltip animation-DisableVisual Effects-Use a background image for each folder type-DisableVisual Effects-Use drop shadows for icon labels on the desktop-EnableWindows Media Player-Accept Privacy StatementWindows Media Player-Disable automatic codec downloadWindows Media Player-Disable metadata retrievalWindows Media Player-Disable MRUWindows Media Player-Disable silent acquisitionWindows Media Player-Disable starting with Media GuideWindows Media Player-Do not show anchor in Design modeWindows Media Player-Enhanced privacy settingsWindows Media Player-Optimize fullscreen mode behaviorWindows Media Player-Remove all context menu entriesWindows Media Player-Zoom video to window size[Unattended]UnattendMode = 1ComputerType = AutomaticHibernationNoFirewallOffCustomLocalesResolution = 1024x768BitsPerPel = 32 bit (True Color)DisableSRestoreMaximumDataStorePercentOfDisk = 12RestorePointLife = 30DesktopTheme = Luna Royale|Luna Royale Black|NormalDataExecProt = 4AutoUpdates = 4AutoUDay = 5AutoUHour = 15ProgFilesPath = "\Archivos de programa"[DesktopThemes]C:\WINDOWS\Resources\Themes\Luna.themeC:\WINDOWS\Resources\Themes\Windows Classic.themeC:\WINDOWS\Resources\Themes\Luna Royale\Coloured Flag\Themes\Windows XP Luna Royale.Theme[NetAdapter1]connname = ""macaddress = ""ipaddress = "192.168.0.1"subnetmask = "255.255.255.0"defaultgateway = ""dnsserver1 = ""dnsserver2 = ""winsserver = ""netbiossetting = "0"ipxnetworknumber = "00000000"ipxnetworkframetype = "0xFF"[NetAdapter2]connname = ""macaddress = ""ipaddress = "192.168.0.2"subnetmask = "255.255.255.0"defaultgateway = ""dnsserver1 = ""dnsserver2 = ""winsserver = ""netbiossetting = "0"ipxnetworknumber = "00000000"ipxnetworkframetype = "0xFF"[GuiRunOnce][Drivers][Hotfixes]C:\Documents and Settings\Administrador\Mis documentos\HOTFIXES\NEW\wmp11-windowsxp-x86-ES-ES.exeC:\Documents and Settings\Administrador\Mis documentos\HOTFIXES\NEW\IE7-WindowsXP-x86-esn.exeC:\Documents and Settings\Administrador\Escritorio\ProgramAddons 7-Zip 4.57.cabC:\Documents and Settings\Administrador\Escritorio\ProgramAddons K-Lite Codec Pack Basic 3.8.0.cabBasically, I've removed some Windows components that I don't use, tweaked some settings, added a visual Style, added IE7 and WMP11, 7Zip and a Codec Pack.Here's my WINNT.SIF:; Generated by nLite 1.4.8[Data]AutomaticUpdates="No"Autopartition=0MsDosInitiated=0UnattendedInstall="Yes"[Unattended]UnattendMode=FullUnattendedUnattendSwitch="Yes"OemPreinstall="Yes"OemSkipEula="Yes"FileSystem=*WaitForReboot="No"NoWaitAfterTextMode=1NoWaitAfterGUIMode=1DriverSigningPolicy=IgnoreNonDriverSigningPolicy=IgnoreHibernation="No"[SetupData]OSLoadOptionsVar="/noexecute=alwaysoff"[Display]Xresolution=1024Yresolution=768BitsPerPel=32Autoconfirm=1[SystemRestore]DisableSR=1CreateFirstRunRp=0[GuiUnattended]AdminPassword=*EncryptedAdminPassword=NoAutoLogon=YesAutoLogonCount=1TimeZone=070OEMSkipRegional=1OemSkipWelcome=1[Shell]CustomDefaultThemeFile="%WinDir%\Resources\Themes\Windows XP Luna Royale.Theme"[Components][UserData]ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"ComputerName=WINXTFullName="Usuario"OrgName="Windows XT"[RegionalSettings]LanguageGroup=1SystemLocale="0c0a"UserLocale="0c0a"UserLocale_DefaultUser="0c0a"InputLocale="0c0a:0000040a"InputLocale_DefaultUser="0c0a:0000040a"[Networking]InstallDefaultComponents="Yes"[WindowsFirewall]Profiles=WindowsFirewall.TurnOffFirewall[WindowsFirewall.TurnOffFirewall]Mode=0[Identification]JoinWorkgroup="LINKSYS"[GuiRunOnce]"%systemdrive%\install\BATCH.CMD"Most of it is generated by nLite, what I added was AutoLogon=Yes, Autoconfirm=1, UnattendSwitch=1, OEMSkipWelcome=1, and all the [GuiRunOnce] section.Here's the contents of the batch file (BATCH.CMD, it's located in \I386\$OEM$\$1\install)@echo offtitle Instalacion Desatendida - Windows XTecho.echo Instalando .NET Framework...start /wait %systemdrive%\install\DOTNETAIO.EXEecho.echo Removiendo usuario creado por .NET Framework...net user aspnet /deleteecho.echo Optimizando Registro...REGEDIT /S %systemdrive%\install\TWEAKS.REGecho.echo Limpiando menú Inicio...RD /S /Q "%systemdrive%\Documents and Settings\Administrador\Menú Inicio\Programas\Accessorios"DEL /F /S /Q "%systemdrive%\Documents and Settings\All Users\Menú Inicio\Configurar acceso y programas predeterminados.lnk"ATTRIB +H "%systemdrive%\Documents and Settings\Administrador\Menú Inicio\Programas\Inicio"EXITHere is the contents of the TWEAKS.REG file (it's in the same directory as the batch)Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\7-Zip] "Lang"="es"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]"NoInternetOpenWith"="dword:00000000"[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{4C5DB0D2-1229-48F8-A00E-99AE13FE4449}]"(Predeterminado)"="Google""DisplayName"="Google""URL"="http://www.google.com/search?q={searchTerms}&rls={referrer:source?}"For some reason, when the GUI part of the installation finishes and the PC reboots, I get an error saying that the batch file could not be found. What am I doing wrong? OEMPreinstall is enabled but for some reason I think it's not copying the files...NOTE: I'm testing this on Virtual PC 2007, but I doubt this is the problem.Thanks in advance UPDATE: I've just realized that the OEM folder was inside the I386 folder...that's probably it, give me some time and I'll try it again :S Sorry for posting a useless thread xD Edited August 19, 2008 by Rodox
Guest Posted August 19, 2008 Posted August 19, 2008 (edited) I'm going to assume you're installing from CD. In which case, $OEM$ should be located outside I386, parallel to it, as shown on the following MSFN reference page. Your BAT file is not found because it is not copied, because $OEM$ is in the wrong place. MSFN's Unattended Windows : $OEM$ Distribution FoldersEDIT: Got it in one. Edited August 19, 2008 by 5eraph
Rodox Posted August 19, 2008 Author Posted August 19, 2008 (edited) That's exactly what I realized when I made the thread xD That's what I get for not RTFM fully I'll at least try to make it useful Another question...In the TWEAKS.REG file, I included an edit to make Google the default search engine for IE7...but apparently, the folder where the key is located changes with each Windows installation (at least it's different on my PC than on the virtual machine)...is there any other way to change this?Thanks EDIT: Should this do the trick?[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Google]"(Predeterminado)"="Google""DisplayName"="Google""URL"="http://www.google.com/search?q={searchTerms}&rls={referrer:source?}""SortIndex"="dword:00000005" Edited August 19, 2008 by Rodox
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