(abort "You need Kickstart and Workbench 2.0 or higher to use GPDial. Sorry.")
)
(user 2)
(welcome)
;
; *** Install GPDial executable
;
(set @default-dest "C:")
(if (exists "INet:bin/" (noreq))
(set @default-dest "INet:bin/")
)
(if (exists "AmiTCP:bin/" (noreq))
(set @default-dest "AmiTCP:bin/")
)
(user 2)
(set @default-dest
(askdir
(prompt "Where would you like GPDial to be installed")
(help "Select the directory where you would like to install the GPDial executable. It would normally be somewhere on your path. e.g. AmiTCP:bin/")
(default @default-dest)
)
)
(
(working "Installing GPDial")
(copyfiles
(prompt "Copying GPDial")
(help "")
(source "bin/GPDial")
(dest @default-dest)
(infos)
)
)
(complete 10)
;
; *** Install replace executable
;
(set #dest "C:")
(set #dest
(askdir
(prompt "Where would you like Replace to be installed")
(help "Select the directory where you would like to install the Replace executable. It would normally go in C:\nReplace is a Find and Replace dos command.\n I have included it because I use it in conjunction with GPDial and I thought someone else might want to.")
(default #dest)
)
)
(
(working "Installing Replace")
(copyfiles
(prompt "Copying Replace")
(help "")
(source "Replace")
(dest #dest)
)
)
(complete 20)
;
; *** Install GPDial config and phonebook
;
(set #dest "S:")
(if (exists "INet:db/" (noreq))
(set #dest "INet:db/")
)
(if (exists "AmiTCP:db/" (noreq))
(set #dest "AmiTCP:db/")
)
(set #ndest
(askdir
(prompt "Where would you like to Install the config files")
(help "Select the directory where you would like to install the GPDial config files.\nIt would normally go in AmiTCP:db/.")
(default #dest)
)
)
(
(working "Installing GPDial config files")
(copyfiles
(prompt "Copying config files")
(help "")
(source "files/")
(dest #ndest)
(all)
)
)
(user 0)
(complete 40)
(if (NOT (= #dest #ndest))
(if (exists "ENV:")
(textfile
(prompt "Creating \"ENV:GPD_CONFIG\"\n\nThis will tell GPDial where the config files are")
(help "The GPD_CONFIG environment variable is used by GPDial to find the config files.\n If it doesn't exist GPDial will chach in AmiTCP:db/ and INet:db/ if they exist.")
(dest "ENV:GPD_CONFIG")
(append #ndest)
(append "/")
(confirm)
)
)
)
(complete 50)
(if (NOT (= #dest #ndest))
(if (exists "ENVARC:")
(textfile
(prompt "Creating \"ENVARC:GPD_CONFIG\"\n\nThis should be done so that ENV:GPD_CONFIG is created at boot time")
(help "This should be done so the GPD_CONFIG environment variable is created everytime the machine is booted.\nIf you skip this part you should add\nsetenv GPD_CONFIG <path>\nto your s:user-startup or s:startup-sequence")
(dest "ENVARC:GPD_CONFIG")
(append #ndest)
(append "/")
(confirm)
)
)
)
(user 2)
(complete 60)
;
; *** Install GPDial Scripts
;
(set #dest "S:")
(if (exists "INet:" (noreq))
(set #dest "INet:")
)
(if (exists "INet:Scripts/" (noreq))
(set #dest "INet:Scripts/")
)
(if (exists "AmiTCP:" (noreq))
(set #dest "AmiTCP:")
)
(if (exists "AmiTCP:Scripts/" (noreq))
(set #dest "AmiTCP:Scripts/")
)
(set #dest
(askdir
(prompt "Where would you like to Install the Script files")
(help "Select the directory where you would like to install the GPDial script files. It would normally go in AmiTCP:Scripts/. This directory probably wont exist so you should create it yourself.")
(default #dest)
)
)
(
(working "Installing GPDial script files")
(copyfiles
(prompt "Copying script files")
(help "")
(source "Scripts/")
(dest #dest)
(all)
)
)
(complete 80)
;
; *** Install GPDial and Replace docs
;
(set #mode
(askchoice
(prompt "Would you like to install \"GPDial\" and \"Replace\" documentation ?")
(choices "Yes" "No")
(help "Click on YES if you want to install \"GPDial\" and \"Replace\" documentation, otherwise click on NO")
)
)
;(set #installdocs (IN #mode 0))
(if (= 0 #mode)
(
(set #dest "")
(if (exists "INet:doc/" (noreq))
(set #dest "INet:doc/")
)
(if (exists "AmiTCP:doc/" (noreq))
(set #dest "AmiTCP:doc/")
)
;
; *** Install GPDial docs first
;
(set #dest
(askdir
(prompt "Where would you like to Install the GPDial documentation")
(help "Select the directory where you would like to install the GPDial documentation file. It would normally go in AmiTCP:doc/\nThere are 4 iff files that GPDial.guide uses. These will also be copied so you might be better creating a new directory for them all")
(default #dest)
)
)
(working "Installing GPDial doc file")
(copyfiles
(prompt "Copying GPDial doc file")
(help "")
(source "docs/")
(dest #dest)
(all)
)
;
; *** Install Replace docs next
;
(set #dest
(askdir
(prompt "Where would you like to Install the Replace documentation")
(help "Select the directory where you would like to install the Replace documentation file.")
(default #dest)
)
)
(working "Installing Replace doc file")
(copyfiles
(prompt "Copying Replace doc file")
(help "")
(source "Replace.doc")
(dest #dest)
)
)
)
(complete 100)
(exit "\"GPDial\" and \"Replace\" is now installed. You might have to reboot to pick up the config files.")