forked from pythonnet/pythonnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.iss
More file actions
executable file
·73 lines (53 loc) · 2.45 KB
/
installer.iss
File metadata and controls
executable file
·73 lines (53 loc) · 2.45 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
; --------------------------------------------------------------------------------
; Setup script for Python for .NET (based on InnoSetup 5.0.8)
; --------------------------------------------------------------------------------
[Setup]
SourceDir=..
OutputDir=release
AppName=Python for .NET
AppVerName=Python for .NET 1.0 RC2
AppPublisher=Brian Lloyd
AppCopyright=Copyright © 2005 Zope Corporation
DefaultDirName={pf}\PythonNet
DefaultGroupName=Python for .NET
LicenseFile=installer\license.txt
DisableProgramGroupPage=yes
WizardImageFile=installer\left.bmp
WizardSmallImageFile=installer\top.bmp
WizardImageStretch=no
[Tasks]
Name: "existing"; Description: "Install .NET support in &existing python installation"; Flags: unchecked
Name: "icon"; Description: "Create a &desktop icon"; Flags: unchecked
[Files]
Source: "makefile"; DestDir: "{app}"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion
Source: "python.exe"; DestDir: "{app}"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion
Source: "*.dll"; DestDir: "{app}"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion
Source: "demo\*.*"; DestDir: "{app}\demo"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion recursesubdirs
Source: "doc\*.*"; DestDir: "{app}\doc"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion recursesubdirs
Source: "src\*.*"; DestDir: "{app}\src"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion recursesubdirs
Source: "redist\2.3\*.*"; DestDir: "{app}"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion recursesubdirs
Source: "doc/readme.html"; DestDir: "{app}/doc"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion isreadme
Source: "*Python.Runtime.dll"; DestDir: "{code:GetPythonDir}"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion recursesubdirs; Check: UpdateExisting
Source: "CLR.dll"; DestDir: "{code:GetPythonDir}"; Excludes: ".svn*,~*,CVS*"; Flags: ignoreversion recursesubdirs; Check: UpdateExisting
[Icons]
Name: "{group}\Python for .NET"; Filename: "{app}\python.exe"
Name: "{userdesktop}\Python for .NET"; Filename: "{app}\python.exe"; Tasks: icon
[Code]
function GetPythonDir(Default: String): string;
var
path : string;
begin
path := '';
RegQueryStringValue(HKLM, 'Software\Python\PythonCore\2.3\InstallPath', '', path);
Result := path;
end;
function UpdateExisting(): boolean;
var
temp: string;
res: boolean;
begin
temp := WizardSelectedTasks(False);
res := (Pos('existing', temp) <> 0);
temp := GetPythonDir('');
Result := res and (Pos('Python', temp) <> 0);
end;