Jump to content

Recommended Posts

Posted

As you can see in the Windows XP Setup Timeline at First Logon it says:

Both [GuiRunOnce]from winnt.sif and RunOnceEx executes at the same time
Does this mean RunOnceEx.cmd automatically starts just like WINNT.SIF, or do I still have put it in WINNT.SIF like this?

[GuiRunOnce]
%systemdrive%\Install\RunOnceEx.cmd


Posted

Runonceex.cmd is inserted into cmdlines.txt in $oem$ folder. This contains commands which are entered into registry.

If you choose to install directly from batch script, the you would use the guirunonce in winnt.sif. Like code box that you have displayed.

The msfn unattended guide is a good resource, for researching these 2 methods.

:)

Posted

You see I'm quit a noob with those scripts :unsure:

So with "batch script" you mean the language with "@ECHO OFF" and "start /wait"?

Then how do you call the script language where you use:...?

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

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

Anyway...I use the batch script and so if I understand correctly I then don't want to put it into cmdlines.txt, but instead only in WINNT.SIF?

Posted

if you have commands in your file that are for RUNONCEEX like you have, execute the CMD file from cmdlines.txt.If you instead use conventional batch scripting with

start /wait someprogram.exe

Then use GUIRunOnce.

The two run at the same time, but how they run is different. RunDLL32 executes the RunOnceEX keys the same time as GUIRunOnce, but the keys have to be PRESENT before it executes which is why they're imported at CMDLINES.TXT

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