-
Run From CD-DVD ROM
I trying to get my exe to copy a file\folder structure from compainon DVD. I'm found the below code in anohter thread, howeve I cannot find some of the items; i.e. "Count List Items". Is this because I'm using a newer version of SetupBuilder. Started with 7.x, now using 8, and this post was from 2007.
Set Variable %AVAILABLEDRIVES% to ScriptItem->Get System Information(Enumerate Disk Drives)
Set Variable %COUNTDRIVES% to ScriptItem->Count List Items(%AVAILABLEDRIVES%)
Set Variable %DRIVEID% to "0"
Loop (%COUNTDRIVES% Times)
Set Variable %DRIVEID% to (Increment Variable by 1)
Set Variable %DRIVE% to ScriptItem->Get List Item(%AVAILABLEDRIVES%, %DRIVEID%)
Set Variable %DRIVETYPE% to ScriptItem->Get System Information(Drive Type) of "%DRIVE%"
If %DRIVETYPE% Equals "$DRIVE_REMOTE$" Then
Display Message Box "%DRIVE% is a network drive!" -- ""
-
Re: Run From CD-DVD ROM
Hello,
Quick question: is your setup.exe located on this CD/DVD and you would like to copy a folder tree as part as your installation from CD/DVD to the target machine?
Friedrich
-
Re: Run From CD-DVD ROM
-
Re: Run From CD-DVD ROM
Setup.exe will be on seperate.
-
Re: Run From CD-DVD ROM
Hello,
You can the following in:
1. Get System Information(Enumerate Disk Drives)
Script Editor -> "Get System Info..." -> Enumerate Disk Drives
2. Count List Items
Script Editor -> "Handle String Operation..." -> List Item: Count
3. Get List Item
Script Editor -> "Handle String Operation..." -> List Item: Get
4. Get System Information(Drive Type)
Script Editor -> "Get System Info..." -> Drive Type
Friedrich
-
1 Attachment(s)
Re: Run From CD-DVD ROM
My it just my inexperience with programing; not a programer. I'm using the following code trying to get to copy info from DVD onto the C:\. I did set the code to do a pop box to verify it would find the DVD\CD ROM. See attached.
Trying to get the variable set to use Copy folder no matter what drive letter is set for the dvd.
-
Re: Run From CD-DVD ROM
To be honest with you, I still don't understand what you are trying to do. What if the user has multiple CD/DVD drives? Why is the setup.exe not located on that specific CD/DVD? Why do you need this code at all?
Friedrich
-
Re: Run From CD-DVD ROM
I thought about that after the last post; multiple drives. Over 90% of our clients have single drives. Creating an exe for our techs to prefrom workstation setup. Would like the exe to be able to do both; if possilbe find the files from an DVD ISO rather the setup.exe was on the media or local to the workstation.
I'm trying to work on how to detect the CD\DVD ROM (done), then assign it as a variable. Long term I would like to work this out to be something like if drive is CDROM and has "X" folder then ___. For right now, just working on setting the CDROM as a variable.
-
Re: Run From CD-DVD ROM
It's still not clear to me why do you have to do all this <g>. In fact, CD/DVD is already a thing from the past. Even if customers receive something on CD/DVD, most users will copy it over to a portable USB hard drive or an USB stick or a WiFi hard drive, etc. So IMO, it would be a bad idea to use this CD/DVD detection mechanism for your install. An installation should continue to work if the media format changes.
Friedrich
-
Re: Run From CD-DVD ROM
Sending out compainon media on 8.5 DVDs. Other installation files are totaling about 8.4 GIG. DVDs are cheap media, and we don't have to track them; once they leave they are gone. I just need a tech to run the exe and copy the additional staging files from the media; in ISO. Most of our clients are using VMs, so this format we can ship out and forget about it. Once client receives it, they place the DVD in the drive, tech mounts the ISO on the VM, runs the setup.exe to prep the system and extract the staging files.