-
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.
first step towards an installer for RPS 2018
- Loading branch information
1 parent
a1fb78b
commit a76eea4
Showing
8 changed files
with
128 additions
and
1 deletion.
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
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
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
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 2018\PythonConsoleControl.dll"; DestDir: "{app}"; Flags: replacesameversion | ||
Source: "RevitPythonShell\bin\Debug 2018\RevitPythonShell.dll"; DestDir: "{app}"; Flags: replacesameversion | ||
Source: "RevitPythonShell\bin\Debug 2018\RpsRuntime.dll"; DestDir: "{app}"; Flags: replacesameversion | ||
Source: "packages\AvalonEdit.5.0.3\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\RevitPythonShell.xml"; DestDir: "{userappdata}\RevitPythonShell2018"; Flags: onlyifdoesntexist | ||
Source: RevitPythonShell\init.py; DestDir: {userappdata}\RevitPythonShell2018; Flags: confirmoverwrite; | ||
Source: RevitPythonShell\startup.py; DestDir: {userappdata}\RevitPythonShell2018; 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\2018\RevitPythonShell2018.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 2018 | ||
AppVerName=RevitPythonShell for Autodesk Revit 2018 | ||
RestartIfNeededByRun=false | ||
DefaultDirName={pf32}\RevitPythonShell2018 | ||
OutputBaseFilename=Setup_RevitPythonShell_2018 | ||
ShowLanguageDialog=auto | ||
FlatComponentsList=false | ||
UninstallFilesDir={app}\Uninstall | ||
UninstallDisplayName=RevitPythonShell for Autodesk Revit 2018 | ||
AppVersion=2018.0 | ||
VersionInfoVersion=2018.0 | ||
VersionInfoDescription=RevitPythonShell for Autodesk Revit 2018 | ||
VersionInfoTextVersion=RevitPythonShell for Autodesk Revit 2018 |