Jump to content

RunOnceEX doesn't work


 Share

Recommended Posts

OK.... I have made my own XPCD, setup all the things to be installed from bit n' pieces off this site and I try installing (within virtualPC) and it installs xp and my icons and skin but forgets the rest: applications, regtweaks and cursors.

So far it seems that it does go through the runonceex.cmd (or it wouldnt use my icons) but the apps aren't installed and regtweaks arn't either... can someone help?? I'll only post the files if asked.

Link to comment
Share on other sites


Winnt.sif

[Data]MsDosInitiated = 0

UnattendedInstall = Yes

[unattended]

UnattendMode = FullUnattended

UnattendSwitch = Yes

OemPreinstall = Yes

OemSkipEula = Yes

FileSystem = *

WaitForReboot = No

TargetPath = "\Windows"

DriverSigningPolicy = Ignore

NonDriverSigningPolicy = Ignore

Hibernation = No

[systemFileProtection]

SFCQuota = 0

[systemRestore]

MaximumDataStorePercentOfDisk = 5

[GuiUnattended]

AutoLogon = Yes

AdminPassword = *

TimeZone = 255

OEMSkipRegional = 1

OemSkipWelcome = 1

[Display]

              BitsPerPel=32

              Xresolution=1024

              Yresolution=768

              Vrefresh=60

[userData]

ProductKey = "0000-0000-0000-0000-0000"

ComputerName = "System001"

FullName = "Jon Doe"

[RegionalSettings]

Language = 0C09

[identification]

JoinWorkgroup = MSHOME

[shell]

            CustomDefaultThemeFile = "%WinDir%\Resources\Themes\SpaceMilk.theme"

[GuiRunOnce]

            %systemdrive%\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%\005 /VE /D "Mozilla Firefox 0.9.3" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\firefox\Firefox_Deployment.exe /S" /f

REG ADD %KEY%\010 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Acrobat\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\"" /f

REG ADD %KEY%\015 /VE /D "LeechGet 2004" /f

REG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\LeechGet\LeechGet2004.exe /SILENT" /f

REG ADD %KEY%\015 /V 2 /D "%systemdrive%\Install\pskill\sleep.exe /5" /f

REG ADD %KEY%\015 /V 3 /D "%systemdrive%\Install\pskill\pskill LeechGet.exe" /f

REG ADD %KEY%\020 /VE /D "Windows Media Player 10" /f

REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\WMP10\mp10setup.exe /Q:A /R:N /c:"setup_wm.exe /Q /R:N /NoPID /DisallowSystemRestore" /S" /f

REG ADD %KEY%\020 /V 2 /D "REGEDIT /S %systemdrive%\install\WMP10\WMP10mods.reg" /f

REG ADD %KEY%\025 /VE /D "Sun Java 1.4.2" /f

REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Java\j2re-1_4_2_05-windows-i586-p.exe /S /V/QN" /f

REG ADD %KEY%\025 /V 2 /D "REGEDIT /S %systemdrive%\install\Java\Javamods.reg" /f

REG ADD %KEY%\030 /VE /D "Agnitum Outpost Firewall PRO v2.1" /f

REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Outpost\OutpostProInstall.exe /S REBOOT=REALLYSUPPRESS" /f

REG ADD %KEY%\035 /VE /D "IZArc 3.4.1.6" /f

REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\IZArc\izarc.exe /qb" /f

REG ADD %KEY%\035 /V 2 /D "REGEDIT /S %systemdrive%\install\IZArc\IZArcskin.reg" /f

REG ADD %KEY%\040 /VE /D "Nero Burning ROM 6.3" /f

REG ADD %KEY%\040 /V 2 /D "%systemdrive%\install\Nero\Nero63120.exe /SILENT /NOREBOOT /SN=0000-0000-0000-0000-0000 /WRITE_SN" /f

REG ADD %KEY%\045 /VE /D "TweakUI Powertoy" /f

REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %systemdrive%\install\TweakUI\tweakui.reg" /f

REG ADD %KEY%\050 /VE /D "Kaspersky Anti Virus 5" /f

REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\KAV5\KAV5.exe /S" /f

REG ADD %KEY%\050 /V 2 /D "REGEDIT /S %systemdrive%\install\KAV5\register.reg" /f

REG ADD %KEY%\055 /VE /D "Ad-Aware SE Personal Edition" /f

REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\AdAware\aawsepersonal.exe /S" /f

REG ADD %KEY%\055 /V 2 /D "%systemdrive%\Install\pskill\sleep.exe /5" /f

REG ADD %KEY%\055 /V 3 /D "%systemdrive%\Install\pskill\pskill hh.exe" /f

REG ADD %KEY%\055 /V 4 /D "%systemdrive%\Install\pskill\pskill Ad-Aware.exe" /f

REG ADD %KEY%\060 /VE /D "QuickTime Alternative" /f

REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\QuickTime\quicktimealt134.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\065 /VE /D "Open Office 1.1.2" /f

REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\OpenOffice\setup.exe -r %systemdrive%\install\OpenOffice\response.txt" /f

REG ADD %KEY%\065 /V 2 /D "REGEDIT /S %systemdrive%\install\OpenOffice\OOorg.reg" /f

REG ADD %KEY%\065 /V 3 /D "REGEDIT /S %systemdrive%\install\OpenOffice\OOorgUninstall.reg" /f

REG ADD %KEY%\075 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%\075 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\080 /VE /D "Importing Icon Settings" /f

REG ADD %KEY%\080 /V 1 /D "REGEDIT /S %systemdrive%\install\icons.reg" /f

REG ADD %KEY%\085 /VE /D "Importing Fonts" /f

REG ADD %KEY%\085 /V 1 /D "REGEDIT /S %systemdrive%\install\fonts.reg" /f

REG ADD %KEY%\090 /VE /D "Cleaning Up and Rebooting" /f

REG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

I did have the runonceex.cmd in the $OEM$ dir but that didn't work so it's now in the $1 dir....

Also you posted: oempreinstall=yes I have oempreinstall = yes is that an issue?

get it

huh?

Link to comment
Share on other sites

12. Very often we see meaningless subjects in topic title. They give no clue of what the posts are all about. For example:

- Oh no!

- Help

- I'm mad

- Please help

- Question

- I need your help

- Hmmmm ....

This should be avoided. Users should enter something more specific in topic title so that it is easier for others to help.

A few good examples:

- Strange problem with DirectX9b redist

- RunOnceEx install problem (double installation)

- Change Internet Explorer's Icon back to default

http://www.msfn.org/board/index.php?showtopic=18408

No capitals in topic title either!

Link to comment
Share on other sites

cleanup.cmd

cmdow @ /HID

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."

net user aspnet /delete

COPY /Y "%systemdrive%\install\**filere moved**" "%systemdrive%\Program Files\Agnitum\Outpost Firewall\"

COPY /Y "%systemdrive%\install\LeechGet\**file removed**" "%systemdrive%\Program Files\LeechGet 2004\"

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"

DEL "%systemroot%\*.bmp"

DEL "%systemroot%\system32\dllcache\*.scr"

DEL "%systemroot%\system32\*.scr"

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"

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

DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

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

DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"

DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"

DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"

DEL "%AllUsersProfile%\Desktop\Alcohol 120%.lnk"

RD /S /Q %systemdrive%\Firefox

RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"

RD /S /Q %systemdrive%\drivers\

RD /S /Q %systemdrive%\install\

EXIT

prepare..... i dont have. :/ i'll look into that. didn't see it in the list.

Astalavist.... sorry about the title. wont do that again. just PM me about these things as many threads also get clogged up with admin corrections too

** Edit ** I just ran the runonceex.cmd and the only issues were the "too many paramaters on acrobat and mp10. help here will also be great. :)

Link to comment
Share on other sites

IF you haven't figured out what's wrong. Restart the virtual Machine again. THat should start the RunOnceEX. If you have and all that's wrong is switches.....

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Acrobat\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\"" /f

should be

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Acrobat\AdbeRdr60_enu_full.exe -p\"-s /v\"/qn\"\"" /f

You had nested quotes without escaping them.

REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\WMP10\mp10setup.exe /Q:A /R:N /c:"setup_wm.exe /Q /R:N /NoPID /DisallowSystemRestore" /S" /f

should be

REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\WMP10\mp10setup.exe /Q:A /R:N /c:\"setup_wm.exe /Q /R:N /NoPID /DisallowSystemRestore\" /S" /f

I believe. Again, nested quotes not escaped.

FYI- It was Aaron who told you about the title :P Not Astalavista. Also, it is better to post the problem on the board rather then PM, simply because obviously people don't read ALL the rules, and the posts serve as little helpful reminders.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...