GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpproxy-go/scripts/installer.iss at main · DocSpring/mcpproxy-go

Expand file tree

/

installer.iss

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
173 lines (145 loc) · 5.35 KB
/

installer.iss

Copy path

File metadata and controls

173 lines (145 loc) · 5.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
; MCPProxy Windows Installer - Inno Setup Script
; This installer packages both mcpproxy.exe (core server) and mcpproxy-tray.exe (GUI application)
; for Windows 10 version 21H2+ and Windows 11 (amd64/arm64)
#define AppName "MCPProxy"
#define AppPublisher "Smart MCP Proxy"
#define AppURL "https://github.com/smart-mcp-proxy/mcpproxy-go"
#define AppExeName "mcpproxy-tray.exe"
#define UpgradeCode "{{A1B2C3D4-E5F6-7890-ABCD-EF1234567890}}"
; Build variables (passed via command line)
#ifndef Version
#define Version "1.0.0"
#endif
#ifndef Arch
#define Arch "amd64"
#endif
#ifndef BinPath
#define BinPath "dist\windows-" + Arch
#endif
[Setup]
; Identification
AppId={#UpgradeCode}
AppName={#AppName}
AppVersion={#Version}
AppPublisher={#AppPublisher}
AppPublisherURL={#AppURL}
AppSupportURL={#AppURL}
AppUpdatesURL={#AppURL}/releases
; Installation directories
DefaultDirName={autopf}\{#AppName}
DefaultGroupName={#AppName}
DisableProgramGroupPage=yes
; Output configuration
OutputDir=..\dist
OutputBaseFilename=mcpproxy-setup-{#Version}-{#Arch}
Compression=lzma2
SolidCompression=yes
; Architecture support (multi-arch single installer)
ArchitecturesAllowed=x64compatible arm64
ArchitecturesInstallIn64BitMode=x64compatible arm64
; System requirements
MinVersion=10.0.19044
PrivilegesRequired=admin
ChangesEnvironment=yes
; UI configuration
WizardStyle=modern
DisableWelcomePage=no
LicenseFile=..\LICENSE
; InfoBeforeFile will be added in Phase 6 (US4)
; InfoAfterFile will be added in Phase 6 (US4)
; Uninstall configuration
UninstallDisplayIcon={app}\{#AppExeName}
UninstallDisplayName={#AppName}
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
; Core binary (architecture-specific)
Source: "{#BinPath}\mcpproxy.exe"; DestDir: "{app}"; Flags: ignoreversion
; Tray application (architecture-specific)
Source: "{#BinPath}\mcpproxy-tray.exe"; DestDir: "{app}"; Flags: ignoreversion
; Release notes (optional - included if available, installed to docs subdirectory)
#ifdef ReleaseNotesPath
Source: "{#ReleaseNotesPath}"; DestDir: "{app}\docs"; DestName: "RELEASE_NOTES.md"; Flags: ignoreversion
#endif
[Icons]
; Start Menu shortcut (FR-004)
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"; WorkingDir: "{app}"
; Desktop shortcut disabled per FR-004 (Start Menu only)
; Name: "{autodesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon
[Registry]
; System PATH modification (FR-003, US2)
; Add installation directory to system-level PATH for all users
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \
ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; \
Check: NeedsAddPath('{app}')
; Application metadata for tracking
Root: HKCU; Subkey: "SOFTWARE\{#AppPublisher}\{#AppName}"; \
ValueType: string; ValueName: "InstallDate"; ValueData: "{code:GetInstallDateString}"; \
Flags: uninsdeletekey
Root: HKCU; Subkey: "SOFTWARE\{#AppPublisher}\{#AppName}"; \
ValueType: string; ValueName: "Architecture"; ValueData: "{#Arch}"
[Run]
; Post-install launch option (FR-005, US3)
; Launch tray application after installation completes (optional checkbox)
Filename: "{app}\{#AppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(AppName, '&', '&&')}}"; \
Flags: nowait postinstall skipifsilent
[Code]
// Architecture detection functions
function IsX64: Boolean;
begin
Result := ProcessorArchitecture = paX64;
end;
function IsARM64: Boolean;
begin
Result := ProcessorArchitecture = paARM64;
end;
function IsCurrentArch: Boolean;
begin
Result := (IsX64 and ('{#Arch}' = 'amd64')) or (IsARM64 and ('{#Arch}' = 'arm64'));
end;
function GetInstallDateString(Param: string): string;
begin
Result := GetDateTimeString('yyyy-mm-dd hh:nn:ss', '-', ':');
end;
// PATH manipulation functions (US2 - FR-003)
function NeedsAddPath(Param: string): Boolean;
var
OrigPath: string;
begin
// Query current system PATH
if not RegQueryStringValue(HKEY_LOCAL_MACHINE,
'SYSTEM\CurrentControlSet\Control\Session Manager\Environment',
'Path', OrigPath)
then begin
Result := True;
exit;
end;
// Check if installation directory already in PATH (case-insensitive)
// Add semicolons to ensure exact directory match (not substring)
Result := Pos(';' + Uppercase(Param) + ';', ';' + Uppercase(OrigPath) + ';') = 0;
// PATH length validation (FR-015) - Windows limit is 2047 characters
if Result and (Length(OrigPath) + Length(Param) + 1 > 2047) then
begin
MsgBox('Warning: Adding MCPProxy to PATH would exceed Windows limit (2047 characters).' + #13#10 +
'You may need to manually clean up your PATH environment variable.', mbError, MB_OK);
Result := False;
end;
end;
// Process detection (optional - check if mcpproxy apps are running)
function InitializeSetup(): Boolean;
begin
Result := True;
// Future enhancement: Check for running processes
// if IsAppRunning('mcpproxy.exe') or IsAppRunning('mcpproxy-tray.exe') then
// MsgBox('MCPProxy is currently running. Please close it before installing.', mbError, MB_OK);
// Result := False;
end;
// Custom uninstall preservation of user data
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usPostUninstall then
begin
// User data in %USERPROFILE%\.mcpproxy is automatically preserved
// No action needed - this is the default behavior per FR-019
end;
end;
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.