Jump to content

NliteOS - RunOnce Help - How to execute .cmd file


Recommended Posts


Posted

%SOURCE% includes a trailing backslash (\). You may want to try the following:

%SOURCE%OEM\RunOnce\yourfile.cmd

Posted (edited)

%SOURCE% includes a trailing backslash (\). You may want to try the following:

%SOURCE%OEM\RunOnce\yourfile.cmd

I've tried this patterns but still doesn't work..

%SOURCE%\OEM\RunOnce\yourfile.cmd

%SOURCE%OEM\RunOnce\yourfile.cmd

Do i need to remove the spaces between my .cmd file name?..

~ My .cmd file name is "WXPx86BE - Setup.cmd"

Edited by DaRkSe7eN
Posted

Yes, remove the spaces.

It Works.. But my .cmd file executes after i set my user account..

The sequence must be : Set my User account, Apply System Setting, Desktop, And my .cmd will auto-execute..

Please help me..

Posted

You have a few options. What you've already stated may not be possible. Why so specific?

It is possible because i've already seen it. Picture .. It is from Windows XP Professional SP3 Black Edition.. And i want to do it with my own copy of Legit Windows XP Installation CD..

Posted (edited)

That's a means to an end. It requires adding registry entries through your CMD file, or directly through nLite via another method, related to the following key:

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
To help further with specific entries it is necessary to know what end you're trying to reach. Be specific.

EDIT: Figure I'll add this before jaclaz does. ;)

http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/put-down-the-chocolate-covered-banana.html

Edited by 5eraph
Posted

Try adding the following command to nLite's RunOnce. I'm unable to test without more information from you.

REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "Task" /d "%SOURCE%OEM\RunOnce\yourfile.cmd" /f
Posted (edited)

But you got the wrong link :w00t:, in this case jaclaz would have most probably earlier used the Standard Litany one ;) (which is introductory to the chocolate covered banana issue) :

http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/problem-report-standard-litany.html

jaclaz

Edited by jaclaz
Posted

Try adding the following command to nLite's RunOnce. I'm unable to test without more information from you.

REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "Task" /d "%SOURCE%OEM\RunOnce\yourfile.cmd" /f

Thanks for the BIG help.. It works exactly what I really want to..

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