Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
66 lines (58 loc) · 2.86 KB

File metadata and controls

66 lines (58 loc) · 2.86 KB
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
[Files]
Source: "RevitPythonShell\bin\Release\2017\PythonConsoleControl.dll"; DestDir: "{app}"; Flags: replacesameversion
Source: "RevitPythonShell\bin\Release\2017\RevitPythonShell.dll"; DestDir: "{app}"; Flags: replacesameversion
Source: "RevitPythonShell\bin\Release\2017\RpsRuntime.dll"; DestDir: "{app}"; Flags: replacesameversion
Source: "RevitPythonShell\bin\Release\2017\RevitPythonShell.addin"; DestDir: "{userappdata}\Autodesk\Revit\Addins\2017"; Flags: replacesameversion
Source: "RevitPythonShell\bin\Release\2017\ICSharpCode.AvalonEdit.dll"; DestDir: "{app}"
Source: "RevitPythonShell\bin\Release\2017\IronPython.dll"; DestDir: "{app}"
Source: "RevitPythonShell\bin\Release\2017\IronPython.Modules.dll"; DestDir: "{app}"
Source: "RevitPythonShell\bin\Release\2017\Microsoft.Scripting.Metadata.dll"; DestDir: "{app}"
Source: "RevitPythonShell\bin\Release\2017\Microsoft.Dynamic.dll"; DestDir: "{app}"
Source: "RevitPythonShell\bin\Release\2017\Microsoft.Scripting.dll"; DestDir: "{app}"
Source: "RevitPythonShell\bin\Release\2017\DefaultConfig\RevitPythonShell.xml"; DestDir: "{userappdata}\RevitPythonShell\2017"; Flags: onlyifdoesntexist
Source: "RevitPythonShell\bin\Release\2017\DefaultConfig\init.py"; DestDir: {userappdata}\RevitPythonShell\2017; Flags: confirmoverwrite;
Source: "RevitPythonShell\bin\Release\2017\DefaultConfig\startup.py"; DestDir: {userappdata}\RevitPythonShell\2017; Flags: confirmoverwrite;
[code]
{ HANDLE INSTALL PROCESS STEPS }
procedure CurStepChanged(CurStep: TSetupStep);
var
AddInFilePath: String;
LoadedFile : TStrings;
AddInFileContents: String;
ReplaceString: String;
SearchString: String;
begin
if CurStep = ssPostInstall then
begin
AddinFilePath := ExpandConstant('{userappdata}\Autodesk\Revit\Addins\2017\RevitPythonShell.addin');
LoadedFile := TStringList.Create;
SearchString := 'Assembly>RevitPythonShell.dll<';
ReplaceString := 'Assembly>' + ExpandConstant('{app}') + '\RevitPythonShell.dll<';
try
LoadedFile.LoadFromFile(AddInFilePath);
AddInFileContents := LoadedFile.Text;
{ Only save if text has been changed. }
if StringChangeEx(AddInFileContents, SearchString, ReplaceString, True) > 0 then
begin;
LoadedFile.Text := AddInFileContents;
LoadedFile.SaveToFile(AddInFilePath);
end;
finally
LoadedFile.Free;
end;
end;
end;
[Setup]
AppName=RevitPythonShell for Autodesk Revit 2017
AppVerName=RevitPythonShell for Autodesk Revit 2017
RestartIfNeededByRun=false
DefaultDirName={pf32}\RevitPythonShell\2017
OutputBaseFilename=Setup_RevitPythonShell_2017
ShowLanguageDialog=auto
FlatComponentsList=false
UninstallFilesDir={app}\Uninstall
UninstallDisplayName=RevitPythonShell for Autodesk Revit 2017
AppVersion=2017.0
VersionInfoVersion=2017.0
VersionInfoDescription=RevitPythonShell for Autodesk Revit 2017
VersionInfoTextVersion=RevitPythonShell for Autodesk Revit 2017
Morty Proxy This is a proxified and sanitized view of the page, visit original site.