In W2K I must deploy a CD that automatically install a directory to the root of C: and places an Icon on the desktop that points to it

       I have made 8 MSWord 2000 templates in a directory that are to be put on a CD so that the user can just install the cd and it will automatically,  through an autorun.inf install the directory to the root of C:\.  It is also suppose to plce a Icon on the users desk top so he can just click on it and pick one of the 8 templates.  This project is over due,   help.
colm7144Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

codeconquerorCommented:
How far have you gotten?  What specifically do you need help with?  Everything?
nffvrxqgrcfqvvcCommented:
To create a autorun cd, all you must do is place the autorun.inf file in the root of your CD-ROM and it looks like this. If you specify an icon then when somone looks at the CD-ROM drive letter they wil see that icon as the drive and not the standard disk icon.

[autorun]
OPEN=AUTORUN.EXE
ICON=AUTORUN.ICO

The easiest way to extract or create a desktop shorcut is to just make your application as an .msi installation or use package and deployment.  You can also use Winrar SFX which has the ability to extract silently. http://www.download.com/WinRAR/3000-2250_4-10350955.html?tag=lst-0-1
colm7144Author Commented:
   Dear egl104,

       Yes everything all I have is the 8 MS Word 2000 Templates That I need to put on a CD with a Autorun.inf and some way to extract them to the users directory and an icon on their desk top that will open up the directory.  Thanks.
Program_PoserCommented:
The following script will copy the files and create a shortcut (you will need to modify the userProfilePath variable if using Windows 9x, you could just hardcode to c:\windows\desktop\ in most cases, unless user profiles are enabled?).  The thing is, I don't think you will be able to launch this by directly calling the VBScript within Autorun... you might need to use (create)some sort of launcher program that will launch the vbscript file?  
www.devx.webdev/article/7023 - has some more information on this...



filesToCopy = "d:\templates\*.dot" ' Change this to point to the appropriate source location
destinationDirectory = "c:\templates\" ' Change this to the appropriate destination

Set FSO = CreateObject("Scripting.FileSystemObject")

' Create folder if it does not exist
If FSO.FolderExists(destinationDirectory) = False Then
      FSO.CreateFolder(destinationDirectory)
End If

' Copy files to destinationDirectory
FSO.CopyFile filesToCopy, destinationDirectory

' Create Shortcut
Set WshShell = Wscript.CreateObject("Wscript.Shell")
Set WshSysEnv = WshShell.Environment("process")
userProfilePath = WshSysEnv("USERPROFILE") & "\DESKTOP\"

Set oShellLink = WshShell.CreateShortcut(userProfilePAth & "Templates Folder.lnk")
oShellLink.TargetPath = "c:\templates"
oShellLink.Save

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.