Spunge Posted February 24, 2005 Share Posted February 24, 2005 I have made a working basic 'RunOnceEx from CD' iso that creates administrator and autologon accounts and installs a few regtweaks.During setup I notice a couple of command windows briefly appear around T-13(T-12.5), but I dont see the "Installing Applications" window during setup.Example from how-to guide...It's not that it's a problem as such, just that I thought I'd see it around the time my regtweaks are imported.My uA setup...XPCD\$OEM$\$$\System32\cmdow.exeXPCD\$OEM$\autologon.regXPCD\$OEM$\cmdlines.txtXPCD\$OEM$\RunOnceEx.cmdXPCD\$OEM$\useraccounts.cmdXPCD\Apps\regtweaks.regXPCD\i386\winnt.sifautologon.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Test""DefaultPassword"="tester""AutoAdminLogon"="1"cmdlines.txt[COMMANDS]"useraccounts.cmd""RunOnceEx.cmd"RunOnceEx.cmd@Echo Offcmdow @ /HIDFOR %%i IN (C 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:\win51ip.SP2 SET CDROM=%%i:IF %CDROM%!==! goto _nosourceSET PP=%cdrom%\Apps\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %PP%regtweaks.reg" /fEXIT:_nosourcepopup /IS /M "No Application Source has been detected. RunOnceEx Task has been terminated." /T "Alert No Source!"EXITuseraccounts.cmdnet user Test tester /addnet localgroup Administrators Test /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITregtweaks.regWindows Registry Editor Version 5.00[HKEY_CURRENT_USER\Control Panel\International\Geo]"Nation"="242"[-HKEY_CURRENT_USER\Keyboard Layout\Preload]"2"=00000409[HKEY_CURRENT_USER\Keyboard Layout\Preload]"1"=00000809[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]"Max Cached Icons"="2000"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"EnableBalloonTips"=dword:00000000"FolderContentsInfoTip"=dword:00000000"StartButtonBalloonTip"=dword:00000000"ShowInfoTip"=dword:00000000[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\tips]"Show"=dword:00000000winnt.sif[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes" AutomaticUpdates=yes[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=yes TargetPath=\WINDOWS Repartition=No FileSystem=* UnattendSwitch="yes" KeyboardLayout="United Kingdom"[GuiUnattended] AdminPassword="admin" EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=85 OemSkipWelcome=1[UserData] ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX FullName="Mister Tester" OrgName="" ComputerName=test1[RegionalSettings] LanguageGroup=1 SystemLocale=00000809 UserLocale=00000809 InputLocale=0809:00000809 InputLocale_DefaultUser=0809:00000809 Language=0809 UserLocale_DefaultUser=0809[Identification] JoinWorkgroup=HOME[Networking] InstallDefaultComponents=Yes[Components] msnexplr=off freecell=off hearts=off minesweeper=off pinball=off solitaire=off spider=off zonegames=offOf course, non of the above is mine... just cut&paste from examples, but if anyone can point out any errors I've made, that'd be great.Thanks guys. Link to comment Share on other sites More sharing options...
RyanVM Posted February 24, 2005 Share Posted February 24, 2005 RunOnceEx executes on the first login Link to comment Share on other sites More sharing options...
Spunge Posted February 24, 2005 Author Share Posted February 24, 2005 RunOnceEx executes on the first login <{POST_SNAPBACK}>[slapForhead]****... being a noob I shoulda known that! [/slapForehead]» SummaryTo summarize, RunOnceEx.cmd will be executed during the GUI-mode of Windows XP Setup at the T-12 Minute stage. This however does NOT mean that your programs will install. After reboot and first logon, RunOnceEx will start as shown here, and begin installing your programs. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
RyanVM Posted February 24, 2005 Share Posted February 24, 2005 When it's on the website in plain English, yes you should. Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted February 25, 2005 Share Posted February 25, 2005 What your probably seeing is cmdlines.txt iniating @ T12 & Registry @T9 with nothing to do with runonceex particulary & certainly nothing to be worried about. Link to comment Share on other sites More sharing options...
MCT Posted February 25, 2005 Share Posted February 25, 2005 if i were u, id do this, if your familiar with autoit (or not) but instead of using cmdow make an autoit script called hideme Hideme.au3Opt("TrayIconHide", 0)Opt("TrayIconDebug", 0)Run($CmdLine[1] & "", "", @SW_HIDE )usage:hideme filename.bat/cmd/exe/whatever makes the file execute in the background Link to comment Share on other sites More sharing options...
Spunge Posted March 1, 2005 Author Share Posted March 1, 2005 Having since included a key in my 'RunOnceEx.cmd' to install an aplication, I now see this...I guess my small regtweak was being installed too fast for the window to be seen.The command windows that appear briefly... can I assume that 'cmdow.exe' isn't doing what it says on the box? Link to comment Share on other sites More sharing options...
Cartoonite Posted March 1, 2005 Share Posted March 1, 2005 I guess my small regtweak was being installed too fast for the window to be seen.The command windows that appear briefly... can I assume that 'cmdow.exe' isn't doing what it says on the box?I believe command windows would still appear briefly because they won't be hidden until after the cmdow line is processed. When using cmdow, the addition of the @echo off command is kind of redundant. Moving the cmdow line to the first line of the script may cause the window to be hidden so fast as to be almost unnoticeable to the human eye. Also, make sure that cmdow is being called in every script where you want the window to be hidden. Calling it in the RunOnceEx script will not have any effect on whether or not the windows for the scripts that will be run on first log on will be hidden. 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