PDA

View Full Version : Network Install / WorkStation Install



NewsArchive
03-29-2006, 03:36 AM
I would like to give my end user the option of installing Locally or on the
network drive

If they select network - I want to install the data files on the network
If the install Workstation I want to install the EXE and point the shortcut
to the network drive

What is the best way to do this?

--
Eric Jacobowitz
www.castlecomputer.com

NewsArchive
03-31-2006, 01:17 AM
Eric,

You can use a second "Select Install Folder" for your network install.
Only display it if it is a network install (e.g. use a Standard and
Network install setup type).

You can use a combination of Get System Information (Enumerate Disk
Drives) to get all available disc drives and Get System Information
(Drive Type) to get the drive type to detect a network drive.

The following code snipped should detect a network drive.

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!" -- ""
End
End

Does this help?

Friedrich

Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 5