donald7777 Posted August 2, 2009 Share Posted August 2, 2009 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 filehere is setupblank CD.txt on root of disk$oem$ folder setupin oem folder is cmdlines.txt in cmdlines.txt is [COMMANDS]"RunOnceEx.cmd"in oem folder isRunOnceEx.cmd in RunOnceEx.cmd iscmdow @ /HID@echo offFOR %%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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Flash Player & Shockwave" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\Adobe\Install.bat" /fREG ADD %KEY%\002 /VE /D "Dotnet FrameWork" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\Software\DotNet\Install.bat" /fREG ADD %KEY%\003 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\Software\cleanup.cmd" /fEXIThere 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=offbeside the key is there anything wrong? Link to comment Share on other sites More sharing options...
iamtheky Posted August 2, 2009 Share Posted August 2, 2009 8.3 name? maybe call it runonce.cmd instead. Link to comment Share on other sites More sharing options...
Yzöwl Posted August 2, 2009 Share Posted August 2, 2009 $oem$ folder setupin 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 More sharing options...
donald7777 Posted August 2, 2009 Author Share Posted August 2, 2009 $oem$ folder setupin 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.cmdthats exactly how i have it. Will also try with 8.3 names Link to comment Share on other sites More sharing options...
Yzöwl Posted August 2, 2009 Share Posted August 2, 2009 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 More sharing options...
donald7777 Posted August 2, 2009 Author Share Posted August 2, 2009 ok batch file poped up drive was D: pressed a key and I saw fro a second that it said the perminiter was incorrect. Link to comment Share on other sites More sharing options...
Yzöwl Posted August 2, 2009 Share Posted August 2, 2009 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 replacingEXITwithPause Link to comment Share on other sites More sharing options...
iamtheky Posted August 2, 2009 Share Posted August 2, 2009 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. Link to comment Share on other sites More sharing options...
Yzöwl Posted August 2, 2009 Share Posted August 2, 2009 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 More sharing options...
donald7777 Posted August 2, 2009 Author Share Posted August 2, 2009 adobe batch file@ECHO OFFECHO Adobe Flash Player..START /WAIT MSIEXEC /I "install_flash_player_10_active_x.msi" ALLUSERS=TRUE REBOOT=SUPPRESS /QBECHO Adobe Shockwave Player..START /WAIT MSIEXEC /I "sw_lic_full_installer.MSI" ALLUSERS=TRUE REBOOT=SUPPRESS /QBdotnet batch filedotnetfx1.exe /Q /C:"install.exe /Q"dotnetfx2.exe /Q /C:"install.exe /Q"dotnetfx3.exe /q /norestart Link to comment Share on other sites More sharing options...
donald7777 Posted August 3, 2009 Author Share Posted August 3, 2009 even after changing the & to and and changing the exit to pause still gives me permiter is incorrect, however if i run the install batches manually they work fine. arg Link to comment Share on other sites More sharing options...
iamtheky Posted August 3, 2009 Share Posted August 3, 2009 op said 'batch file popped up', thought we were to the execution portion of the evening Are the keys posting to the reg? Link to comment Share on other sites More sharing options...
donald7777 Posted August 3, 2009 Author Share Posted August 3, 2009 ill try an older non sp3 xp pro cd maybe ms changed something. Link to comment Share on other sites More sharing options...
donald7777 Posted August 3, 2009 Author Share Posted August 3, 2009 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 More sharing options...
Yzöwl Posted August 3, 2009 Share Posted August 3, 2009 And you definitely have the structure as shown in my post, post 5!I ask because the usual location for the Software directory used on these forums isn't in the root of the CD. 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