Jump to content

Can get cmdlines to work


Recommended Posts

I've read the guide and I think I've done everything but i can't seem to get cmdlines.txt to run my regfile during installation.. The regfile is tested and works properly.

What I want to accomplish is that all this should be done before windows boots up for the first time.

My cmdlines.txt:

[COMMANDS]

"REGEDIT /S C:\install\regtweaks.reg"

"start /wait C:\install\AV710sv\setup.exe /qn"

And in $1\Install i have regtweaks.reg:

Windows Registry Editor Version 5.00

;Disables Windows Tour bubble popup

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]

"RunCount"=dword:00000000

;Disable the Desktop Cleanup Wizard

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]

"NoRun"=dword:00000001

;Disables Error Reporting, but notifies when errors occur

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]

"DoReport"=dword:00000000

;Remove System Restore

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]

"DisableSR"=dword:00000001

;Drive letter first

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]

"ShowDriveLettersFirst"=dword:00000001

;Remove passwords in IE6

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]

"FormSuggest Passwords"="No"

;Remove Indexing Service

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CiSvc]

"Start"=dword:00000004

;Do not look for printers and shares

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"NoNetCrawling"=dword:00000001

; Displays My Computer My Network Places and My Documents on the Desktop

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]

"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000000

"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000

"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]

"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000

"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000000

"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000000

Link to comment
Share on other sites


Try This

CmdLine.txt

Just Leave These In The Same Place, Where You Have The CmdLine.txt

[COMMANDS]
"regtweaks.reg"
"AV710sv.cmd"

echo off
cls
color f2
mode con: Cols=45 Lines=3
Title AV710sv
set SD=%Systemdrive%\Install\

::::start %SD%HelloTest\JUSTHELLOTEST.VBS
::::I USED THIS FOR A TEST AND IT WORKED
Start %SD%AV710sv\setup.exe /qn
echo.
echo Batch File Completed?
ping -n 5 127.0.0.1>nul
exit

Link to comment
Share on other sites

Try This

cmdlines.txt:

Just Leave These In The Same Place, Where You Have The CmdLine.,txt

[COMMANDS]
"regtweaks.reg"
"AV710sv.cmd"

echo off
cls
color f2
mode con: Cols=45 Lines=3
Title AV710sv
set SD=%Systemdrive%\Install\

::::start %SD%HelloTest\JUSTHELLOTEST.VBS
::::I USED THIS FOR A TEST AND IT WORKED
Start %SD%AV710sv\setup.exe /qn
echo.
echo Batch File Completed?
ping -n 5 127.0.0.1>nul
exit

I had A error In Posting So Could a mod Delete this one

Link to comment
Share on other sites

Thx for the help.

I've got the reghacks up and running now. Now i need to get that batchfile to work.

right now it looks like this:

cmdlines.txt

[COMMANDS]

"REGEDIT /S regtweaks.reg"

"programs.cmd"

programs.cmd

ECHO.

ECHO Installing software...

"start /wait C:\install\AV710sv\setup.exe /n"

"start /wait C:\install\Acro6Swe\acro60.exe /n"

But the programs are not installed... how should I edit theese?

Programs.cmd resides in the $OEM$ catalog too.

Link to comment
Share on other sites

I think its simply cmdlines.txt may be too early to run a setup on whatever that is. Try it later in RunoncEX.cmd

Programs running any kind of msi will not install that early. I did a Google search trying to see what AV710sv is but came up Nullstring

Link to comment
Share on other sites

The program you are referring to is simply McAfee Antivirus 7.1 swedish version. So you suggest i install it through GUIrunOnce? I've heard about RunOnceEX but never understood what it was... Do you have a link to a guide or something?

Link to comment
Share on other sites

Just use

echo off
cls
color f2
mode con: Cols=45 Lines=3
Title AV710sv
set SD=%Systemdrive%\Install\

::::start %SD%HelloTest\JUSTHELLOTEST.VBS
::::I USED THIS FOR A TEST AND IT WORKED

Start / w %SD%AV710sv\setup.exe /qn
echo.
echo AV710sv Completed?
ping -n 2 127.0.0.1>nul

cls
color 7f
Title Acro6Swe
start /wait %SD%Acro6Swe\acro60.exe /n
echo
echo Acro6Swe Completed?
ping -n 2 127.0.0.1>nul

exit

Template To Add More To Install Cmd

cls

color 7f

Title <span style='color:red'>ADD ANOTHER APP HERE </span>

start /wait %SD%<span style='color:red'>ADD ANOTHER APP HERE </span>

echo

echo  <span style='color:red'>ADD ANOTHER APP HERE </span>Completed?

ping -n 2 127.0.0.1>nul

CmdLine.txt Should Look Like This With

<span style='color:green'>All The Apps to Install Are In The The Install.cmd</span>

[COMMANDS]

"regtweaks.reg"

"Install.cmd"

Edited by gunsmokingman
Link to comment
Share on other sites

yes, to install your programs, add a line to your winnt.sif answer file like this

[GuiRunOnce]
   pathtofile:\batchfilename.cmd

where batchfilename.cmd is a batch file that you are using to silently install your programs

That will load right after windows completes.

Link to comment
Share on other sites

^_^ You don't need that with cmdlines.txt, its automatically added and executed at T-13 or so.

gunsmokingman's method may work for some things but only for single USER programs so I'm thinking may not work with Anti-Virii proggies. Its a try and see thing.

Might take a look at Deploy.chm and look at this;

Limitations of and Usage Notes on Cmdlines.txt

But as we all know MS is wrong in their help occasionally so let everyone else know :)

Link to comment
Share on other sites

Ok, thanks for all the great answers. I'm in the testing phase right now where I will try to get everything to work. Thank god for Vitual PC Trial...

Got a couple of questions too...

1. I need to add an "Environment Variable" that says remotepc=winxp through a reghack, how?

2. I need to open up 2 ports in the SP2 firewall and state that ping should be allowed for the internet connection.

Link to comment
Share on other sites

1. I need to add an "Environment Variable" that says remotepc=winxp through a reghack, how?

2. I need to open up 2 ports in the SP2 firewall and state that ping should be allowed for the internet connection.

Evironment variable is fixed now.

Firewall ports still a big problem... Don't know where to start.

And another regtweak I would like to add:

I don't know what it's called in the english version but in the swedish it is "adapted startmeny" which creates the "arrows" in the startmenu and hides programs and folders you rarely use. I would like to disable it.

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