Jump to content

werid cd runonceex problems


Recommended Posts

hello, I am remaking mu unatended xp cd. No matter what i try the runonceex wont work. always pops up that it cant find the file

here is setup

blank CD.txt on root of disk

$oem$ folder setup

in oem folder is

cmdlines.txt in cmdlines.txt is

[COMMANDS]

"RunOnceEx.cmd"

in oem folder is

RunOnceEx.cmd in RunOnceEx.cmd is

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:\CD.txt SET CDROM=%%i:

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

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

REG ADD %KEY%\001 /VE /D "Flash Player & Shockwave" /f

REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\Adobe\Install.bat" /f

REG ADD %KEY%\002 /VE /D "Dotnet FrameWork" /f

REG ADD %KEY%\002 /V 1 /D "%CDROM%\Software\DotNet\Install.bat" /f

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

REG ADD %KEY%\003 /V 1 /D "%CDROM%\Software\cleanup.cmd" /f

EXIT

here is my winnt.sif file

;SetupMgrTag

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

AutomaticUpdates=yes

[unattended]

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=YES

TargetPath=\WINDOWS

Repartition=No

UnattendSwitch="yes"

DriverSigningPolicy=Ignore

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=15

OemSkipWelcome=1

[userData]

ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx

FullName=" "

OrgName=""

ComputerName=Computer

[Display]

BitsPerPel=16

Xresolution=1024

YResolution=768

Vrefresh=60

[TapiLocation]

CountryCode=1

AreaCode=602

[RegionalSettings]

LanguageGroup=1

[identification]

JoinWorkgroup=MSHOME

[Networking]

InstallDefaultComponents=Yes

[Components]

msmsgs=off

msnexplr=off

beside the key is there anything wrong?

Link to comment
Share on other sites


$oem$ folder setup

in oem folder is

<snip>

in oem folder is

<snip>

Are you using a directory named oem?

You should have something like this!

|I386
|
'$OEM$
|
|$1
| |Install
| |
| 'Drivers
|
|$$
| 'System32
|
|$Docs
|
|$Progs
|
|cmdlines.txt
'RunOnceEx.cmd

Link to comment
Share on other sites

$oem$ folder setup

in oem folder is

<snip>

in oem folder is

<snip>

Are you using a directory named oem?

You should have something like this!

|——I386
|
'——$OEM$
     |
     |——$1
     | |——Install
     | |
     | '——Drivers
     |
     |——$$
     | '——System32
     |
     |——$Docs
     |
     |——$Progs
     |
     |——cmdlines.txt
     '——RunOnceEx.cmd

thats exactly how i have it. Will also try with 8.3 names

Link to comment
Share on other sites

You could try some error trapping in your batch file!

Replace this:

|I386
|
'$OEM$
| |
| |$1
| | |Install
| | |
| | 'Drivers
| |
| |$$
| | 'System32
| |
| |$Docs
| |
| |$Progs
| |
| |cmdlines.txt
| 'RunOnceEx.cmd
|
'Software
|
|Adobe
| |
| 'Install.bat
|
|DotNet
| |
| 'Install.bat
|
'cleanup.cmd

Link to comment
Share on other sites

The only thing I can think of, based on you having shown us the entire content of the RunOnceEx.cmd file is that the script doesn't like the ampersand in the title of your first subkey.

Try changing "Flash Player & Shockwave"

to "Flash Player and Shockwave"

and see if that helps!

Then if you're still getting an error flash up before it exits try replacing

EXIT

with

Pause

Link to comment
Share on other sites

show us the contents of the batch files you run. I would imagine now that the runonce is executing something is fouled up in one of the install.bat files.
That shouldn't happen; during the installation all that happens is that the entries are added to the RunOnceEx key. The install.bat files aren't run until first login.
Link to comment
Share on other sites

adobe batch file

@ECHO OFF

ECHO Adobe Flash Player..

START /WAIT MSIEXEC /I "install_flash_player_10_active_x.msi" ALLUSERS=TRUE REBOOT=SUPPRESS /QB

ECHO Adobe Shockwave Player..

START /WAIT MSIEXEC /I "sw_lic_full_installer.MSI" ALLUSERS=TRUE REBOOT=SUPPRESS /QB

dotnet batch file

dotnetfx1.exe /Q /C:"install.exe /Q"

dotnetfx2.exe /Q /C:"install.exe /Q"

dotnetfx3.exe /q /norestart

Link to comment
Share on other sites

op said 'batch file popped up', thought we were to the execution portion of the evening :( Are the keys posting to the reg?

keys did post to the registry. I downloaded a untouched xp pro sp3 cd and I am trying it there .

So far it seems to work except it doesn't install the programs. still checking things out on it. will post back later if i narrow anything down.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...