-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstall
More file actions
109 lines (92 loc) · 3.33 KB
/
Copy pathInstall
File metadata and controls
109 lines (92 loc) · 3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
; ~ Bifrost [PROGRAM_NAME]~ Installer Script
; $VER: ~ Bifrost [PROGRAM_EXE_NAME]~ ~ 0.6.2 [PROGRAM_VERSION]~ (~ 24.08.2026 [PROGRAM_DATE]~)
(complete 0)
(set @app-name "~ Bifrost [PROGRAM_NAME]~")
(set @default-dest "C:")
(complete 3)
; Welcome message
(welcome "Welcome to the ~ Bifrost [PROGRAM_NAME]~ installer. ~ Bifrost [PROGRAM_NAME]~ lets your Amiga share the mouse and keyboard of a PC on the same network - no KVM switch needed. This installer will guide you through the required steps.")
(complete 6)
; ========================================
; Step 1: Select destination for executable
; ========================================
(set #dest-cmd
(askdir
(prompt "Where do you want to install the ~ Bifrost [PROGRAM_EXE_NAME]~ executable?\n(usually your C: command directory)")
(help @askdir-help)
(default "C:")
)
)
(complete 15)
; ========================================
; Step 2: Copy executable
; ========================================
(copyfiles
(prompt "Copying ~ Bifrost [PROGRAM_EXE_NAME]~ executable...")
(help @copyfiles-help)
(protect "~ Bifrost [PROGRAM_EXE_NAME]~" "+e")
(confirm "expert")
(source "~ Bifrost [PROGRAM_EXE_NAME]~")
(dest #dest-cmd)
(choices "~ Bifrost [PROGRAM_EXE_NAME]~")
(infos)
)
(complete 40)
; ========================================
; Step 3: Select destination for guide
; ========================================
(set #dest-help
(askdir
(prompt "Where should the ~ Bifrost [PROGRAM_NAME]~.guide documentation be installed?\n(usually Help: or HELP:)")
(help @askdir-help)
(default "HELP:")
)
)
(complete 55)
; ========================================
; Step 4: Copy guide
; ========================================
(copyfiles
(prompt "Copying ~ Bifrost [PROGRAM_NAME]~.guide documentation...")
(help @copyfiles-help)
(confirm "expert")
(source "~ Bifrost [PROGRAM_NAME]~.guide")
(dest #dest-help)
(choices "~ Bifrost [PROGRAM_NAME]~.guide")
(infos)
)
(complete 80)
; ========================================
; Step 5: Optional User-Startup configuration
; ========================================
(set #startup-add
(askchoice
(prompt "Add ~ Bifrost [PROGRAM_EXE_NAME]~ to your User-Startup script?\n\nThis will make the daemon start automatically every time your Amiga boots. It will look for a PC running the Bifrost server on the same network - no configuration needed.\n\nYou can edit User-Startup later to pass an edge/corner argument (see the guide).")
(help @askchoice-help)
(choices
"Yes - Add to User-Startup"
"No - I'll start it manually"
)
(default 0)
)
)
; If user wants to add to startup
(if (= #startup-add 0)
(
(complete 90)
(startup "~ Bifrost [PROGRAM_EXE_NAME]~"
(prompt "Adding ~ Bifrost [PROGRAM_EXE_NAME]~ to User-Startup...")
(help @startup-help)
(command "C:~ Bifrost [PROGRAM_EXE_NAME]~ >NIL:\n")
)
)
) ; End if startup-add
; ========================================
; Installation complete
; ========================================
(complete 100)
; youpi ^^
(if (= #startup-add 0)
(exit "Installation Complete!\n~ Bifrost [PROGRAM_NAME]~ has been installed.\n\nReboot your Amiga, then start the Bifrost server on your PC - the daemon will find it automatically.")
(exit "Installation Complete!\n~ Bifrost [PROGRAM_NAME]~ has been installed.\n\nTo start the daemon now, run:\n C:~ Bifrost [PROGRAM_EXE_NAME]~")
)