Jump to content

nLite + GuiRunOnce problem...


Recommended Posts

Posted (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 3
Target = Windows XP Professional SP3 - 5.1.2600.5512 - Español - España (alfabetización internacional)

[Tasks]
Remove Components
Unattended Setup
Integrate Drivers
Hotfixes and Update Packs
Tweaks
Create a Bootable ISO
Options

[Components]
;# Applications #
Accessibility Options
Briefcase
ClipBook Viewer
Internet Games
WordPad
;# Drivers #
Tape drives
Toshiba DVD decoder card
;# Hardware Support #
Brother Devices
Iomega 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)
Pashto
Sirio (Siria)
Urdú
;Armenio
Armenio
;Báltico
Estonio
Letón
Lituano
;Chino simplificado
Chino (RPC)
Chino (Singapur)
;Chino tradicional
Chino (Taiwán)
Chino (Zona administrativa especial de Hong Kong)
Chino (Zona administrativa especial de Macao)
;Cirílico
Azerí (cirílico)
Bielorruso
Bosnio (cirílico, Bosnia-Herzegovina)
Búlgaro
Kazakh
Kyrgyz (Kirguizistán)
Macedonio (FYRO)
Mongol (Mongolia)
Ruso
Serbio (cirílico)
Serbio cirílico (Bosnia-Herzegovina)
Tatar
Ucraniano
Uzbek (cirílico)
;Coreano
Coreano
;Europa Central
Albanés
Bosnio latino (Bosnia-Herzegovina)
Checo
Croata
Croata (Bosnia-Herzegovina)
Eslovaco
Esloveno
Húngaro
Polaco
Rumano
Serbio (latín)
Serbio latino (Bosnia-Herzegovina)
;Europa Occidental y Estados Unidos
Afrikaans
Alemán (Alemania)
Alemán (Austria)
Alemán (Liechtenstein)
Alemán (Luxemburgo)
Alemán (Suiza)
Catalán
Danés
Españ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)
Euskera
Feroés
Filipino
Finlandés
Francés (Bélgica)
Francés (Canadá)
Francés (Francia)
Francés (Luxemburgo)
Francés (Mónaco)
Francés (Suiza)
Frisón
Galés
Gallego (España)
Indonesio
Inglé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és
Islandés
Italiano (Italia)
Italiano (Suiza)
Luxemburgués
Malayo (Brunei Darussalam)
Malayo (Malasia)
Maltés
Maorí
Mapudungun
Mohawk
Neerlandé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ánico
Sami 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 septentrional
Sueco
Sueco (Finlandia)
Swahili
Tswana
Xhosa
Zulú
;Georgiano
Georgiano
;Griego
Griego
;Hebreo
Hebreo
;Índico
Bengalí (India)
Gujarate (India)
Hindú
Kannada (India)
Konkani
Malayalam (India)
Marathi
Nepalí (Nepal)
Punjabi (India)
Sánscrito
Tamil
Telugu (India)
;Japonés
Japonés
;Tailandés
Persa
Tailandés
;Túrquico
Azerí (latín)
Turco
Uzbek (latín)
;Vietnamita
Vietnamita
;# Multimedia #
Intel Indeo codecs
Media Center
Music Samples
Old CDPlayer and Sound Recorder
Speech Support
;# Network #
Communication tools
MSN Explorer
Windows Messenger
;# Operating System Options #
.NET Framework
Blaster/Nachi removal tool
Desktop Cleanup Wizard
File and Settings Wizard
Help and Support
Search Assistant
Security Center
Tour
Zip Folders
;# Services #
Alerter
Error Reporting
Indexing Service
IPSEC Policy Agent
Messenger
Remote Registry
;# Directories #
DOCS
SUPPORT
VALUEADD
;# Compatibility #

[KeepFiles]
msconfig.exe

[RemoveFiles]
clock.avi
yahoo.bmp
swtchbrd.bmp

[Options]
ProfilesDir = "%SystemDrive%\Documents and Settings"
TargetPath = "WINDOWS"
temp_dir = %USERPROFILE%\Configuración local\Temp
AdvTweaks

[Patches]
TcpIp = 50
DoUxTheme
DoSFC

[Services2]
StiSvc,3
wuauserv,4
BITS,3
RSVP,4
seclogon,4
WZCSVC,3
ImapiService,3
SwPrv,3
NtmsSvc,3
srservice,4
TlntSvr,3
SSDPSRV,3
WebClient,4
NLA,3
LMHosts,4
AppMgmt,3
CryptSvc,3
HidServ,3
HTTPFilter,3
NetDDE,4
NetDDEdsdm,4
ProtectedStorage,3
ScardSvr,3
TapiSrv,3
TrkWks,4
UPS,3
hkmsvc,3
LanmanWorkstation,3
RemoteAccess,3
NetLogon,3

[Tweaks]
Boot and Shutdown-Auto-Kill hung applications immediately
Boot and Shutdown-Auto-Kill hung services immediately
Boot and Shutdown-Disable automatic restart on System Failure
Desktop-My Computer icon-Show
Desktop-My Documents icon-Show
Desktop-Recycle Bin icon-Show
Explorer-Advanced Search: preconfigure options
Explorer-Associate additional file types with Notepad
Explorer-Classic Control Panel
Explorer-Disable Beep on errors
Explorer-Disable Prefix: Shortcut to
Explorer-Disable Web Files and Folders connection
Explorer-Display the contents of system folders
Explorer-Recycle Bin: allow to rename and delete
Explorer-Remove Send To on context menu
Explorer-Show extensions of known file-types
Explorer-Show hidden files and folders
Explorer-Show Map Network Drives buttons in Explorer bar
Explorer-Show protected operating system files
Explorer-Show Statusbar in all windows
Explorer-Show the full path in the Address Bar
Internet Explorer-Disable information bar when popup is blocked
Internet Explorer-Disable Internet Explorer link creation
Internet Explorer-Disable Market Place bookmark
Internet Explorer-Disable Media Player 6.4 created bookmarks
Internet Explorer-Disable Outlook Express link creation
Internet Explorer-Disable sound when popup is blocked
Internet Explorer-Enable Google URL-Search
Internet Explorer-Set Homepage-www.google.com
Internet Explorer-Set IE-Cache limit to-20 MB
Internet Explorer-Set Internet Explorer to accept 10 connects at a time
Network-Disable automatic search for network folders and printers
Network-Disable restoring mapped network drives on logon
Network-Disable Simple File Sharing
Performance-Disable Last accessed Timestamp on files
Performance-Disable Optimize harddisk when idle
Performance-Disable Tracking of Broken Shortcut Links
Performance-Disable Warn on low disk space
Performance-Do not cache thumbnails
Performance-Processor scheduling-Programs
Performance-Run 16-bit Windows applications in a separate process
Performance-Speed-up Access to AVI Media Files
Privacy-Disable Driver Update Internet prompt
Privacy-Remove Alexa
Security-Always show Updates under Software
Start Menu-Disable Highlight newly installed programs
Start Menu-Do not use Personalized Menus
Start Menu-My Network Places-Display as a link
Start Menu-Reduce popup delay
Start Menu-Remove Windows Catalog shortcut
Start Menu-Scroll Programs
Taskbar-Disable Hide inactive icons
Taskbar-Disable Language-Bar
Taskbar-Hide Volume Control Icon in System Tray
Taskbar-Lock the Taskbar-Yes
Visual Effects-Animate windows when minimizing and maximizing-Disable
Visual Effects-Combo box animation-Disable
Visual Effects-Cursor shadow-Enable
Visual Effects-Display mouse pointer trails-Disable
Visual Effects-Fade out selection-Disable
Visual Effects-Gradient captions in windows-Enable
Visual Effects-Keyboard shortcut underline-Enable
Visual Effects-Menu animation-Disable
Visual Effects-Menu shadows-Enable
Visual Effects-Menu style-Normal
Visual Effects-Show translucent selection rectangle-Enable
Visual Effects-Show window contents while dragging-Enable
Visual Effects-Slide taskbar buttons-Disable
Visual Effects-Smooth edges of screen fonts-Standard
Visual Effects-Smooth-scroll list boxes-Enable
Visual Effects-Tooltip animation-Disable
Visual Effects-Use a background image for each folder type-Disable
Visual Effects-Use drop shadows for icon labels on the desktop-Enable
Windows Media Player-Accept Privacy Statement
Windows Media Player-Disable automatic codec download
Windows Media Player-Disable metadata retrieval
Windows Media Player-Disable MRU
Windows Media Player-Disable silent acquisition
Windows Media Player-Disable starting with Media Guide
Windows Media Player-Do not show anchor in Design mode
Windows Media Player-Enhanced privacy settings
Windows Media Player-Optimize fullscreen mode behavior
Windows Media Player-Remove all context menu entries
Windows Media Player-Zoom video to window size

[Unattended]
UnattendMode = 1
ComputerType = Automatic
HibernationNo
FirewallOff
CustomLocales
Resolution = 1024x768
BitsPerPel = 32 bit (True Color)
DisableSRestore
MaximumDataStorePercentOfDisk = 12
RestorePointLife = 30
DesktopTheme = Luna Royale|Luna Royale Black|Normal
DataExecProt = 4
AutoUpdates = 4
AutoUDay = 5
AutoUHour = 15
ProgFilesPath = "\Archivos de programa"

[DesktopThemes]
C:\WINDOWS\Resources\Themes\Luna.theme
C:\WINDOWS\Resources\Themes\Windows Classic.theme
C:\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.exe
C:\Documents and Settings\Administrador\Mis documentos\HOTFIXES\NEW\IE7-WindowsXP-x86-esn.exe
C:\Documents and Settings\Administrador\Escritorio\ProgramAddons 7-Zip 4.57.cab
C:\Documents and Settings\Administrador\Escritorio\ProgramAddons K-Lite Codec Pack Basic 3.8.0.cab

Basically, 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=0
MsDosInitiated=0
UnattendedInstall="Yes"

[Unattended]
UnattendMode=FullUnattended
UnattendSwitch="Yes"
OemPreinstall="Yes"
OemSkipEula="Yes"
FileSystem=*
WaitForReboot="No"
NoWaitAfterTextMode=1
NoWaitAfterGUIMode=1
DriverSigningPolicy=Ignore
NonDriverSigningPolicy=Ignore
Hibernation="No"

[SetupData]
OSLoadOptionsVar="/noexecute=alwaysoff"

[Display]
Xresolution=1024
Yresolution=768
BitsPerPel=32
Autoconfirm=1

[SystemRestore]
DisableSR=1
CreateFirstRunRp=0

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=No
AutoLogon=Yes
AutoLogonCount=1
TimeZone=070
OEMSkipRegional=1
OemSkipWelcome=1

[Shell]
CustomDefaultThemeFile="%WinDir%\Resources\Themes\Windows XP Luna Royale.Theme"

[Components]

[UserData]
ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
ComputerName=WINXT
FullName="Usuario"
OrgName="Windows XT"

[RegionalSettings]
LanguageGroup=1
SystemLocale="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 off
title Instalacion Desatendida - Windows XT

echo.
echo Instalando .NET Framework...
start /wait %systemdrive%\install\DOTNETAIO.EXE

echo.
echo Removiendo usuario creado por .NET Framework...
net user aspnet /delete

echo.
echo Optimizando Registro...
REGEDIT /S %systemdrive%\install\TWEAKS.REG

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

EXIT

Here 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 :thumbup

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 by Rodox

Posted (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 Folders

EDIT: Got it in one. :D

Edited by 5eraph
Posted (edited)

That's exactly what I realized when I made the thread xD That's what I get for not RTFM fully :D

I'll at least try to make it useful :P

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 :lol:

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 by Rodox

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