Jump to content

Recommended Posts

Posted (edited)

I have used nlite to create an unattended install, when install is done and desktop appears, I have to reboot for the runonceex.cmd file to run. my question is there a way I can have XP autot reboot before it runs the runonceex.cmd so I do not have to manually reboot.

Maybe another .cmd that my cleanup.cmd will delete when setup is finished?

Edited by mvtowns

Posted (edited)

I think another reboot isn`t the goal to achieve, cause it`s not needed at this time.

Question is why your "runonceex.cmd" doesn`t run before desktop is loading the first time?

Where is the "runonceex.cmd" and how is it executed?

Edit: Didn`t see your edit - is the problem solved?

Edited by g-force
Posted (edited)

Ok my RunOnceEx.cmd is in $OEM$\$1\Install

in my winnt.sif last line reads

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

I just made a reboot command and places in front of it

[GuiRunOnce]
%systemdrive%\install\reboot.cmd
%systemdrive%\install\RunOnceEx.cmd

I would rather the RunOnceEx.cmd run on install, but for some reason I have to reboot for it to work

Edited by mvtowns
Posted

Place the "runonceex.cmd directly in $OEM$.

If you already worked with nLite, there`s a "comandlines.txt" in this folder, otherwise create one.

Add a line in this file like "runonceex.cmd" - no path is needed because it`s in the same folder.

Posted

mine are in $oem$\install - not in the $1

I also have all my stuff 8.3 but thats more force of habit, so mine is called runonce.cmd but inside I still

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

as well no references are needed in the .sif file, i use the following so it reboots and logs on

[GuiUnattended]

EncryptedAdminPassword=NO

AutoLogon=Yes

AutoLogonCount=1

OEMSkipRegional=1

OEMSkipWelcome=1

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