Jump to content

CmdLines.txt


Recommended Posts

Hello All

I've been trying another way to install stuff via a setup.inf file. Problem my cmdlines.txt file is not run?!?!

$oem$\cmdlines.txt

[COMMANDS]

"RunDll32.exe setupapi,InstallHinfSection DefaultInstall 0 .\Setup.inf"

$oem$\setup.inf

signature = "$CHICAGO$"

Compatible = 1

AdvancedINF = 2.5,"You need a newer version of AdvPack.DLL!"

LayoutFile = layout.inf, layout1.inf, layout2.inf

[DefaultInstall]

AddReg = AdvSetup

[AdvSetup]

HKLM,%RunOnce%setup,"User settings", 0, "%systemdrive%\\users.cmd"

HKLM,%RunOnce%setup,"Acrobat", 0, "%systemdrive%\\install\\Apps\\Acrobat\\adberdr60_enu_full.exe -p"-s /v\"/qn\"""

HKLM,%RunOnce%setup,"SpyBot", 0, "%systemdrive%\\install\\Apps\\Spybot\\spybotsd13.exe /silent"

HKLM,%RunOnce%setup,"ISOBuster", 0, "%systemdrive%\\install\\Apps\\ISOBuster\\IsoBuster.exe /VERYSILENT /SP-"

HKLM,%RunOnce%setup,"AdaWare", 0, "%systemdrive%\\install\\Apps\\Adware\\aaw6181.exe /s"

HKLM,%RunOnce%setup,"Nero", 0, "%systemdrive%\\install\\Apps\\nero\\Nero63115.exe /silent /noreboot /no_ui"

$oem$\users.cmd

CLS

@ECHO OFF

ECHO Adding Default User...

net user rlocone /add

net localgroup "administrators" rlocone /add

ECHO.

ECHO Applying Root Registry Tweaks...

REGEDIT /S %systemdrive%\regtweaks.reg

REGEDIT /S %systemdrive%\services.reg

ECHO.

EXIT

I never tried this approach before. If there is anything wrong in these files please let me know.

Thanks.

Link to comment
Share on other sites


As long as cmdlines.txt is in the right place it will run. It's the commands you specify (or do not specify) that could be the problem.

I don't see the users.cmd in your cmdlines.txt so that won't execute. As for the setup.inf, [Version] is missing and a [string] value needs to be set for %RunOnce%. Not sure what "DefaultInstall 0" does but maybe you'll want to try "DefaultInstall 128".

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