THXMAN

Can i run a batch file from Runonce in nlite

12 posts in this topic

my session.ini file is Attachs

i use nlite to make my windowsxp, and i got updates i want to

install from NET Framework Version 1.1 up 3.5 with danish support.

I want to run then from a batch file in runonce mode. it dont seem to start. and i know it works if i run the batch file from inside windows it works fine.

can someone help me please

SIDSTE SESSION.INI

0

Share this post


Link to post
Share on other sites

my session.ini file is Attachs

i use nlite to make my windowsxp, and i got updates i want to

install from NET Framework Version 1.1 up 3.5 with danish support.

I want to run then from a batch file in runonce mode. it dont seem to start. and i know it works if i run the batch file from inside windows it works fine.

can someone help me please

THXMAN, this should be posted in the nLite forum. Your problem is that %Source% already has a / in it, so now you have two. Here is what I use:

CMD /R %Source%Run1\Run1_XP-64.bat

If you have further questions/problems, please post in the nLite forum. Enjoy, John.

0

Share this post


Link to post
Share on other sites

You need to create an $OEM$ folder next to I386 and put the files inside. Then make the batch file (e.g. BATCH.cmd) to address the files from the $OEM$ folder, e.g.

 start /wait %Source%$OEM$\dotnetfx35.exe /qb

Save the batch file next to $OEM$ and I386.

When in nLite, go to the Unattended section, at the RunOnce tab (see this picture guide http://win-x.co.cc/nliteimages.html , pic #20) and enter this command

cmd /R %source%batch.cmd

and press Add.

That should be it

More on what the $OEM$ folder can do: http://unattended.msfn.org/unattended.xp/view/web/59/ at the bottom of the page

Cheers

Edited by Sp0iLedBrAt
0

Share this post


Link to post
Share on other sites

my new session.ini file is Attachs

i did When in nLite, go to the Unattended section, at the RunOnce tab added cmd /R %source%batch.cmd

but it do not run at all. And i place my batch.cmd file i the root of the DVD beside i386 and $OEM$. do i run it my self it works just fine. what i am doing wrong.

Kind regards THXMAN

SIDSTE SESSION.INI

Edited by THXMAN
0

Share this post


Link to post
Share on other sites

Here is my Batch.cmd

i works fine if i just run it from inside XP

kind regards

THXMANBATCH.CMD

THXMAN, where did you place the batch.cmd file? It should be in the source folder (same level as the I386 folder), not in the $OEM$ folder. If you do place it into the $OEM$ folder, then include the folder name in the call. Enjoy, John.

0

Share this post


Link to post
Share on other sites

Hi John i attachs a picture so you can see where i placed my batch.cmd file.

file is in the root if the Source folder beside i386.

kind regards

THXMAN

post-235415-026866900 1285344656_thumb.j

Edited by THXMAN
0

Share this post


Link to post
Share on other sites

Search for nlite.cmd or nlite.cm_ in your nLited CD (probably in i386).

It should contain this code

for /f "tokens=3" %%i IN ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" ^| findstr "REG_SZ"') do set SOURCE=%%i
cmd /R %source%batch.cmd
EXIT

0

Share this post


Link to post
Share on other sites

Hi John i attachs a picture so you can see where i placed my batch.cmd file.

file is in the root if the Source folder beside i386.

kind regards

THXMAN

THXMAN, also look at winnt.sif near or at the bottom for

[GuiRunOnce]
"%SystemRoot%\System32\nLite.cmd"

Please let us know what you find. Enjoy, John.

0

Share this post


Link to post
Share on other sites

Hi guys, i got it all to work now, thoug RunOnceEx.cmd

a far better way i think. here is some of the things i did.

i just get an error with malwarebytes. it says MBAM_ERROR_NOT_REGISTERED (0, 0)

but why it is a free edtion version. so why REGISTERED. and can i just REGISTERED with any info and how?

kind regards

THXMAN

RunOnceEx.cmd

0

Share this post


Link to post
Share on other sites

Hi guys, i got it all to work now, thoug RunOnceEx.cmd

a far better way i think. here is some of the things i did.

i just get an error with malwarebytes. it says MBAM_ERROR_NOT_REGISTERED (0, 0)

but why it is a free edtion version. so why REGISTERED. and can i just REGISTERED with any info and how?

kind regards

THXMAN

THXMAN, I am glad you got it working. I have had no problem with the RunOnce exit in nLite and I have helped several others get it working. I suspect the Registering it is referring to is the Windows Registry. It is often necessary to register DLLs (set entry in the Registry), for example. You need to ask the supplier of the SW about your error, perhaps via a forum. Enjoy, John.

0

Share this post


Link to post
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.