Jump to content

NliteOS - RunOnce Help - How to execute .cmd file


DaRkSe7eN

Recommended Posts


%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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...