Dear Gosh Or Vbs Guru... VBS Script Help
#1
Posted 17 October 2003 - 10:49 AM
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!
#3
Posted 17 October 2003 - 12:58 PM
IcemanND, on Oct 17 2003, 12:29 PM, said:
After Windows XP installed and processing the RunOnce command.
#4
Posted 17 October 2003 - 01:38 PM
#5
Posted 17 October 2003 - 03:02 PM
http://www.borncity....r/WSHFormIE.htm
and to run the installation programs use WshShell.Run
http://www.ss64.com/wsh/run.html
#6
Posted 17 October 2003 - 08:18 PM
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
#8
Posted 19 October 2003 - 07:18 PM
urapnes, on Oct 17 2003, 10:49 AM, said:
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
#9
Posted 19 October 2003 - 07:45 PM
sandman_qc, on Oct 19 2003, 07:18 PM, said:
urapnes, on Oct 17 2003, 10:49 AM, said:
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
#10
Posted 20 October 2003 - 05:08 AM
urapnes, on Oct 19 2003, 07:45 PM, said:
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...
#11
Posted 20 October 2003 - 05:11 AM
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.
#12
Posted 20 October 2003 - 12:18 PM
#13
Posted 21 October 2003 - 02:56 PM
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:
Quote
;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
#14
Posted 23 October 2003 - 03:48 AM
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...
#15
Posted 23 October 2003 - 07:47 AM
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
Attached File(s)
-
install.vbs (11.01K)
Number of downloads: 438
#16
Posted 23 October 2003 - 07:55 AM
#17
Posted 23 October 2003 - 09:30 AM
#18
Posted 23 October 2003 - 10:27 AM
The best thing about it is, its fully customizable. You dont need to know any programing code to customize it to the programs you want. Just edit the ini file associated with it, and Bob's your monkey.
#19
Posted 23 October 2003 - 11:13 AM
b0r3d, on Oct 23 2003, 10:27 AM, said:
The best thing about it is, its fully customizable. You dont need to know any programing code to customize it to the programs you want. Just edit the ini file associated with it, and Bob's your monkey.
Sounds interesting but unfortunately one cannot search for XPES because the search term is too short.
#20
Posted 23 October 2003 - 11:21 AM
- ← File copy error at 22min
- Unattended Windows 2000/XP/2003
- Requesting Help - File operations w/ Install Dir →



Help

Back to top










