Jump to content

How Can i test my cmdlines.txt


Recommended Posts

:hello: Hi all

I have inserted some command to the cmdliens.txt file that was made by nLite to import some registry values.

How Can i test the cmdliens.txt file ? to be sure it will work.

and this my cmdlines.txt file. if any one see any Mistake Please tell me

[Commands]
"rundll32 advpack.dll,LaunchINFSection nLite.inf,U"

"REGEDT32.EXE /S ..\Unattend\HKCU.reg"
"REGEDT32.EXE /S ..\Unattend\LogonBoxBackground.reg"

"RunDll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\$$\Cursors\Aero cursors\Install.inf" /f

Thanks in advance

Edited by NaDer_GenKO
Link to comment
Share on other sites


Well you can test it by:

Copy the file.

rename the copy to cmdlines.cmd

remove the [Commands] section

Save the file.

open a command window

browse to the folder you saved the cmd

and then type cmdlines.cmd

if it doesn't return any errors, the syntax in the cmdlines.txt is correct.

Hope this helps,

-Henk

Link to comment
Share on other sites

@Henkes :

Thank you very much :thumbup

Ok i also remove the quotations(" ") from all the lines.

and the Switch /f form the last line

and every thing working Ok. else the frist line that is was Written by nLite give me error that is "Could not locate the inf file" :angry:

and in the last line a sow the copying files progress. I dont want to see it ( what can i do ? :realmad: )

there any ideas for this

Link to comment
Share on other sites

The first line looks for file called NLite.inf which probably isnt in the same folder as your .cmd file. Therefore it cannot find it.

if you want to hide the filecopy, but this at the top of your .cmd

I don't know if this is gonna work if you run it from commandlines.txt seeing as that's being called at some point in the installation process

But just give it a try :)

@echo off

-Henk

Link to comment
Share on other sites

The first line looks for file called NLite.inf which probably isnt in the same folder as your .cmd file. Therefore it cannot find it.

if you want to hide the filecopy, but this at the top of your .cmd

I don't know if this is gonna work if you run it from commandlines.txt seeing as that's being called at some point in the installation process

But just give it a try :)

@echo off

-Henk

:no: Not work at the cmdlines.cmd i still see the copying files progress (do you think i try it in cmdlines.txt or no )

i made my win with nLite and the first line written by the program.

and i let him as it. idont know it working or no !! i think its not very important for me.

what i want now that is hide the copying files progress at the installation of my win

Link to comment
Share on other sites

Well the easiest thing you can do, is pipe the output of the last command (that is responsible for the filecopy) to a temporary file

you do this by adding >tempfile.txt add the end of the command and then delete the tempfile.

so for example

[code

RunDll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\$$\Cursors\Aero cursors\Install.inf >tempfile.txt

del tempfile.txt

That will route the output to the file tmpfile.txt instead of to the screen and then delete the tmpfile.txt

This what you're looking for?

-Henk

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