sarmad Posted April 18, 2006 Share Posted April 18, 2006 (edited) hi allmy unattended xp have cmdlines.txt and runonceex.cmdi 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 codeswinnt.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=8787InputLocale=0409:00000409,0429:00000429[identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yes[Components]msmsgs=offmsnexplr=offAutoUpdate = off[Display]AutoConfirm=0[WindowsFirewall]Profiles = WindowsFirewall.TurnOffFirewall[WindowsFirewall.TurnOffFirewall]Mode = 0runonceex.cmdSetLocal enableextensionsSET CDROM=%~d0SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "ALMAS INSTALLATION.........." /fREG ADD %KEY%\003 /VE /D "Windows Media Player 10" /fREG ADD %KEY%\003 /V 001 /D "%CDROM%\$OEM$\MEDIA.CMD" /fREG ADD %KEY%\004 /VE /D "ACDSee 7.0 PowerPack Full" /fREG ADD %KEY%\004 /V 001 /D "%CDROM%\$OEM$\soft\acd\ACD.msi /quiet /QB PIDKEY=--------------LICENSE_MODEL=Full" /fREG ADD %KEY%\004 /V 003 /D "%CDROM%\$OEM$\acd.cmd" /fREG ADD %KEY%\005 /VE /D "JetAudio 6" /fREG ADD %KEY%\005 /V 001 /D "%CDROM%\$OEM$\soft\jet\jet.exe" /fREG ADD %KEY%\006 /VE /D "winamp 5 full" /fREG ADD %KEY%\006 /V 001 /D "%CDROM%\$OEM$\soft\winamp\winamp.msi /quiet xvideo=0 XNAME=--------------XKEY=-------------" /fREG ADD %KEY%\007 /VE /D "Power DVD 6 FULL" /fREG ADD %KEY%\007 /V 001 /D "%CDROM%\$OEM$\soft\dvd\dvd.exe" /fREG ADD %KEY%\008 /VE /D "Nero Burning ROM" /fREG ADD %KEY%\008 /V 001 /D "%CDROM%\$OEM$\SOFT\NERO\SETUPX.EXE /SN=---------------- /WRITE_SN /SILENT /NO_UI /NOREBOOT /NOLICENSE" /fREG ADD %KEY%\008 /V 003 /D "%CDROM%\$OEM$\nero.cmd" /fREG ADD %KEY%\009 /VE /D "Clone CD" /fREG ADD %KEY%\009 /V 001 /D "%CDROM%\$OEM$\SOFT\CLONE\setup.exe /S" /fREG ADD %KEY%\009 /V 003 /D "%CDROM%\$OEM$\clone.cmd" /fREG ADD %KEY%\010 /VE /D "Yahoo Messenger 7 Final" /fREG ADD %KEY%\010 /V 001 /D "%CDROM%\$OEM$\soft\YAHOO\YAHOO.exe /S " /fREG ADD %KEY%\010 /V 002 /D "%CDROM%\$OEM$\yahoo.cmd" /fREG ADD %KEY%\011 /VE /D "WINRAR" /fREG ADD %KEY%\011 /V 001 /D "%CDROM%\$OEM$\soft\RAR\RAR.exe /S " /fREG ADD %KEY%\012 /VE /D "PDF reader" /fREG ADD %KEY%\012 /V 001 /D "%CDROM%\$OEM$\fox.cmd" /fREG ADD %KEY%\013 /VE /D "ALMAS REGISTRY TWEAK Up.............." /fREG ADD %KEY%\013 /V 001 /D "%CDROM%\$OEM$\REG.CMD " /fREG ADD %KEY%\013 /V 003 /D "%CDROM%\$OEM$\1.CMD " /fREG ADD %KEY%\013 /V 002 /D "%CDROM%\$OEM$\re.CMD " /fendlocalexitcmdlines.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 thefollowing error:createprocess returned error 2(2).any help would be greatthnaks Edited April 20, 2006 by sarmad Link to comment Share on other sites More sharing options...
millington_lee Posted April 19, 2006 Share Posted April 19, 2006 try it the other way around??cmdlines.txt"runonceex.cmd""useraccounts.cmd"or loose user accounts altogether.... Link to comment Share on other sites More sharing options...
sarmad Posted April 19, 2006 Author Share Posted April 19, 2006 try it the other way around??cmdlines.txt"runonceex.cmd""useraccounts.cmd"or loose user accounts altogether....hi thanks for reply but it doesnt work why no one answer me? Link to comment Share on other sites More sharing options...
Sonic Posted April 19, 2006 Share Posted April 19, 2006 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 ? Link to comment Share on other sites More sharing options...
p4ntb0y Posted April 19, 2006 Share Posted April 19, 2006 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.cmdAlso 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 More sharing options...
sarmad Posted April 20, 2006 Author Share Posted April 20, 2006 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 ?hiyes my cmdlines work with the useraccounts.cmd and create userbut 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 More sharing options...
Yzöwl Posted April 20, 2006 Share Posted April 20, 2006 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! Link to comment Share on other sites More sharing options...
sarmad Posted April 20, 2006 Author Share Posted April 20, 2006 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 More sharing options...
laura Posted April 20, 2006 Share Posted April 20, 2006 did you try replace on your runonceex.cmd cdrom setting from SET CDROM=%~d0 to 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:\WIN51 SET CDROM=%%i: ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now