MSFN Forum: Start Post-Install programs with Multiboot DVD - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Start Post-Install programs with Multiboot DVD Rate Topic: -----

#1 User is offline   drmarvin 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 07-January 04

Posted 17 October 2004 - 11:39 AM

I don't know if anyone else would fine this useful, but I thought I'd offer what I had.

When you make a Multiboot DVD, you most likely have the same stuff to install on most OS'es. Of course, you can make $OEM$ folders in each OS, and after optimization, there is no extra space, but if you make a change, you have to manually change all of them. Therefore, I came up with the idea that I wanted to have a Preinstall dir in the root of the DVD, and the Installer in the root also. The problem was of how to start the program off the CD.

With this VBS script, you can put just this file in your $OEM$ directory (I put it in \$OEM$\$$ just for convenience). My exaple uses WPI (http://www.msfn.org/...showtopic=28125) especially because it uses easy CDROM variables, but I guess it's no problem to use it with XPlode or something.

The script uses the Sourcepath reg entry, but the problem was that on a multiboot DVD, the Sourcepath was not the DVD root. This fixes that problem. Feel free to hack and change, I just hope it's useful to someone else.

Dim WshShell, testpath, key, fullpath, sliced
key="HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\Sourcepath"
Set WshShell = WScript.CreateObject("WScript.Shell")
testpath=WshShell.RegRead(key)
sliced = testpath.slice(0,2)
' change "wpi\wpi.hta" to whatever your path on the DVD is for your program
fullpath = sliced & "wpi\wpi.hta"
WSHShell.Run fullpath



#2 User is offline   afgok 

  • Group: Members
  • Posts: 1
  • Joined: 02-October 04

Posted 19 November 2004 - 08:06 PM

thanx for taking the time to post this this is exactly what i was looking for, i`m on the last stage of my multi os dvd.:P
i must admit i`m a complete novice :whistle: when it comes to scripts so a little help would be appreciated, can you tell me exactly how to use this script ie what commands to use and when to call it :blushing:

#3 User is offline   drmarvin 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 07-January 04

Posted 17 December 2004 - 11:55 AM

You can start the script in a number of ways. Good examples are the same as for XPlode (http://www.msfn.org/...showtopic=15076), but I choose to start minhe with [GuiRunOnce] in the winnt.sif file. I haven't tried it any other way, but I figure any other way will work too. This is the command line that I use in the winnt.sif file:

[GuiRunOnce]
"%systemroot%\system32\cmd.exe /c cscript /nologo %systemroot%\wpi.vbs"

This works because as I said before, I put the wpi/vbs script in the $OEM$\$$ directory under each OS. Then it works, and you just have to change the one post-install directory on the DVD.

#4 User is offline   bmn 

  • Unattended Friend
  • PipPipPip
  • Group: Members
  • Posts: 398
  • Joined: 05-October 04

Posted 17 December 2004 - 10:14 PM

yup using wpi for software installation is the best way i think.bcz we can choose softwares from the list.where as with runonceEX its not possible.
this my wpi

Attached File(s)



#5 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 18 December 2004 - 01:31 AM

you could also use WIHU, which allows for the similar type of functionality, but also deselecting and such via boolean expression (if newer version is installed, if a file is already there, etc.)

Share this topic:


Page 1 of 1
  • 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