Skip to content

Commit a76eea4

Browse files
committed
first step towards an installer for RPS 2018
1 parent a1fb78b commit a76eea4

File tree

8 files changed

+128
-1
lines changed

8 files changed

+128
-1
lines changed
5.32 MB
Binary file not shown.

PythonConsoleControl/PythonConsoleControl.csproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
<PropertyGroup Condition="'$(Configuration)' == 'Debug 2017'">
4141
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
4242
</PropertyGroup>
43+
<PropertyGroup Condition="'$(Configuration)' == 'Debug 2018'">
44+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
45+
</PropertyGroup>
4346
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
4447
<DebugSymbols>true</DebugSymbols>
4548
<DebugType>full</DebugType>
@@ -89,6 +92,16 @@
8992
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
9093
<Prefer32Bit>false</Prefer32Bit>
9194
</PropertyGroup>
95+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug 2018|AnyCPU'">
96+
<DebugSymbols>true</DebugSymbols>
97+
<OutputPath>bin\Debug 2018\</OutputPath>
98+
<DefineConstants>DEBUG;TRACE</DefineConstants>
99+
<DebugType>full</DebugType>
100+
<PlatformTarget>AnyCPU</PlatformTarget>
101+
<ErrorReport>prompt</ErrorReport>
102+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
103+
<Prefer32Bit>false</Prefer32Bit>
104+
</PropertyGroup>
92105
<ItemGroup>
93106
<Reference Include="ICSharpCode.AvalonEdit, Version=5.0.3.0, Culture=neutral, PublicKeyToken=9cc39be672370310, processorArchitecture=MSIL">
94107
<HintPath>..\packages\AvalonEdit.5.0.3\lib\Net40\ICSharpCode.AvalonEdit.dll</HintPath>
25.7 MB
Binary file not shown.
2.61 MB
Binary file not shown.

RevitPythonShell.sln

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26228.9
4+
VisualStudioVersion = 15.0.26228.12
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RevitPythonShell", "RevitPythonShell\RevitPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"
77
ProjectSection(ProjectDependencies) = postProject
@@ -26,6 +26,7 @@ Global
2626
Debug 2015|Any CPU = Debug 2015|Any CPU
2727
Debug 2016|Any CPU = Debug 2016|Any CPU
2828
Debug 2017|Any CPU = Debug 2017|Any CPU
29+
Debug 2018|Any CPU = Debug 2018|Any CPU
2930
EndGlobalSection
3031
GlobalSection(ProjectConfigurationPlatforms) = postSolution
3132
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2014|Any CPU.ActiveCfg = Debug 2014|Any CPU
@@ -36,6 +37,8 @@ Global
3637
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2016|Any CPU.Build.0 = Debug 2016|Any CPU
3738
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2017|Any CPU.ActiveCfg = Debug 2017|Any CPU
3839
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2017|Any CPU.Build.0 = Debug 2017|Any CPU
40+
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2018|Any CPU.ActiveCfg = Debug 2018|Any CPU
41+
{7E37F14E-D840-42F8-8CA6-90FFC5497972}.Debug 2018|Any CPU.Build.0 = Debug 2018|Any CPU
3942
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2014|Any CPU.ActiveCfg = Debug|Any CPU
4043
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2014|Any CPU.Build.0 = Debug|Any CPU
4144
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2015|Any CPU.ActiveCfg = Debug 2015|Any CPU
@@ -44,6 +47,8 @@ Global
4447
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2016|Any CPU.Build.0 = Debug 2016|Any CPU
4548
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2017|Any CPU.ActiveCfg = Debug 2017|Any CPU
4649
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2017|Any CPU.Build.0 = Debug 2017|Any CPU
50+
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2018|Any CPU.ActiveCfg = Debug 2018|Any CPU
51+
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}.Debug 2018|Any CPU.Build.0 = Debug 2018|Any CPU
4752
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2014|Any CPU.ActiveCfg = Debug 2014|Any CPU
4853
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2014|Any CPU.Build.0 = Debug 2014|Any CPU
4954
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2015|Any CPU.ActiveCfg = Debug 2015|Any CPU
@@ -52,6 +57,8 @@ Global
5257
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2016|Any CPU.Build.0 = Debug 2016|Any CPU
5358
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2017|Any CPU.ActiveCfg = Debug 2017|Any CPU
5459
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2017|Any CPU.Build.0 = Debug 2017|Any CPU
60+
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2018|Any CPU.ActiveCfg = Debug 2018|Any CPU
61+
{C8446636-C663-409F-82D0-72C0D55BBA1C}.Debug 2018|Any CPU.Build.0 = Debug 2018|Any CPU
5562
EndGlobalSection
5663
GlobalSection(SolutionProperties) = preSolution
5764
HideSolutionNode = FALSE

RevitPythonShell/RevitPythonShell.csproj

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
<PropertyGroup Condition="'$(Configuration)' == 'Debug 2017'">
5353
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
5454
</PropertyGroup>
55+
<PropertyGroup Condition="'$(Configuration)' == 'Debug 2018'">
56+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
57+
</PropertyGroup>
5558
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
5659
<DebugSymbols>true</DebugSymbols>
5760
<DebugType>full</DebugType>
@@ -111,6 +114,16 @@
111114
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
112115
<Prefer32Bit>false</Prefer32Bit>
113116
</PropertyGroup>
117+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug 2018|AnyCPU'">
118+
<DebugSymbols>true</DebugSymbols>
119+
<OutputPath>bin\Debug 2018\</OutputPath>
120+
<DefineConstants>DEBUG;TRACE</DefineConstants>
121+
<DebugType>full</DebugType>
122+
<PlatformTarget>AnyCPU</PlatformTarget>
123+
<ErrorReport>prompt</ErrorReport>
124+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
125+
<Prefer32Bit>false</Prefer32Bit>
126+
</PropertyGroup>
114127
<ItemGroup Condition="'$(Configuration)' == 'Debug 2014'">
115128
<Reference Include="RevitAPI">
116129
<HintPath>..\RequiredLibraries\Revit2014\RevitAPI.dll</HintPath>
@@ -143,6 +156,14 @@
143156
<HintPath>..\RequiredLibraries\Revit2017\RevitAPIUI.dll</HintPath>
144157
</Reference>
145158
</ItemGroup>
159+
<ItemGroup Condition="'$(Configuration)' == 'Debug 2018'">
160+
<Reference Include="RevitAPI">
161+
<HintPath>..\RequiredLibraries\Revit2018\RevitAPI.dll</HintPath>
162+
</Reference>
163+
<Reference Include="RevitAPIUI">
164+
<HintPath>..\RequiredLibraries\Revit2018\RevitAPIUI.dll</HintPath>
165+
</Reference>
166+
</ItemGroup>
146167
<ItemGroup>
147168
<Reference Include="ICSharpCode.AvalonEdit, Version=5.0.3.0, Culture=neutral, PublicKeyToken=9cc39be672370310, processorArchitecture=MSIL">
148169
<HintPath>..\packages\AvalonEdit.5.0.3\lib\Net40\ICSharpCode.AvalonEdit.dll</HintPath>
@@ -172,9 +193,15 @@
172193
<Reference Include="PythonConsoleControl">
173194
<HintPath>..\PythonConsoleControl\bin\Debug 2017\PythonConsoleControl.dll</HintPath>
174195
</Reference>
196+
<Reference Include="PythonConsoleControl">
197+
<HintPath>..\PythonConsoleControl\bin\Debug 2018\PythonConsoleControl.dll</HintPath>
198+
</Reference>
175199
<Reference Include="RpsRuntime">
176200
<HintPath>..\RpsRuntime\bin\Debug 2017\RpsRuntime.dll</HintPath>
177201
</Reference>
202+
<Reference Include="RpsRuntime">
203+
<HintPath>..\RpsRuntime\bin\Debug 2018\RpsRuntime.dll</HintPath>
204+
</Reference>
178205
<Reference Include="System" />
179206
<Reference Include="System.Core">
180207
<RequiredTargetFramework>3.5</RequiredTargetFramework>

RpsRuntime/RpsRuntime.csproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<PropertyGroup Condition="'$(Configuration)' == 'Debug 2017'">
3030
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
3131
</PropertyGroup>
32+
<PropertyGroup Condition="'$(Configuration)' == 'Debug 2018'">
33+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
34+
</PropertyGroup>
3235
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug 2014|AnyCPU'">
3336
<DebugSymbols>true</DebugSymbols>
3437
<OutputPath>bin\Debug 2014\</OutputPath>
@@ -69,6 +72,16 @@
6972
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
7073
<Prefer32Bit>false</Prefer32Bit>
7174
</PropertyGroup>
75+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug 2018|AnyCPU'">
76+
<DebugSymbols>true</DebugSymbols>
77+
<OutputPath>bin\Debug 2018\</OutputPath>
78+
<DefineConstants>DEBUG;TRACE</DefineConstants>
79+
<DebugType>full</DebugType>
80+
<PlatformTarget>AnyCPU</PlatformTarget>
81+
<ErrorReport>prompt</ErrorReport>
82+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
83+
<Prefer32Bit>false</Prefer32Bit>
84+
</PropertyGroup>
7285
<ItemGroup Condition="'$(Configuration)' == 'Debug 2014'">
7386
<Reference Include="RevitAPI">
7487
<HintPath>..\RequiredLibraries\Revit2014\RevitAPI.dll</HintPath>
@@ -101,6 +114,14 @@
101114
<HintPath>..\RequiredLibraries\Revit2017\RevitAPIUI.dll</HintPath>
102115
</Reference>
103116
</ItemGroup>
117+
<ItemGroup Condition="'$(Configuration)' == 'Debug 2018'">
118+
<Reference Include="RevitAPI">
119+
<HintPath>..\RequiredLibraries\Revit2018\RevitAPI.dll</HintPath>
120+
</Reference>
121+
<Reference Include="RevitAPIUI">
122+
<HintPath>..\RequiredLibraries\Revit2018\RevitAPIUI.dll</HintPath>
123+
</Reference>
124+
</ItemGroup>
104125
<ItemGroup>
105126
<Reference Include="ICSharpCode.AvalonEdit, Version=5.0.3.0, Culture=neutral, PublicKeyToken=9cc39be672370310, processorArchitecture=MSIL">
106127
<HintPath>..\packages\AvalonEdit.5.0.3\lib\Net40\ICSharpCode.AvalonEdit.dll</HintPath>

Setup_RevitPythonShell_2018.iss

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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

0 commit comments

Comments
 (0)