Unofficial Batch File & Program Switches Thread


Recommended Posts

Is there any way to get the batch script + updates/progs from a server instead of the cd ?? and then run it ??

EDIT

would the batch/updates/progs run from Remote Installation Services (RIS) on 2000 server ????

Edited by TranceSphere

@highreach I am going to write up all of the ones I can think of and find in the next couple of days and post them.

@nartac "%AutoPatcherXP_Dir%\CustomProgFiles\MusicMatch.exe" /s (I can't figure out how to bypass the User registration screen during installation, even tried modifying the setup.iss file, so if you don't mind interaction then there you go.)

Aha! I was right! I should get a bonus point for that. Anywho, yes theteek... we will very soon have a locked thread that will just have additions to new switches for silently installing programs. I know for a fact that Kelsenellenelvian has most of those switches you need so just wait a little bit and I'm sure he'll post them. (Y)

Here are a few Kelsenellenelvian sent me the other day:

Kazaa Codec Pack = "%AutoPatcherXP_Dir%\CustomProgFiles\kcodec210.exe" /silent

Kazaa Lite = "%AutoPatcherXP_Dir%\CustomProgFiles\klite243.exe" /silent

Magic Tweak = "%AutoPatcherXP_Dir%\CustomProgFiles\MT270.exe" /silent

Nero 6 = "%AutoPatcherXP_Dir%\CustomProgFiles\nero60023.exe" /silent /noreboot

Power Pro = "%AutoPatcherXP_Dir%\CustomProgFiles\PowerPro.exe" /VerySilent

Shockwave = "%AutoPatcherXP_Dir%\CustomProgFiles\Shockwave.exe" /s

Windows Media Bonus Pack = "%AutoPatcherXP_Dir%\CustomProgFiles\WMP9Bonus.exe" /q

Only as a matter of interest, I have just put together an Auto Updater for my DOS F-Prot antivirus, which also has a reg hack to make it scan-on -demand!

Updater involves PKUNZIP, remote DOS ancestor of WinZip.

Could be used for other apps, I suppose, the instructions are here

http://www.geocities.com/uzipaz/eng/f-prot.html

but some tweaking of code is required for your individual install.

hey guys, some nice work you're doing here, keep it up!! :)

Here's another suggestion for the list, SpywareBlaster from www.javacoolsoftware.com

spywareblastersetup.exe /verysilent

and in case of "Missing MSCOMCTL.OCX" message after starting prog, this one (also on that page): missingfilesetup.exe /verysilent

(or just install it anyway in case you want to make sure it'll work.. I've only ever used it on some W98 installs though)

takes me almost a year for my first post, lol :p

cheers,

phaelox

BTW: In the Unattended.sf.net list I posted, under Inno Setup it says to use /SILENT for it's installers. This will still display a progress box. To make it fully silent for AutoPatcher use "/VERYSILENT /NOREBOOT /SP-" (no quotes). Also, to save install parameters to a file use "/SAVEINF=filename" (no quotes, replace filename with the destination). Then copy the output to the AP folder along with the setup and use "/LOADINF=filename" (no quotes, replace filename with the previously saved config file).

To eliminate the Language box append to your Inno Setup command line "/LANG=language". language may vary depending on the setup. Try running the setup with a DOS box with these values for language (for English):

/LANG=English

/LANG=1033

/LANG=en

/LANG=EN

/LANG=enu

/LANG=ENU

/LANG=eng

/LANG=ENG

/LANG=enus

/LANG=ENUS

Try using English with /LANG first. Only add /LANG if it asks for a language. If there isn't more than one language the language box isn't displayed anyway. If you have an incorrect parameter for /LANG it just won't suppress the Language box.

The parts of the command line:

/VERYSILENT: Install silently, except for the startup prompt (if DisableStartupPrompt wasn't specified, it was made default in v3 and later) and language box.

/NOREBOOT: Disables reboot no matter what.

/SP-: Disables the startup prompt (see /VERYSILENT)

/LANG: Specifies the language.

There are more, download Inno Setup at http://www.innosetup.com and look at Other Information\Setup Command Line Parameters in the help file.

If the setup is a 7-zip SFX (ISTool, a popular Inno Setup script editor, has a feature to autogenerate 7-zip SFX archives of setup programs, so 7-zip SFX archives of setup programs are common), run it then go to the temp folder (on Windows XP "C:\Documents and Settings\username\Local Settings\Temp" [no quotes, replace username with your username]), find a folder named 7zrandom-letters-and-numbers and copy the files (usually 3) to your AP folder. You will be able to use the standard Inno Setup switches.

Inno Setup setup programs are most easily identifiable by clicking the icon in the top-left corner of the window. If "About Setup..." is there Inno Setup created it.

NSIS modern installers always have the NSIS version in the bottom-left corner, unless the source code was modified to remove it.

Edited by memodude
  • 2 weeks later...
@FlishFun: Why don't you merge this thread with the pinned AP Switches thread?

Hmmm... who put this back down here? I guess Raptor must have... hmmm... well, I'm not gonna merge it, but I am gonna clear the titles up... the switches thread originally was just for switches used on the AutoPatcher executable.

Great thread.. For those with Nero registered..

You can use this line without the need for importing a reg file with your registration information.

"%AutoPatcherXP_Dir%\CustomProgFiles\nero6300.exe /SN=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX /WRITE_SN /SILENT /NOREBOOT /NO_UI

Replace the XXXX-'s with your serial #.

Also, someone mentioned about wanting a way to kill winamp after its been installed.. you can do it this way..

start /wait "%AutoPatcherXP_Dir%\CustomProgFiles\winamp291_full.exe" /S

taskkill /F /IM winamp

Same can be done with QCD..

start /wait "%AutoPatcherXP_Dir%\CustomProgFiles\qcd411.exe" /S

taskkill /F /IM QCDPlayer

Program: Microsoft Windows Media Player

Version: 9

Home: http://www.microsoft.com/windows/windowsme...ies/player.aspx

Command line: wmp9.exe /Q:A /R:N

Setup program: ?

:) Actually, that's incorrect- this covers these (and points to the MS doc here ).

The net net is that the WMP installer doesn't acknowledge:

WMPPackage.exe /R:N

, as /R:N can't be used into an IExpress install package that way. Instead the correct syntax would be:

WMPPackage.exe /C:"install.exe /R:N"

, but it's more in depth than that, and the above docs cover it.

For the typical purpose,

WMPPackage.exe /Q:A /C:"setup_wm.exe /R:N /P:#e /Q"

should work fine.

"%AutoPatcherXP_Dir%\ProgFiles\MPSetupXP.exe" /Q:A /R:N

HEY "Actually" This is the switch that is used with AutoPatcher and thousands of people have yet to have a prob with it.

They're getting lucky then. :\ That command line does *not* suppress the reboot, so if a reboot is required, it's going to reboot right in the middle of whatever you're doing. Not cool.

I'd highly recommend this gets fixed. It's subtle enough that maybe you wouldn't figure out why it was rebooting, but it's still not a good thing.

You can verify yourself if you're wary - just run WMP, and run mpsetupxp.exe /Q:A /R:N. You'll get a shutdown request. And if you have data open in a program that doesn't alert you to save... goodbye data. It's really not a good idea to leave AutoPatcher like that. :\

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.