-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from mitevpi/master
Added Revit 2019 Installer & Recompiled for 2019 API.
- Loading branch information
Showing
13 changed files
with
138 additions
and
46 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="AvalonEdit" version="5.0.4" targetFramework="net46" /> | ||
<package id="AvalonEdit" version="5.0.4" targetFramework="net40" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="AvalonEdit" version="5.0.4" targetFramework="net46" /> | ||
<package id="AvalonEdit" version="5.0.4" targetFramework="net45" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="AvalonEdit" version="5.0.4" targetFramework="net46" /> | ||
<package id="AvalonEdit" version="5.0.4" targetFramework="net45" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[Files] | ||
Source: "RevitPythonShell\bin\Debug 2019\PythonConsoleControl.dll"; DestDir: "{app}"; Flags: replacesameversion | ||
Source: "RevitPythonShell\bin\Debug 2019\RevitPythonShell.dll"; DestDir: "{app}"; Flags: replacesameversion | ||
Source: "RevitPythonShell\bin\Debug 2019\RpsRuntime.dll"; DestDir: "{app}"; Flags: replacesameversion | ||
Source: "packages\AvalonEdit.5.0.4\lib\Net40\ICSharpCode.AvalonEdit.dll"; DestDir: "{app}" | ||
Source: "RequiredLibraries\IronPython.dll"; DestDir: "{app}" | ||
Source: "RequiredLibraries\IronPython.Modules.dll"; DestDir: "{app}" | ||
Source: "RequiredLibraries\Microsoft.Scripting.Metadata.dll"; DestDir: "{app}" | ||
Source: "RequiredLibraries\Microsoft.Dynamic.dll"; DestDir: "{app}" | ||
Source: "RequiredLibraries\Microsoft.Scripting.dll"; DestDir: "{app}" | ||
Source: "RevitPythonShell\DefaultConfig\RevitPythonShell.xml"; DestDir: "{userappdata}\RevitPythonShell2019"; Flags: onlyifdoesntexist | ||
Source: RevitPythonShell\DefaultConfig\init.py; DestDir: {userappdata}\RevitPythonShell2019; Flags: confirmoverwrite; | ||
Source: RevitPythonShell\DefaultConfig\startup.py; DestDir: {userappdata}\RevitPythonShell2019; Flags: confirmoverwrite; | ||
|
||
[code] | ||
{ HANDLE INSTALL PROCESS STEPS } | ||
procedure CurStepChanged(CurStep: TSetupStep); | ||
var | ||
AddInFilePath: String; | ||
AddInFileContents: String; | ||
begin | ||
if CurStep = ssPostInstall then | ||
begin | ||
{ GET LOCATION OF USER AppData (Roaming) } | ||
AddInFilePath := ExpandConstant('{userappdata}\Autodesk\Revit\Addins\2019\RevitPythonShell2019.addin'); | ||
{ CREATE NEW ADDIN FILE } | ||
AddInFileContents := '<?xml version="1.0" encoding="utf-16" standalone="no"?>' + #13#10; | ||
AddInFileContents := AddInFileContents + '<RevitAddIns>' + #13#10; | ||
AddInFileContents := AddInFileContents + ' <AddIn Type="Application">' + #13#10; | ||
AddInFileContents := AddInFileContents + ' <Name>RevitPythonShell</Name>' + #13#10; | ||
AddInFileContents := AddInFileContents + ' <Assembly>' + ExpandConstant('{app}') + '\RevitPythonShell.dll</Assembly>' + #13#10; | ||
AddInFileContents := AddInFileContents + ' <AddInId>3a7a1d24-51ed-462b-949f-1ddcca12008d</AddInId>' + #13#10; | ||
AddInFileContents := AddInFileContents + ' <FullClassName>RevitPythonShell.RevitPythonShellApplication</FullClassName>' + #13#10; | ||
AddInFileContents := AddInFileContents + ' <VendorId>RIPS</VendorId>' + #13#10; | ||
AddInFileContents := AddInFileContents + ' </AddIn>' + #13#10; | ||
AddInFileContents := AddInFileContents + '</RevitAddIns>' + #13#10; | ||
SaveStringToFile(AddInFilePath, AddInFileContents, False); | ||
end; | ||
end; | ||
[Setup] | ||
AppName=RevitPythonShell for Autodesk Revit 2019 | ||
AppVerName=RevitPythonShell for Autodesk Revit 2019 | ||
RestartIfNeededByRun=false | ||
DefaultDirName={pf32}\RevitPythonShell2019 | ||
OutputBaseFilename=Setup_RevitPythonShell_2019 | ||
ShowLanguageDialog=auto | ||
FlatComponentsList=false | ||
UninstallFilesDir={app}\Uninstall | ||
UninstallDisplayName=RevitPythonShell for Autodesk Revit 2019 | ||
AppVersion=2019.0 | ||
VersionInfoVersion=2019.0 | ||
VersionInfoDescription=RevitPythonShell for Autodesk Revit 2019 | ||
VersionInfoTextVersion=RevitPythonShell for Autodesk Revit 2019 |