Jump to content

Not Seeing "installing Applications" Window


Spunge
 Share

Recommended Posts

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

runonceex.gif

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.exe
XPCD\$OEM$\autologon.reg
XPCD\$OEM$\cmdlines.txt
XPCD\$OEM$\RunOnceEx.cmd
XPCD\$OEM$\useraccounts.cmd
XPCD\Apps\regtweaks.reg
XPCD\i386\winnt.sif

autologon.reg

Windows 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 Off
cmdow @ /HID
FOR %%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 _nosource
SET PP=%cdrom%\Apps\

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

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

REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %PP%regtweaks.reg" /f

EXIT

:_nosource
popup /IS /M "No Application Source has been detected. RunOnceEx Task has been terminated." /T "Alert No Source!"
EXIT

useraccounts.cmd

net user Test tester /add
net localgroup Administrators Test /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

regtweaks.reg

Windows 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:00000000

winnt.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=off

Of 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


RunOnceEx executes on the first login :rolleyes:

[slapForhead]****... being a noob I shoulda known that! [/slapForehead]

» Summary

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

:rolleyes:
Link to comment
Share on other sites

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 :P

Hideme.au3

Opt("TrayIconHide", 0)
Opt("TrayIconDebug", 0)

Run($CmdLine[1] & "", "", @SW_HIDE )

usage:

hideme filename.bat/cmd/exe/whatever makes the file execute in the background :D

Link to comment
Share on other sites

Having since included a key in my 'RunOnceEx.cmd' to install an aplication, I now see this...

ia.png

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...