Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Dear Gosh Or Vbs Guru...

- - - - -

  • Please log in to reply
36 replies to this topic

#1
urapnes

urapnes
  • Member
  • 5 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!


How to remove advertisement from MSFN

#2
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • OS:Windows 7 x64
  • Country: Country Flag
At what point do you want this to run?

#3
urapnes

urapnes
  • Member
  • 5 posts

At what point do you want this to run?

After Windows XP installed and processing the RunOnce command.

#4
sandman_qc

sandman_qc

    Junior

  • Member
  • Pip
  • 66 posts
That would be cool indeed. I could use something like this myself...

#5
PeterS

PeterS

    Newbie

  • Member
  • 14 posts
To make a form with check boxes you can use IE as a front end.
http://www.borncity....r/WSHFormIE.htm

and to run the installation programs use WshShell.Run
http://www.ss64.com/wsh/run.html

#6
gosh

gosh

    gosh 2.0

  • Patrons
  • 2,347 posts
  • OS:none specified
  • Country: Country Flag
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

#7
Westi

Westi

    Junior

  • Member
  • Pip
  • 61 posts
Hi gosh,
hope you will read this, after your good-bye :)

It is the same procedure you used for other components:
expand sysoc.in_
replace ',hide,' with ',,'
Explained for W2k in KB223182
But i don't know what happend in XP.

Good luck
Posted Image

#8
sandman_qc

sandman_qc

    Junior

  • Member
  • Pip
  • 66 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!

How about something like this: XP Setup Menu

#9
urapnes

urapnes
  • Member
  • 5 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!

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
sandman_qc

sandman_qc

    Junior

  • Member
  • Pip
  • 66 posts

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

#11
996

996

    Member

  • Member
  • PipPip
  • 118 posts
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.

#12
996

996

    Member

  • Member
  • PipPip
  • 118 posts
:)

Attached Files



#13
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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

#14
996

996

    Member

  • Member
  • PipPip
  • 118 posts
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...

#15
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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

Attached Files



#16
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • OS:Windows 7 x64
  • Country: Country Flag
screenshot for those interested. sample with 6 applications.

Posted Image

#17
Wicked187

Wicked187

    Newbie

  • Member
  • 43 posts
996: You have nested doubled quotes... When you use the double quote in your HTML, the VBScript thinks it is closing out the double quote for it. Use single quotes for your HTML and double quotes for your VBScript.
I have 50000 characters to come up with a good signature, and I am just wasting bandwidth with this...

#18
b0r3d

b0r3d

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 821 posts
Paul385 and Nephilim have already created a program that does exactly what you're asking for. I personally use it myself. Its called XPES, and im sure if you search the forums, you'll find a download link.

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.
Remember, you can wear your underpants four times without washing.
Forwards. Backwards. Inside out forwards, and inside out backwards.

#19
996

996

    Member

  • Member
  • PipPip
  • 118 posts

Paul385 and Nephilim have already created a program that does exactly what you're asking for. I personally use it myself. Its called XPES, and im sure if you search the forums, you'll find a download link.

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
visaversa

visaversa

    Face it...

  • Member
  • PipPipPip
  • 428 posts
Without timeruse these links
and
With timer

Otherwise look on Names

W :)

#21
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Except that XPES is for creating the setup batch files.

This script gives you the ability to create a single image to install a custom selection of applications. So you put INSTALL.VBS in the runonce and after the rest of your install is done you can select what apps you want installed.

If you do more than one machine for many different people that want different applications then you don't have to redo the cd for each, you just select and go.

No programming is requireed either. Just set up the INSTALLS.INI with your setup options and run the script. The rest is done for you.

#22
GeckoPJ

GeckoPJ
  • Member
  • 3 posts
When I try to run install.vb script: D:\install.vbs
Line: 32
Char: 1
Error: File not found
Code: 800A0035
Source: Microsoft VBScript runtime error

Anyone know what the problem is?

GeckoPJ

#23
996

996

    Member

  • Member
  • PipPip
  • 118 posts
Does that happen when you START the vbs or when you run the installations?

1.) Is installs.ini in the same folder as installs.vbs?
2.) a similar error show up when you have a typo in your commands. check for that.

#24
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
Can we use variables such as %systemdrive%?

Oh, and since I don't know VB, can someone kindly show me how to enter text? I'd like to add a brief description of each item below it.

THX

#25
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • OS:Windows 7 x64
  • Country: Country Flag
1. Yes you can use environment variables in the INI file.

2. What exactly are you after knowing or doing as far as a description and where?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN