Jump to content

Recommended Posts

Posted

Hello

Okey i have this problem now!

When trying to install everything seems fine until its time for The Applications install post and Cleanup process.

When Windows is trying to install the updates: Framework ASP, languagepack, High-Mat and Media Connect it says it can´t install becouse i dont have Admin rights.

And then later when its time for the Cleanup.cmd procces it hangs!

Here are my files:

---------------------------------------------------------

RunOnceEx.cmd: (in %OEM% dir)

cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Windows Updates & Hotfixes" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\Applications\Framework_ASP\KB886903.exe /Q" /f
REG ADD %KEY%\001 /V 2 /D "%systemdrive%\install\Applications\Framework_SWE\langpack.msi /qb" /f
REG ADD %KEY%\001 /V 3 /D "%systemdrive%\install\Applications\High-mat\HMTCDWizard.msi /qb" /f
REG ADD %KEY%\001 /V 4 /D "%systemdrive%\install\Applications\WMC\wmcsetup.exe /Q:A /R:N" /f

REG ADD %KEY%\002 /VE /D "Avant Browser v10.0 Build 168" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\Applications\Avant\absetup.exe /S" /f

REG ADD %KEY%\003 /VE /D "QuickTime Alternative v1.41" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\Applications\QuickTimeAlt\quicktimealt141.exe /VERYSILENT /SP- /DIR="%Program Files%\QuickTime Alt\" /COMPONENTS=qt,qt\codec,qt\directshow,qt\plugins,qt\browser /NORESTART

REG ADD %KEY%\003 /VE /D "Real Alternative v1.37" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\Applications\RelAlt\realalt.exe /VERYSILENT /SP- /DIR="%Program Files%\Real Alt\" /COMPONENTS=real,real\codec,real\directshow,real\browser /NORESTART

REG ADD %KEY%\004 /VE /D "WinAmp v5.092" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\Applications\Winamp\Winamp5092.msi /qb INI="%systemdrive%\install\Application\Winamp\winamp.ini"

REG ADD %KEY%\005 /VE /D "WinRAR v3.50 b3" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\Winrar\wrar35b3sw.exe /S" /f
REG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\Applications\Winrar\reg.cmd" /f

REG ADD %KEY%\006 /VE /D "AC3Filter v0.70b" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\install\Applications\Ac3filter\ac3filter_0_70b.exe /S" /f

REG ADD %KEY%\007 /VE /D "ffdshow v.2004.10.12" /f
REG ADD %KEY%\007 /V 1 /D "%systemdrive%\install\Applications\ffdshow\ffdshow.exe /S" /f

REG ADD %KEY%\008 /VE /D "Nero Burning ROM v6.3.0.3" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\install\Applications\Nero\Nero6303.exe /SILENT /NOREBOOT /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /WRITE_SN" /f

REG ADD %KEY%\009 /VE /D "Diskeeper Pro 9 + 9.0.524.0 Update" /f
REG ADD %KEY%\009 /V 1 /D "%systemdrive%\install\Applications\Diskeeper9\Setup.exe /S" /f
REG ADD %KEY%\009 /V 2 /D "%systemdrive%\install\Applications\Diskeeper9\Update.exe /S" /f

REG ADD %KEY%\099 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

useraccounts.cmd: (in %OEM% dir)

net user USERNAME PASSWORD /Add
net localgroup "Administratörer" /Add USERNAME
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

cmdlines.txt: (in %OEM% dir)

[COMMANDS]
"REGEDIT /S tweaks.reg"
"RunOnceEx.cmd"
"useraccounts.cmd"

autologon.reg: (in %OEM% dir)

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="USERNAME"
"DefaultPassword"="PASSWORD"
"AutoAdminLogon"="1"

cleanup.cmd: (in %OEM%\%1\Install\ dir)

cmdow @ /HID
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete

RD /S /Q "%AllUserProfile%\Delade dokument\"
RD /S /Q "%AllUserProfile%\Application Data\Microsoft\Media Index\"
DEL "%AllUserProfile%\Application Data\Microsoft\User Account Pictures\Default Pictures\*.*"

DEL "%UserProfile%\Mina Dokument\Min musik\*.*"
DEL "%UserProfile%\Mina Dokument\Mina bilder\*.*"
DEL "%UserProfile%\SendTo\E-postmottagare.MAPIMail"
DEL "%UserProfile%\SendTo\Komprimerad mapp.ZFSendToTarget"
DEL "%UserProfile%\SendTo\Mina dokument.mydocs"
DEL "%UserProfile%\SendTo\Skrivbord (skapa genväg).DeskLink"

RD /S /Q "%ProgramFiles%\ComPlus Applications\"
RD /S /Q "%ProgramFiles%\microsoft frontpage\"
RD /S /Q "%ProgramFiles%\WindowsUpdate\"
RD /S /Q "%ProgramFiles%\xerox\"

DEL "%CommonProgramFiles%\Microsoft Shared\Stationary\*.*"

DEL "%systemroot%\*.bak"
DEL "%systemroot%\*.bmp"
DEL "%systemroot%\*.old"
DEL "%systemroot%\*.tmp"
DEL "%systemroot%\clock.avi"
DEL "%systemroot%\control.ini"
DEL "%systemroot%\desktop.ini"
DEL "%systemroot%\win.ini"
DEL "%systemroot%\OEWABLog.txt"
DEL "%systemroot%\setuplog.txt"

RD /S /Q "%systemroot%\$hf_mig$\"
RD /S /Q "%systemroot%\addins\"
RD /S /Q "%systemroot%\Config\"
RD /S /Q "%systemroot%\Connection Wizard\"
RD /S /Q "%systemroot%\Cursors\"

DEL "%systemroot%\Driver Cache\i386\drivers.cab"
DEL "%systemroot%\Driver Cache\i386\sp2.cab"

RD /S /Q "%systemroot%\Help\Tours\"
DEL "%systemroot%\system32\tourstart.exe"

DEL "%systemroot%\inf\*.PNF"
DEL "%systemroot%\inf\mdm*.inf
DEL "%systemroot%\Media\*.*"
RD /S /Q "%systemroot%\msapps\"
RD /S /Q "%systemroot%\mui\"
RD /S /Q "%systemroot%\RegisteredPackages\"
DEL "%systemroot%\SoftwareDistribution\Download\*.*"
DEL "%systemroot%\Temp\*.*"
DEL "%systemroot%\Web\Wallpaper\*.*"

RD /S /Q "%systemroot%\system32\3com_dmi\"
RD /S /Q "%systemroot%\system32\1025\"
RD /S /Q "%systemroot%\system32\1028\"
RD /S /Q "%systemroot%\system32\1031\"
RD /S /Q "%systemroot%\system32\1037\"
RD /S /Q "%systemroot%\system32\1041\"
RD /S /Q "%systemroot%\system32\1042\"
RD /S /Q "%systemroot%\system32\1054\"
RD /S /Q "%systemroot%\system32\2052\"
RD /S /Q "%systemroot%\system32\3076\"
RD /S /Q "%systemroot%\system32\dhcp\"
DEL "%systemroot%\system32\dllcache\*.*"
RD /S /Q "%systemroot%\system32\DirectX\Dinput\"
RD /S /Q "%systemroot%\system32\export\"
RD /S /Q "%systemroot%\system32\inetsrv\"
RD /S /Q "%systemroot%\system32\ShellExt\"
RD /S /Q "%systemroot%\system32\SoftwareDistribution\"
RD /S /Q "%systemroot%\system32\xircom\"

RD /S /Q "%UserProfile%\Favoriter\Länkar\"
DEL "%systemroot%\Favoriter\*.*"

DEL "%systemroot%\Start-meny\Program\Fjärrhjälp.lnk"
DEL "%systemroot%\Start-meny\Program\Outlook Express.lnk"
DEL "%systemroot%\Start-meny\Program\Tillbehör\Adressbok.lnk"
DEL "%systemroot%\Start-meny\Program\Tillbehör\Guiden Programvarukompatibilitet.lnk"
DEL "%systemroot%\Start-meny\Program\Tillbehör\Synkronisera.lnk"
DEL "%systemroot%\Start-meny\Program\Tillbehör\Upptäck Windows XP.lnk"

DEL "%UserProfile%\Lokala inställningar\Temp\*.*"

RD /S /Q "%systemdrive%\Drivers\"
RD /S /Q "%systemdrive%\Install\"

@echo off
pushd %systemroot%
for %%a in ("*.log") do if %%a neq windowsupdate.log del /q "%%~a"
popd
goto :eof

EXIT

Winnt.sif: (in I386 dir)

;SetupMgrTag
[Data]
   MsDosInitiated="0"
   AutoPartition=0
   UnattendedInstall="Yes"

[Unattended]
   OemPreinstall=Yes
   FileSystem=*
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   TargetPath=\WINDOWS
   ProgramFilesDir=C:\Program
   CommonProgramFilesDir="C:\Program\Delade filer"

[GuiUnattended]
   AdminPassword="admin"
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=110
   OemSkipWelcome=1

[UserData]
   ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
   FullName="NAME"
   OrgName="ORG NAME"
   ComputerName=COMPUTERNAME

[Display]
   BitsPerPel=32
   Xresolution=1280
   YResolution=1024
   Vrefresh=85

[TapiLocation]
   CountryCode=46
   AreaCode=031

[Identification]
   JoinWorkgroup=XXXXX

[Networking]
   InstallDefaultComponents=Yes

[GUIRunOnce]
command9 = "%SystemDrive%\D\BTS_DPs_finish.cmd"

Also i should say that i am using the SWEDISH version of windos XP SP2 if dir names and other names should matter!!!!

Thanx people!


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