THXMAN Posted September 20, 2010 Share Posted September 20, 2010 my session.ini file is Attachsi 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 pleaseSIDSTE SESSION.INI Link to comment Share on other sites More sharing options...
johnhc Posted September 20, 2010 Share Posted September 20, 2010 my session.ini file is Attachsi 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 pleaseTHXMAN, 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.batIf you have further questions/problems, please post in the nLite forum. Enjoy, John. Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted September 20, 2010 Share Posted September 20, 2010 (edited) 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 itMore on what the $OEM$ folder can do: http://unattended.msfn.org/unattended.xp/view/web/59/ at the bottom of the pageCheers Edited September 20, 2010 by Sp0iLedBrAt Link to comment Share on other sites More sharing options...
THXMAN Posted September 24, 2010 Author Share Posted September 24, 2010 (edited) my new session.ini file is Attachsi did When in nLite, go to the Unattended section, at the RunOnce tab added cmd /R %source%batch.cmdbut 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 THXMANSIDSTE SESSION.INI Edited September 24, 2010 by THXMAN Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted September 24, 2010 Share Posted September 24, 2010 Please attach the batch.cmd file Link to comment Share on other sites More sharing options...
THXMAN Posted September 24, 2010 Author Share Posted September 24, 2010 Here is my Batch.cmdi works fine if i just run it from inside XPkind regards THXMANBATCH.CMD Link to comment Share on other sites More sharing options...
johnhc Posted September 24, 2010 Share Posted September 24, 2010 Here is my Batch.cmdi works fine if i just run it from inside XPkind regards THXMANBATCH.CMDTHXMAN, 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. Link to comment Share on other sites More sharing options...
THXMAN Posted September 24, 2010 Author Share Posted September 24, 2010 (edited) 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 Edited September 24, 2010 by THXMAN Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted September 24, 2010 Share Posted September 24, 2010 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=%%icmd /R %source%batch.cmdEXIT Link to comment Share on other sites More sharing options...
johnhc Posted September 24, 2010 Share Posted September 24, 2010 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 THXMANTHXMAN, 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. Link to comment Share on other sites More sharing options...
THXMAN Posted September 25, 2010 Author Share Posted September 25, 2010 Hi guys, i got it all to work now, thoug RunOnceEx.cmda 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 THXMANRunOnceEx.cmd Link to comment Share on other sites More sharing options...
johnhc Posted September 25, 2010 Share Posted September 25, 2010 Hi guys, i got it all to work now, thoug RunOnceEx.cmda 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 THXMANTHXMAN, 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now