|
1 | | -[Files] |
2 | | -Source: "RevitPythonShell\bin\Debug 2018\PythonConsoleControl.dll"; DestDir: "{app}"; Flags: replacesameversion |
3 | | -Source: "RevitPythonShell\bin\Debug 2018\RevitPythonShell.dll"; DestDir: "{app}"; Flags: replacesameversion |
4 | | -Source: "RevitPythonShell\bin\Debug 2018\RpsRuntime.dll"; DestDir: "{app}"; Flags: replacesameversion |
5 | | -Source: "packages\AvalonEdit.5.0.3\lib\Net40\ICSharpCode.AvalonEdit.dll"; DestDir: "{app}" |
6 | | -Source: "RequiredLibraries\IronPython.dll"; DestDir: "{app}" |
7 | | -Source: "RequiredLibraries\IronPython.Modules.dll"; DestDir: "{app}" |
8 | | -Source: "RequiredLibraries\Microsoft.Scripting.Metadata.dll"; DestDir: "{app}" |
9 | | -Source: "RequiredLibraries\Microsoft.Dynamic.dll"; DestDir: "{app}" |
10 | | -Source: "RequiredLibraries\Microsoft.Scripting.dll"; DestDir: "{app}" |
11 | | -Source: "RevitPythonShell\RevitPythonShell.xml"; DestDir: "{userappdata}\RevitPythonShell2018"; Flags: onlyifdoesntexist |
12 | | -Source: RevitPythonShell\init.py; DestDir: {userappdata}\RevitPythonShell2018; Flags: confirmoverwrite; |
13 | | -Source: RevitPythonShell\startup.py; DestDir: {userappdata}\RevitPythonShell2018; Flags: confirmoverwrite; |
14 | | - |
15 | | -[code] |
16 | | -{ HANDLE INSTALL PROCESS STEPS } |
17 | | -procedure CurStepChanged(CurStep: TSetupStep); |
18 | | -var |
19 | | - AddInFilePath: String; |
20 | | - AddInFileContents: String; |
21 | | -begin |
22 | | -
|
23 | | - if CurStep = ssPostInstall then |
24 | | - begin |
25 | | -
|
26 | | - { GET LOCATION OF USER AppData (Roaming) } |
27 | | - AddInFilePath := ExpandConstant('{userappdata}\Autodesk\Revit\Addins\2018\RevitPythonShell2018.addin'); |
28 | | -
|
29 | | - { CREATE NEW ADDIN FILE } |
30 | | - AddInFileContents := '<?xml version="1.0" encoding="utf-16" standalone="no"?>' + #13#10; |
31 | | - AddInFileContents := AddInFileContents + '<RevitAddIns>' + #13#10; |
32 | | - AddInFileContents := AddInFileContents + ' <AddIn Type="Application">' + #13#10; |
33 | | - AddInFileContents := AddInFileContents + ' <Name>RevitPythonShell</Name>' + #13#10; |
34 | | - AddInFileContents := AddInFileContents + ' <Assembly>' + ExpandConstant('{app}') + '\RevitPythonShell.dll</Assembly>' + #13#10; |
35 | | - AddInFileContents := AddInFileContents + ' <AddInId>3a7a1d24-51ed-462b-949f-1ddcca12008d</AddInId>' + #13#10; |
36 | | - AddInFileContents := AddInFileContents + ' <FullClassName>RevitPythonShell.RevitPythonShellApplication</FullClassName>' + #13#10; |
37 | | - AddInFileContents := AddInFileContents + ' <VendorId>RIPS</VendorId>' + #13#10; |
38 | | - AddInFileContents := AddInFileContents + ' </AddIn>' + #13#10; |
39 | | - AddInFileContents := AddInFileContents + '</RevitAddIns>' + #13#10; |
40 | | - SaveStringToFile(AddInFilePath, AddInFileContents, False); |
41 | | -
|
42 | | - end; |
43 | | -end; |
44 | | -
|
45 | | -
|
46 | | -[Setup] |
47 | | -AppName=RevitPythonShell for Autodesk Revit 2018 |
48 | | -AppVerName=RevitPythonShell for Autodesk Revit 2018 |
49 | | -RestartIfNeededByRun=false |
50 | | -DefaultDirName={pf32}\RevitPythonShell2018 |
51 | | -OutputBaseFilename=Setup_RevitPythonShell_2018 |
52 | | -ShowLanguageDialog=auto |
53 | | -FlatComponentsList=false |
54 | | -UninstallFilesDir={app}\Uninstall |
55 | | -UninstallDisplayName=RevitPythonShell for Autodesk Revit 2018 |
56 | | -AppVersion=2018.0 |
57 | | -VersionInfoVersion=2018.0 |
58 | | -VersionInfoDescription=RevitPythonShell for Autodesk Revit 2018 |
59 | | -VersionInfoTextVersion=RevitPythonShell for Autodesk Revit 2018 |
| 1 | +[Files] |
| 2 | +Source: "RevitPythonShell\bin\Debug 2018\PythonConsoleControl.dll"; DestDir: "{app}"; Flags: replacesameversion |
| 3 | +Source: "RevitPythonShell\bin\Debug 2018\RevitPythonShell.dll"; DestDir: "{app}"; Flags: replacesameversion |
| 4 | +Source: "RevitPythonShell\bin\Debug 2018\RpsRuntime.dll"; DestDir: "{app}"; Flags: replacesameversion |
| 5 | +Source: "packages\AvalonEdit.5.0.4\lib\Net40\ICSharpCode.AvalonEdit.dll"; DestDir: "{app}" |
| 6 | +Source: "RequiredLibraries\IronPython.dll"; DestDir: "{app}" |
| 7 | +Source: "RequiredLibraries\IronPython.Modules.dll"; DestDir: "{app}" |
| 8 | +Source: "RequiredLibraries\Microsoft.Scripting.Metadata.dll"; DestDir: "{app}" |
| 9 | +Source: "RequiredLibraries\Microsoft.Dynamic.dll"; DestDir: "{app}" |
| 10 | +Source: "RequiredLibraries\Microsoft.Scripting.dll"; DestDir: "{app}" |
| 11 | +Source: "RevitPythonShell\RevitPythonShell.xml"; DestDir: "{userappdata}\RevitPythonShell2018"; Flags: onlyifdoesntexist |
| 12 | +Source: RevitPythonShell\init.py; DestDir: {userappdata}\RevitPythonShell2018; Flags: confirmoverwrite; |
| 13 | +Source: RevitPythonShell\startup.py; DestDir: {userappdata}\RevitPythonShell2018; Flags: confirmoverwrite; |
| 14 | + |
| 15 | +[code] |
| 16 | +{ HANDLE INSTALL PROCESS STEPS } |
| 17 | +procedure CurStepChanged(CurStep: TSetupStep); |
| 18 | +var |
| 19 | + AddInFilePath: String; |
| 20 | + AddInFileContents: String; |
| 21 | +begin |
| 22 | +
|
| 23 | + if CurStep = ssPostInstall then |
| 24 | + begin |
| 25 | +
|
| 26 | + { GET LOCATION OF USER AppData (Roaming) } |
| 27 | + AddInFilePath := ExpandConstant('{userappdata}\Autodesk\Revit\Addins\2018\RevitPythonShell2018.addin'); |
| 28 | +
|
| 29 | + { CREATE NEW ADDIN FILE } |
| 30 | + AddInFileContents := '<?xml version="1.0" encoding="utf-16" standalone="no"?>' + #13#10; |
| 31 | + AddInFileContents := AddInFileContents + '<RevitAddIns>' + #13#10; |
| 32 | + AddInFileContents := AddInFileContents + ' <AddIn Type="Application">' + #13#10; |
| 33 | + AddInFileContents := AddInFileContents + ' <Name>RevitPythonShell</Name>' + #13#10; |
| 34 | + AddInFileContents := AddInFileContents + ' <Assembly>' + ExpandConstant('{app}') + '\RevitPythonShell.dll</Assembly>' + #13#10; |
| 35 | + AddInFileContents := AddInFileContents + ' <AddInId>3a7a1d24-51ed-462b-949f-1ddcca12008d</AddInId>' + #13#10; |
| 36 | + AddInFileContents := AddInFileContents + ' <FullClassName>RevitPythonShell.RevitPythonShellApplication</FullClassName>' + #13#10; |
| 37 | + AddInFileContents := AddInFileContents + ' <VendorId>RIPS</VendorId>' + #13#10; |
| 38 | + AddInFileContents := AddInFileContents + ' </AddIn>' + #13#10; |
| 39 | + AddInFileContents := AddInFileContents + '</RevitAddIns>' + #13#10; |
| 40 | + SaveStringToFile(AddInFilePath, AddInFileContents, False); |
| 41 | +
|
| 42 | + end; |
| 43 | +end; |
| 44 | +
|
| 45 | +
|
| 46 | +[Setup] |
| 47 | +AppName=RevitPythonShell for Autodesk Revit 2018 |
| 48 | +AppVerName=RevitPythonShell for Autodesk Revit 2018 |
| 49 | +RestartIfNeededByRun=false |
| 50 | +DefaultDirName={pf32}\RevitPythonShell2018 |
| 51 | +OutputBaseFilename=Setup_RevitPythonShell_2018 |
| 52 | +ShowLanguageDialog=auto |
| 53 | +FlatComponentsList=false |
| 54 | +UninstallFilesDir={app}\Uninstall |
| 55 | +UninstallDisplayName=RevitPythonShell for Autodesk Revit 2018 |
| 56 | +AppVersion=2018.0 |
| 57 | +VersionInfoVersion=2018.0 |
| 58 | +VersionInfoDescription=RevitPythonShell for Autodesk Revit 2018 |
| 59 | +VersionInfoTextVersion=RevitPythonShell for Autodesk Revit 2018 |
0 commit comments