From c4600695c5a392fe789eea1bb49ce273a3402abc Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 13 Jul 2010 23:07:38 +0000 Subject: Fix first time installs in novice mode so the files end up in a directory rather than the root of whichever volume Installer decided to pick. svn path=/trunk/netsurf/; revision=10633 --- amiga/dist/Install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'amiga/dist/Install') diff --git a/amiga/dist/Install b/amiga/dist/Install index b8afc8d1d..79ce6d29a 100755 --- a/amiga/dist/Install +++ b/amiga/dist/Install @@ -245,6 +245,22 @@ (set @default-dest (getenv "AppPaths/NetSurf")) +; If env-var did not exist, this is a first time install. +; For novice users we must take care to put the files somewhere sensible. +(if (= @default-dest "") + ( + ; Workaround for Installer bug picking TEXTCLIP: as a sensible location + (if (= @default-dest "TextClip:") (set @default-dest "SYS:Utilities")) + + (if (= @user-level 0) + ( + (makedir (tackon @default-dest "NetSurf") (infos)) + (set @default-dest (tackon @default-dest "NetSurf")) + ) + ) + ) +) + (set @default-dest (askdir (prompt "Where would you like to install NetSurf?\n" -- cgit v1.2.3