Jump to content

Install Program chooser


Recommended Posts

Is it possible to integrate an option every time a program is about to install silently?

Like

ECHO.

ECHO Install DirectX Y/N

If Y:

ECHO Installing DirectX 9.0b...

ECHO Please wait...

start /wait %systemdrive%\Install\Applications\DirextX\DX9NTopk.exe

I know the above code isn't right!

Hope you know what I mean... :)

Link to comment
Share on other sites


personally, if you wanted a simple chooser, I would use cmd files...

ECHO OFF
set /p directx=Do you want to install DirectX 9.0b?
set /p wmp9=Do you want to install WMP9?
if %directx%==y %systemdrive%\Install\Applications\DirextX\DX9NTopk.exe
if %wmp9%==y %systemdrive%\Install\Applications\WMP\WMP9.exe
set directx=
set wmp9=

its not silent, and im not sure about file names, but this is just an example

Link to comment
Share on other sites

personally, if you wanted a simple chooser, I would use cmd files...

Is there an easier way?

Any link about how to do that? I'm n00bish about this stuff. :)

ECHO OFF
set /p directx=Do you want to install DirectX 9.0b?
set /p wmp9=Do you want to install WMP9?
if %directx%==y %systemdrive%\Install\Applications\DirextX\DX9NTopk.exe
if %wmp9%==y %systemdrive%\Install\Applications\WMP\WMP9.exe
set directx=
set wmp9=

Leave blank after set directx=?

Link to comment
Share on other sites

when your done...use

set directx=

and leave it blank...this removes the variable from your system...and I just use directx because its what you used...try to make sure whatever variable you attach to set is only 8 characters (simpler) and then at the end use the blank set command, but dont forget to change directx to whatever variable you attach to your program.

Link to comment
Share on other sites

It worked great!

I have:

ECHO.
ECHO Starting installation of Applications


ECHO OFF
set /p java=Do you want to install Java?
set /p directx=Do you want to install DirectX?
set /p msnm=Do you want to install Messenger?
set /p hotfix=Do you want to install Hotfixes?
if %java%==y start /wait %systemdrive%\Install\Applications\Java\j2re-1_4_2_04-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"
if %directx%==y start /wait %systemdrive%\Install\Applications\DirectX\DX9NTopk.exe
if %msnm%==y start /wait %systemdrive%\Install\Applications\MSN\MsnMsgs.msi /QB
if %hotfix%==y start /wait %systemdrive%\Install\Applications\Hotfixes\hotfix.exe /passive /norestart /o /n
set java=
set directx=
set msnm=
set hotfix=

And after answering y for every question it installed only the desired programs.

Very useful when creating a DVD and put all the programs in it without having to install them all.

Thanx!

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