Jump to content

Dear Gosh Or Vbs Guru...


Recommended Posts

Hello

I would like to use a VBS script or other methods to do an applications installation. I would like to see a choice during my applications installation process. For example...(a checkbox would be nice)

Select your applications:

---------------------------------

Item1=WinRAR

Item2=Adobe Acrobat Reader 6

Item3=Adaware 6

Item4=Nero 6

---------------------------------

If I decided to select Item1 and Item2, it will install only WinRAR and Adobe Acrobat for me.

TIA,

Ura Pnes

PS...Gosh thank you for saving 150 MB of disk space on my CD. I love the lite version of Windows XP!

Link to comment
Share on other sites


How about save the settings the user choses to an .inf file?

On a totally unrelated note:

I've been researching on how to make xp setup prompt you for what programs you want installed. I know the early betas of xp (whistler) did this by default. I found an unattend switch to enable this, Method=custom i believe, but i tried this method and it does nothing. Can anyone enlighten me on how to make xp prompt you for what programs you want installed?

-gosh

Link to comment
Share on other sites

Hello

I would like to use a VBS script or other methods to do an applications installation.  I would like to see a choice during my applications installation process.  For example...(a checkbox would be nice)

Select your applications:

---------------------------------

Item1=WinRAR

Item2=Adobe Acrobat Reader 6

Item3=Adaware 6

Item4=Nero 6

---------------------------------

If I decided to select Item1 and Item2, it will install only WinRAR and Adobe Acrobat for me.

TIA,

Ura Pnes

PS...Gosh thank you for saving 150 MB of disk space on my CD.  I love the lite version of Windows XP!

How about something like this: XP Setup Menu

Link to comment
Share on other sites

Hello

I would like to use a VBS script or other methods to do an applications installation.  I would like to see a choice during my applications installation process.  For example...(a checkbox would be nice)

Select your applications:

---------------------------------

Item1=WinRAR

Item2=Adobe Acrobat Reader 6

Item3=Adaware 6

Item4=Nero 6

---------------------------------

If I decided to select Item1 and Item2, it will install only WinRAR and Adobe Acrobat for me.

TIA,

Ura Pnes

PS...Gosh thank you for saving 150 MB of disk space on my CD.  I love the lite version of Windows XP!

How about something like this: XP Setup Menu

Sandman-

That would be nice, but that is similiar to a CD Menu program. The problem with the CD Menu software is that I can't select multiple items and let it process after one another.

Ura

Link to comment
Share on other sites

That would be nice, but that is similiar to a CD Menu program.  The problem with the CD Menu software is that I can't select multiple items and let it process after one another.

Ura

Yeah I know! But since I don't know VB or any other programming for that matter, I had to use an external program. It's AutoPlay Media Studio 4.0. There's a free trial available HERE. I didn't have the time to check all the functions but maybe it can do what you want...

Link to comment
Share on other sites

using the links from PeterS's post I've made a front end using vbs and HTML.

one vbs file calls the html in a menu-less IE window. BUT i am a web designer not a VBS coder and am therfore STUCK since i don't know how to call shell.run commands from within html. I will post pics later when I am home.

Link to comment
Share on other sites

try this.

configure your installs through the installs.ini file, then run the script. You can have as many applications as you can display on the screen, or memory allows.

I'm still working on hiding checkboxes, so that feature in the ini does not currently work but the rest appears to.

EDIT: Hidden items now works. Updated downloaded script.

Send me comments, problems, etc.

Here is the INSTALLS.INI file:

;Apps Install INI

;INI file Format

;

;  [Applcation name as displayed in program];  Install= path to application install + switches

;  selected=0,1  0 not selected by default, 1 selected by default

; (if not specified defaults to 0)

;  visible=1,0 1 visible on form, 0 not visible on form

; (if not specified defaults to 1)

; if not visible but selected application will still install

;  active=1,0    1 - Visible and able to change, 0 - greyed out, visible but not able to change

; (if not specified defaults to 1)

;  installorder=##  order in wich application is installed starting with 1

;  (if no order is selected applications will install in listed order in INSTALL.INI

; any application without and INSTALLORDER will install after applications

; with INSTALLORDER set.)

;  register=register.reg  (path\name of registry file for registration of application

;    will be installed with "regedit /s path\filename")

;  boxdesc=description to be displayed inside box with program name

;  popdesc=description to be displayed when mouse is over program name

; NOTE: application will be listed on screen in the order they are entered into

; the INSTALL.INI file.

[iNSTALL WINDOW SETUP]

Title=Software Installation Selection

Prompt=Select Software for Install:       

Button=Start Installation

; Specifies left side position of window

Left=20

; specifies top position of window

Top=20

;specifies width of window

Width=800

; specifies height of window

Height=400

; number of columns to display program list

numcolumns=3

; specifies maximum number of items displayed in list will ignore anything in file beyond this number

Maxitems=0

; specifies number of items in INSTALL.INI (used for debugging)

numitems=0

[Acrobat Reader 6.0]

install=c:\install\Acrobat\AR6.msi /QB

selected=0

visible=1

installorder=10

active=1

popdesc=Acrobat Reader 6.0

boxdesc=Instals Acrobat Reader 6.0 to C:

register=%systemdrive%\install\register\acrobat.reg

edit: updated 11/16/2003 7:13p est

Link to comment
Share on other sites

Iceman, that is very cool and works quite well.

I would like to customize the appearance of the html and tried to include ccs but the script breaks on me when i insert this line:

html.writeline ("<title>" & wTitle & "</title>")
html.writeline ("<link href="install.css" rel="stylesheet" type="text/css">")
html.writeline ("</head>")

What did I do wrong? Error message is:

Windows Scripting Host

Script: install.vbs

Line: 137

Char: 30

Error: ')' expected

Code: 800A03EE

Source: Compilation error...

Link to comment
Share on other sites

Use this:

html.writeline ("<title>" &  wTitle & "</title>")
html.writeline ("<link href=" & chr(34) & "install.css" & chr(34) & " rel=" & chr(34) & "stylesheet" & _
                 chr(34) & " type=" & chr(34) & "text/css" & chr(34) & ">")
html.writeline ("</head>")

I've updated the downloadable script with this also.

I have also added a REGISTER option for the install.ini.

usage: register=path\yourreg.reg

registry keys will be added from yourreg.reg to the registry via "regedit /s path\yourreg.reg" after the application has finished its install.

EDIT: Script updated 11/16/03 7pm EST

install.vbs

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