MSFN Forum: Dear Gosh Or Vbs Guru... - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Dear Gosh Or Vbs Guru... VBS Script Help Rate Topic: -----

#1 User is offline   urapnes 

  • Group: Members
  • Posts: 5
  • Joined: 13-October 03

Posted 17 October 2003 - 10:49 AM

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!


#2 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

  Posted 17 October 2003 - 12:29 PM

At what point do you want this to run?

#3 User is offline   urapnes 

  • Group: Members
  • Posts: 5
  • Joined: 13-October 03

Posted 17 October 2003 - 12:58 PM

IcemanND, on Oct 17 2003, 12:29 PM, said:

At what point do you want this to run?

After Windows XP installed and processing the RunOnce command.

#4 User is offline   sandman_qc 

  • Junior
  • Pip
  • Group: Members
  • Posts: 66
  • Joined: 09-October 03

Posted 17 October 2003 - 01:38 PM

That would be cool indeed. I could use something like this myself...

#5 User is offline   PeterS 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 11-October 03

Posted 17 October 2003 - 03:02 PM

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 User is offline   gosh 

  • gosh 2.0
  • Group: Patrons
  • Posts: 2,347
  • Joined: 03-October 03
  • OS:none specified
  • Country: Country Flag

Posted 17 October 2003 - 08:18 PM

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 User is offline   Westi 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 23-September 03

Posted 19 October 2003 - 08:44 AM

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

#8 User is offline   sandman_qc 

  • Junior
  • Pip
  • Group: Members
  • Posts: 66
  • Joined: 09-October 03

Posted 19 October 2003 - 07:18 PM

urapnes, on Oct 17 2003, 10:49 AM, said:

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 User is offline   urapnes 

  • Group: Members
  • Posts: 5
  • Joined: 13-October 03

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:

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 User is offline   sandman_qc 

  • Junior
  • Pip
  • Group: Members
  • Posts: 66
  • Joined: 09-October 03

Posted 20 October 2003 - 05:08 AM

urapnes, on Oct 19 2003, 07:45 PM, said:

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 User is offline   996 

  • Member
  • PipPip
  • Group: Members
  • Posts: 118
  • Joined: 19-September 03

Posted 20 October 2003 - 05:11 AM

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 User is offline   996 

  • Member
  • PipPip
  • Group: Members
  • Posts: 118
  • Joined: 19-September 03

Posted 20 October 2003 - 12:18 PM

:)

Attached File(s)



#13 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 October 2003 - 02:56 PM

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:

Quote

;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 User is offline   996 

  • Member
  • PipPip
  • Group: Members
  • Posts: 118
  • Joined: 19-September 03

Posted 23 October 2003 - 03:48 AM

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 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 October 2003 - 07:47 AM

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 File(s)



#16 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 October 2003 - 07:55 AM

screenshot for those interested. sample with 6 applications.

Posted Image

#17 User is offline   Wicked187 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 16-October 03

Posted 23 October 2003 - 09:30 AM

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.

#18 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 23 October 2003 - 10:27 AM

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.

#19 User is offline   996 

  • Member
  • PipPip
  • Group: Members
  • Posts: 118
  • Joined: 19-September 03

Posted 23 October 2003 - 11:13 AM

b0r3d, on Oct 23 2003, 10:27 AM, said:

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 User is offline   visaversa 

  • Face it...
  • PipPipPip
  • Group: Members
  • Posts: 428
  • Joined: 14-October 03

Posted 23 October 2003 - 11:21 AM

Without timeruse these links
and
With timer

Otherwise look on Names

W :)

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy