Jump to content

why my runonceex.cmd dont execute?


Recommended Posts

hi all

my unattended xp have cmdlines.txt and runonceex.cmd

i place "runonceex.cmd" and "useraccounts.cmd"in my cmdlines.txt but it was not execute the

runonceex.cmd but another one was executed (useraccounts.cmd)

here is my codes

winnt.sif

;SetupMgrTag

[Data]AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

AutomaticUpdates=yes

[unattended]

FileSystem=*

WaitForReboot="No"

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=yes

TargetPath=\WINDOWS

UnattendSwitch="yes"

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=160

OemSkipWelcome=1

[userData]

ProductID=-----------------------------

FullName="almas corporation"

OrgName="Almas CO"

ComputerName=*

[TapiLocation]

CountryCode=265

AreaCode=987

[RegionalSettings]

LanguageGroup=8787

InputLocale=0409:00000409,0429:00000429

[identification]

JoinWorkgroup=WORKGROUP

[Networking]

InstallDefaultComponents=Yes

[Components]

msmsgs=off

msnexplr=off

AutoUpdate = off

[Display]

AutoConfirm=0

[WindowsFirewall]

Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]

Mode = 0

runonceex.cmd

SetLocal enableextensions

SET CDROM=%~d0

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

REG ADD %KEY% /V TITLE /D "ALMAS INSTALLATION.........." /f

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

REG ADD %KEY%\003 /V 001 /D "%CDROM%\$OEM$\MEDIA.CMD" /f

REG ADD %KEY%\004 /VE /D "ACDSee 7.0 PowerPack Full" /f

REG ADD %KEY%\004 /V 001 /D "%CDROM%\$OEM$\soft\acd\ACD.msi /quiet /QB PIDKEY=--------------LICENSE_MODEL=Full" /f

REG ADD %KEY%\004 /V 003 /D "%CDROM%\$OEM$\acd.cmd" /f

REG ADD %KEY%\005 /VE /D "JetAudio 6" /f

REG ADD %KEY%\005 /V 001 /D "%CDROM%\$OEM$\soft\jet\jet.exe" /f

REG ADD %KEY%\006 /VE /D "winamp 5 full" /f

REG ADD %KEY%\006 /V 001 /D "%CDROM%\$OEM$\soft\winamp\winamp.msi /quiet xvideo=0 XNAME=--------------XKEY=-------------" /f

REG ADD %KEY%\007 /VE /D "Power DVD 6 FULL" /f

REG ADD %KEY%\007 /V 001 /D "%CDROM%\$OEM$\soft\dvd\dvd.exe" /f

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

REG ADD %KEY%\008 /V 001 /D "%CDROM%\$OEM$\SOFT\NERO\SETUPX.EXE /SN=---------------- /WRITE_SN /SILENT /NO_UI /NOREBOOT /NOLICENSE" /f

REG ADD %KEY%\008 /V 003 /D "%CDROM%\$OEM$\nero.cmd" /f

REG ADD %KEY%\009 /VE /D "Clone CD" /f

REG ADD %KEY%\009 /V 001 /D "%CDROM%\$OEM$\SOFT\CLONE\setup.exe /S" /f

REG ADD %KEY%\009 /V 003 /D "%CDROM%\$OEM$\clone.cmd" /f

REG ADD %KEY%\010 /VE /D "Yahoo Messenger 7 Final" /f

REG ADD %KEY%\010 /V 001 /D "%CDROM%\$OEM$\soft\YAHOO\YAHOO.exe /S " /f

REG ADD %KEY%\010 /V 002 /D "%CDROM%\$OEM$\yahoo.cmd" /f

REG ADD %KEY%\011 /VE /D "WINRAR" /f

REG ADD %KEY%\011 /V 001 /D "%CDROM%\$OEM$\soft\RAR\RAR.exe /S " /f

REG ADD %KEY%\012 /VE /D "PDF reader" /f

REG ADD %KEY%\012 /V 001 /D "%CDROM%\$OEM$\fox.cmd" /f

REG ADD %KEY%\013 /VE /D "ALMAS REGISTRY TWEAK Up.............." /f

REG ADD %KEY%\013 /V 001 /D "%CDROM%\$OEM$\REG.CMD " /f

REG ADD %KEY%\013 /V 003 /D "%CDROM%\$OEM$\1.CMD " /f

REG ADD %KEY%\013 /V 002 /D "%CDROM%\$OEM$\re.CMD " /f

endlocal

exit

cmdlines.txt

[

COMMANDS]

"useraccounts.cmd"

"RunOnceEx.cmd"

and error in setuperr.log after the setup is:

setup was unable to invoke external program runonceex.cmd because the

following error:

createprocess returned error 2(2).

any help would be great

thnaks

Edited by sarmad
Link to comment
Share on other sites


createprocess returned error 2 normally means a file is missing or wrong variables.

If I were you I would make sure all your programs are in the $OEM$ Folder.

Only add one program at a time in the RunOnceex.cmd

Also Some of the paths are SOFT and some are soft sorry I is picky!

Also if you have a test machine just execute the RunOncex.cmd and make sure that the reg entries have been made reboot and see if it installs ok.

Or change the location of the Software instead of installing from cd install from the drive $oem$\$1sotware then use a cleanup.cmd file to clean after it you do not wish the software to be on the machine.

Also can you not install Media Player from the svc.inf way?

And finally I would edit out your serials in future especially that I can see your using pirate software winamp 5! I am not having a go just don't want you to get a smacked bum.

If I can help with any Silent installs let me know

Link to comment
Share on other sites

Add command
pause

in first line of your first .cmd batch.

If you don't get the "pause" question, you have a problem elsewhere.

Without cmdlines.txt your cd works ?

hi

yes my cmdlines work with the useraccounts.cmd and create user

but when i place runonceex.cmd in cmdlines.txt :

place a pause in my runonceex.cmd and it paused but

when i press a key my code at the first line ofter pause will repeat and repeat and repeat

until i press the ctrl+c and terminate it ....

thnaks for your help

Link to comment
Share on other sites

I still cannot believe that on it's second day, and after a Moderator response, the opening post still contains serial numbers for commercial software!

sorry i forget it because this problem really going to make me crazy!

do you have any idea for this problem?

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