Jump to content

Recommended Posts

Posted

here are my cmdlines.txt, RunOnceEx.cmd & cleanup.cmd files, i can't make the programs install to work, it seems like it doesn't even start the RunOnceEx commands. pls help me, i used the official guide (http://unattended.msfn.org/unattended.xp/) and some silent install guides i found over the internet. thanks.

cmdlines.txt:

[COMMANDS]
"RunOnceEx.cmd"

RunOnceEx.cmd:

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\002 /VE /D "Windows Live Messenger 9" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\wlm9.exe" /f

REG ADD %KEY%\001 /VE /D "Perfect Disk 9.00.76" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\perfectdisk.exe /s /v /qn" /f

REG ADD %KEY%\003 /VE /D "SMPlayer 0.6.6" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\smplayer.exe" /f

REG ADD %KEY%\004 /VE /D "Uninstall Tool 1.6.6" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\uninstall.exe /qb /norestart" /f

REG ADD %KEY%\005 /VE /D "Double Driver 2.1" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\driver.exe /qb /norestart" /f

REG ADD %KEY%\006 /VE /D "Quicksys RegDefrag 2.2" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\install\regdefrag.exe /qb /norestart" /f

REG ADD %KEY%\007 /VE /D "Subtitle Workshop 2.51" /f
REG ADD %KEY%\007 /V 1 /D "%systemdrive%\install\subworkshop.exe /qb /norestart" /f

REG ADD %KEY%\008 /VE /D "Vista Codec Package 5.1.0" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\install\vistacodex.exe /S /v/qn" /f

REG ADD %KEY%\009 /VE /D "BurnAware Free 2.2.3" /f
REG ADD %KEY%\009 /V 1 /D "%systemdrive%\install\burnaware.exe /qb /norestart " /f

REG ADD %KEY%\010 /VE /D "Daemon Tools Lite" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\daemontools.exe /S /D=%systemdrive%\$Progs\Daemon Tools\" /f

REG ADD %KEY%\011 /VE /D "NOD32 3.0.684" /f
REG ADD %KEY%\011 /V 1 /D "%systemdrive%\install\nod32.exe /silentmode" /f

REG ADD %KEY%\012 /VE /D "WinISO 5.3" /f
REG ADD %KEY%\012 /V 1 /D "%systemdrive%\install\winiso.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\012 /V 2 /D "taskkill /F /IM WinISO.exe" /f

REG ADD %KEY%\013 /VE /D "Firefox 3.0.3" /f
REG ADD %KEY%\013 /V 1 /D "%systemdrive%\install\firefox.exe -ms" /f

REG ADD %KEY%\014 /VE /D "Sun Java 6.11" /f
REG ADD %KEY%\014 /V 1 /D "%systemdrive%\install\java.exe /s /v/qn" /f
REG ADD %KEY%\014 /V 2 /D "REGEDIT /S %systemdrive%\install\RemoveSunJavaUpdateCheck.reg" /f

REG ADD %KEY%\015 /VE /D "7-Zip 4.64" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\7zip.exe /qb /norestart" /f

REG ADD %KEY%\016 /VE /D "Unlocker 1.87" /f
REG ADD %KEY%\016 /V 1 /D "%systemdrive%\install\unlocker.exe /s" /f

REG ADD %KEY%\017 /VE /D "Ad-Aware 2007 Pro 7.0.2.5" /f
REG ADD %KEY%\017 /V 1 /D "%systemdrive%\install\adaware.exe /silent" /f

REG ADD %KEY%\018 /VE /D "CCleaner 2.15.815" /f
REG ADD %KEY%\018 /V 1 /D "%systemdrive%\install\ccleaner.exe /S" /f

REG ADD %KEY%\019 /VE /D "CleanMem" /f
REG ADD %KEY%\019 /V 1 /D "%systemdrive%\install\cleanmem.exe /S" /f

REG ADD %KEY%\020 /VE /D "Flash Player" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\flashplayer.exe /S" /f

REG ADD %KEY%\021 /VE /D "JetAudio 7.18 Plus" /f
REG ADD %KEY%\021 /V 1 /D "%systemdrive%\install\jetaudio.exe -S -f1 %systemdrive%\install\jetaudio.iss" /f

REG ADD %KEY%\022 /VE /D "Mp3Tag 2.42" /f
REG ADD %KEY%\022 /V 1 /D "%systemdrive%\install\mp3tag.exe /S" /f

REG ADD %KEY%\023 /VE /D "AI Roboform" /f
REG ADD %KEY%\023 /V 1 /D "%systemdrive%\install\roboform.exe /silent" /f
REG ADD %KEY%\023 /V 2 /D "%systemdrive%\install\roboform1.exe /s" /f

REG ADD %KEY%\024 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\024 /V 1 /D "REGEDIT /S %systemdrive%\install\tweaks.reg" /f

REG ADD %KEY%\025 /VE /D "Importing Services Tweaks" /f
REG ADD %KEY%\025 /V 1 /D "REGEDIT /S %systemdrive%\install\services.reg" /f

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

EXIT

cleanup.cmd:

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

DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

DEL "%AllUsersProfile%\Start Menu\Programs\Windows Messenger.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\MSN.lnk"

DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"


RD /S /Q %systemdrive%\drivers\
RD /S /Q %systemdrive%\install\

EXIT


Posted (edited)

thx for the fast reply, here's my winnt.sif file, as you can see OemPreinstall="Yes", maybe it should be without "quotes"?

[Data]
Autopartition=1
MsDosInitiated=0
UnattendedInstall="Yes"
AutomaticUpdates="Yes"
FloppyLess=1

[Unattended]
UnattendMode=FullUnattended
OemPreinstall="Yes"
OemSkipEula="Yes"
TargetPath=\WINDOWS
FileSystem=*
UnattendSwitch="yes"
WaitForReboot="No"
DriverSigningPolicy=Ignore
OemPnPDriversPath="drivers\000_Net;drivers\001_hdc;drivers\002_MEDIA;drivers\003_display;drivers\004_Printer"
NoWaitAfterTextMode=1
NoWaitAfterGUIMode=1
Hibernation="No"
KeyboardLayout="US"

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=No
OEMSkipRegional=1
TimeZone=135
OemSkipWelcome=1

[UserData]
ProductKey="XXXX-XXXX-XXXX-XXXX-XXXX"
FullName="Yaniv"
OrgName="Home"
ComputerName=desktop

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

[Components]

[Shell]
CustomDefaultThemeFile ="%WinDir%\Resources\Themes\LE5.theme"

[RegionalSettings]
LanguageGroup=1,12
Language= "0409"

[Networking]
InstallDefaultComponents="Yes"

Edited by Bigyaa
Posted

Make sure your install folder is located here: $OEM$/$1/install, and that RunOnceEx.cmd and cmdlines.txt are in the $OEM$ folder.

Posted (edited)
Make sure your install folder is located here: $OEM$/$1/install, and that RunOnceEx.cmd and cmdlines.txt are in the $OEM$ folder.

they are. any other suggestions?

btw it copies the install dir to root but doesn't install the programs inside

Edited by Bigyaa
Posted (edited)

I don't know is this important, but you are using wrong numbering in first part:

REG ADD %KEY%\002 /VE /D "Windows Live Messenger 9" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\wlm9.exe" /f

REG ADD %KEY%\001 /VE /D "Perfect Disk 9.00.76" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\perfectdisk.exe /s /v /qn" /ff

You added first 002 and then 001. Maybe you should put this in order. Also, where do you put your cmdlines.txt and runonceex.cmd?

Cheers ;)

Edited by mara-
Posted
thx i didn't notice this.

cmdlines.txt and runonceex.cmd are in $OEM$ folder.

OK, maybe that will fix the problem. You placed cmdlines.txt and runonceex.cmd in good place. I compared mine working RunOnceEx.cmd with your and except the thing about ordering I mentioned, everything is fine. Also, one note. In my winnt.sif I don't have OemPreinstall at all, and RunOnceEx works fine.

Cheers ;)

Posted
OK, maybe that will fix the problem. You placed cmdlines.txt and runonceex.cmd in good place. I compared mine working RunOnceEx.cmd with your and except the thing about ordering I mentioned, everything is fine. Also, one note. In my winnt.sif I don't have OemPreinstall at all, and RunOnceEx works fine.

Cheers ;)

i tried without OemPreinstall=Yes and it doesn't work because my files are not copied to the HD, so RunOnceEx can't install them.

anyway i tried making only 1 entry with java install and it doesn't work either. HELP!!!

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 "Sun Java 6.11" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\java.exe /s /v/qn" /f
REG ADD %KEY%\001 /V 2 /D "REGEDIT /S %systemdrive%\install\RemoveSunJavaUpdateCheck.reg" /f

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

EXIT

Posted (edited)

Where did you placed your cmdow on your CD? Anyway, here is example of my working RunOnceEx which may help you. There is one difference. I don't copy my applications to HDD, I run it directly from a CD.

cmdow @ /HID
@Echo Off

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\i386\winnt.exe SET CDROM=%%i:

SET PP=%cdrom%\Apps\

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

REG ADD %KEY% /V TITLE /D "Finalizing installation - Installing necessary applications" /f

REG ADD %KEY%\001 /VE /D ".NET Framework V3.5 SP1 - Lite" /f
REG ADD %KEY%\001 /V 1 /D "%PP%010_dotNET35SP1-Lite.exe -ai" /f

EXIT

Cheers ;)

Edited by mara-
Posted

cmdow is in the right place (%OEM%/$$/System32)

i'll try the "from the disk" installation method maybe thats the root of all my problems.

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