mirror of
https://github.com/ShrlAlgo/AddinManager.git
synced 2026-03-09 01:28:17 +00:00
更新安装包工具
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<RevitAddIns>
|
|
||||||
<AddIn Type="Application">
|
|
||||||
<Assembly>AddInManager.dll</Assembly>
|
|
||||||
<Name>插件开发工具</Name>
|
|
||||||
<ClientId>E8196B4E-AC4F-4B22-BF75-48F9A6039BDA</ClientId>
|
|
||||||
<FullClassName>AddInManager.App</FullClassName>
|
|
||||||
<Text>Add-In Manager</Text>
|
|
||||||
<VisibilityMode>AlwaysVisible</VisibilityMode>
|
|
||||||
<LanguageType>Unknown</LanguageType>
|
|
||||||
<VendorId>ADSK</VendorId>
|
|
||||||
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
|
|
||||||
</AddIn>
|
|
||||||
</RevitAddIns>
|
|
||||||
@@ -50,6 +50,30 @@
|
|||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Update="Contents\2016\RevitAddinManager.addin">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Contents\2017\RevitAddinManager.addin">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Contents\2018\RevitAddinManager.addin">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Contents\2019\RevitAddinManager.addin">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Contents\2020\RevitAddinManager.addin">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Contents\2021\RevitAddinManager.addin">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="Contents\2022\RevitAddinManager.addin">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Update="PackageContents.xml">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Update="Properties\Settings.settings">
|
<None Update="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
|||||||
14
AddInManager/Contents/2016/RevitAddinManager.addin
Normal file
14
AddInManager/Contents/2016/RevitAddinManager.addin
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<RevitAddIns>
|
||||||
|
<AddIn Type="Application">
|
||||||
|
<Assembly>..\..\AddInManager.dll</Assembly>
|
||||||
|
<Name>插件开发工具</Name>
|
||||||
|
<ClientId>E8196B4E-AC4F-4B22-BF75-48F9A6039BDA</ClientId>
|
||||||
|
<FullClassName>AddInManager.App</FullClassName>
|
||||||
|
<Text>Add-In Manager</Text>
|
||||||
|
<VisibilityMode>AlwaysVisible</VisibilityMode>
|
||||||
|
<LanguageType>Unknown</LanguageType>
|
||||||
|
<VendorId>ADSK</VendorId>
|
||||||
|
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
|
||||||
|
</AddIn>
|
||||||
|
</RevitAddIns>
|
||||||
14
AddInManager/Contents/2017/RevitAddinManager.addin
Normal file
14
AddInManager/Contents/2017/RevitAddinManager.addin
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<RevitAddIns>
|
||||||
|
<AddIn Type="Application">
|
||||||
|
<Assembly>..\..\AddInManager.dll</Assembly>
|
||||||
|
<Name>插件开发工具</Name>
|
||||||
|
<ClientId>E8196B4E-AC4F-4B22-BF75-48F9A6039BDA</ClientId>
|
||||||
|
<FullClassName>AddInManager.App</FullClassName>
|
||||||
|
<Text>Add-In Manager</Text>
|
||||||
|
<VisibilityMode>AlwaysVisible</VisibilityMode>
|
||||||
|
<LanguageType>Unknown</LanguageType>
|
||||||
|
<VendorId>ADSK</VendorId>
|
||||||
|
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
|
||||||
|
</AddIn>
|
||||||
|
</RevitAddIns>
|
||||||
14
AddInManager/Contents/2018/RevitAddinManager.addin
Normal file
14
AddInManager/Contents/2018/RevitAddinManager.addin
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<RevitAddIns>
|
||||||
|
<AddIn Type="Application">
|
||||||
|
<Assembly>..\..\AddInManager.dll</Assembly>
|
||||||
|
<Name>插件开发工具</Name>
|
||||||
|
<ClientId>E8196B4E-AC4F-4B22-BF75-48F9A6039BDA</ClientId>
|
||||||
|
<FullClassName>AddInManager.App</FullClassName>
|
||||||
|
<Text>Add-In Manager</Text>
|
||||||
|
<VisibilityMode>AlwaysVisible</VisibilityMode>
|
||||||
|
<LanguageType>Unknown</LanguageType>
|
||||||
|
<VendorId>ADSK</VendorId>
|
||||||
|
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
|
||||||
|
</AddIn>
|
||||||
|
</RevitAddIns>
|
||||||
14
AddInManager/Contents/2019/RevitAddinManager.addin
Normal file
14
AddInManager/Contents/2019/RevitAddinManager.addin
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<RevitAddIns>
|
||||||
|
<AddIn Type="Application">
|
||||||
|
<Assembly>..\..\AddInManager.dll</Assembly>
|
||||||
|
<Name>插件开发工具</Name>
|
||||||
|
<ClientId>E8196B4E-AC4F-4B22-BF75-48F9A6039BDA</ClientId>
|
||||||
|
<FullClassName>AddInManager.App</FullClassName>
|
||||||
|
<Text>Add-In Manager</Text>
|
||||||
|
<VisibilityMode>AlwaysVisible</VisibilityMode>
|
||||||
|
<LanguageType>Unknown</LanguageType>
|
||||||
|
<VendorId>ADSK</VendorId>
|
||||||
|
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
|
||||||
|
</AddIn>
|
||||||
|
</RevitAddIns>
|
||||||
14
AddInManager/Contents/2020/RevitAddinManager.addin
Normal file
14
AddInManager/Contents/2020/RevitAddinManager.addin
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<RevitAddIns>
|
||||||
|
<AddIn Type="Application">
|
||||||
|
<Assembly>..\..\AddInManager.dll</Assembly>
|
||||||
|
<Name>插件开发工具</Name>
|
||||||
|
<ClientId>E8196B4E-AC4F-4B22-BF75-48F9A6039BDA</ClientId>
|
||||||
|
<FullClassName>AddInManager.App</FullClassName>
|
||||||
|
<Text>Add-In Manager</Text>
|
||||||
|
<VisibilityMode>AlwaysVisible</VisibilityMode>
|
||||||
|
<LanguageType>Unknown</LanguageType>
|
||||||
|
<VendorId>ADSK</VendorId>
|
||||||
|
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
|
||||||
|
</AddIn>
|
||||||
|
</RevitAddIns>
|
||||||
14
AddInManager/Contents/2021/RevitAddinManager.addin
Normal file
14
AddInManager/Contents/2021/RevitAddinManager.addin
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<RevitAddIns>
|
||||||
|
<AddIn Type="Application">
|
||||||
|
<Assembly>..\..\AddInManager.dll</Assembly>
|
||||||
|
<Name>插件开发工具</Name>
|
||||||
|
<ClientId>E8196B4E-AC4F-4B22-BF75-48F9A6039BDA</ClientId>
|
||||||
|
<FullClassName>AddInManager.App</FullClassName>
|
||||||
|
<Text>Add-In Manager</Text>
|
||||||
|
<VisibilityMode>AlwaysVisible</VisibilityMode>
|
||||||
|
<LanguageType>Unknown</LanguageType>
|
||||||
|
<VendorId>ADSK</VendorId>
|
||||||
|
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
|
||||||
|
</AddIn>
|
||||||
|
</RevitAddIns>
|
||||||
14
AddInManager/Contents/2022/RevitAddinManager.addin
Normal file
14
AddInManager/Contents/2022/RevitAddinManager.addin
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<RevitAddIns>
|
||||||
|
<AddIn Type="Application">
|
||||||
|
<Assembly>..\..\AddInManager.dll</Assembly>
|
||||||
|
<Name>插件开发工具</Name>
|
||||||
|
<ClientId>E8196B4E-AC4F-4B22-BF75-48F9A6039BDA</ClientId>
|
||||||
|
<FullClassName>AddInManager.App</FullClassName>
|
||||||
|
<Text>Add-In Manager</Text>
|
||||||
|
<VisibilityMode>AlwaysVisible</VisibilityMode>
|
||||||
|
<LanguageType>Unknown</LanguageType>
|
||||||
|
<VendorId>ADSK</VendorId>
|
||||||
|
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
|
||||||
|
</AddIn>
|
||||||
|
</RevitAddIns>
|
||||||
67
AddInManager/PackageContents.xml
Normal file
67
AddInManager/PackageContents.xml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ApplicationPackage
|
||||||
|
|
||||||
|
SchemaVersion="1.0"
|
||||||
|
AutodeskProduct="Revit"
|
||||||
|
Name="RevitAddinManager"
|
||||||
|
Description="外部命令调试和加载工具"
|
||||||
|
AppVersion="1.0.0" FriendlyVersion="1.0.0"
|
||||||
|
ProductType="Application"
|
||||||
|
Author="Autodesk"
|
||||||
|
HelpFile=""
|
||||||
|
SupportedLocales="Chs"
|
||||||
|
OnlineDocumentation="https://github.com/Shrlalgo/AddinManager"
|
||||||
|
>
|
||||||
|
|
||||||
|
<CompanyDetails Name="Autodesk" Url="www.autodesk.com" Email="" />
|
||||||
|
|
||||||
|
<Components Description="Revit 2016">
|
||||||
|
<RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2017" SeriesMax="R2017" />
|
||||||
|
<ComponentEntry AppName="RevitAddinManager"
|
||||||
|
ModuleName="./Contents/2017/RevitAddinManager.addin">
|
||||||
|
</ComponentEntry>
|
||||||
|
</Components>
|
||||||
|
|
||||||
|
<Components Description="Revit 2017">
|
||||||
|
<RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2017" SeriesMax="R2017" />
|
||||||
|
<ComponentEntry AppName="RevitAddinManager"
|
||||||
|
ModuleName="./Contents/2017/RevitAddinManager.addin">
|
||||||
|
</ComponentEntry>
|
||||||
|
</Components>
|
||||||
|
|
||||||
|
<Components Description="Revit 2018">
|
||||||
|
<RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2018" SeriesMax="R2018" />
|
||||||
|
<ComponentEntry AppName="RevitAddinManager"
|
||||||
|
ModuleName="./Contents/2018/RevitAddinManager.addin">
|
||||||
|
</ComponentEntry>
|
||||||
|
</Components>
|
||||||
|
|
||||||
|
<Components Description="Revit 2019">
|
||||||
|
<RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2019" SeriesMax="R2019" />
|
||||||
|
<ComponentEntry AppName="RevitAddinManager"
|
||||||
|
ModuleName="./Contents/2019/RevitAddinManager.addin">
|
||||||
|
</ComponentEntry>
|
||||||
|
</Components>
|
||||||
|
|
||||||
|
<Components Description="Revit 2020">
|
||||||
|
<RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2020" SeriesMax="R2020" />
|
||||||
|
<ComponentEntry AppName="RevitAddinManager"
|
||||||
|
ModuleName="./Contents/2020/RevitAddinManager.addin">
|
||||||
|
</ComponentEntry>
|
||||||
|
</Components>
|
||||||
|
|
||||||
|
<Components Description="Revit 2021">
|
||||||
|
<RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2021" SeriesMax="R2021" />
|
||||||
|
<ComponentEntry AppName="RevitAddinManager"
|
||||||
|
ModuleName="./Contents/2021/RevitAddinManager.addin">
|
||||||
|
</ComponentEntry>
|
||||||
|
</Components>
|
||||||
|
|
||||||
|
<Components Description="Revit 2022">
|
||||||
|
<RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2022" SeriesMax="R2022" />
|
||||||
|
<ComponentEntry AppName="RevitAddinManager"
|
||||||
|
ModuleName="./Contents/2022/RevitAddinManager.addin">
|
||||||
|
</ComponentEntry>
|
||||||
|
</Components>
|
||||||
|
|
||||||
|
</ApplicationPackage>
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Windows.Input;
|
|
||||||
|
|
||||||
namespace AddInManager
|
|
||||||
{
|
|
||||||
internal class RelayCommand : ICommand
|
|
||||||
{
|
|
||||||
private Action<object> execute;
|
|
||||||
private Func<object, bool> canExecute;
|
|
||||||
|
|
||||||
public event EventHandler CanExecuteChanged;
|
|
||||||
|
|
||||||
|
|
||||||
public RelayCommand(Action<object> execute, Func<object, bool> canExecute = null)
|
|
||||||
{
|
|
||||||
if (execute == null)
|
|
||||||
throw new System.ArgumentNullException();
|
|
||||||
this.execute = execute;
|
|
||||||
this.canExecute = canExecute;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool CanExecute(object parameter)
|
|
||||||
{
|
|
||||||
return canExecute == null || canExecute(parameter);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Execute(object parameter)
|
|
||||||
{
|
|
||||||
execute(parameter);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
65
AddinManager.iss
Normal file
65
AddinManager.iss
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
; 脚本由 Inno Setup 脚本向导生成。
|
||||||
|
; 有关创建 Inno Setup 脚本文件的详细信息,请参阅帮助文档!
|
||||||
|
|
||||||
|
; 定义应用程序的名称
|
||||||
|
#define MyAppName "RevitAddinManager"
|
||||||
|
; 定义应用程序的版本号
|
||||||
|
#define MyAppVersion "1.0.0.0"
|
||||||
|
; 定义应用程序的发布者
|
||||||
|
#define MyAppPublisher "ShrlAlgo"
|
||||||
|
; 定义应用程序的网址
|
||||||
|
#define MyAppURL "https://www.ShrlAlgo.cn/"
|
||||||
|
; 定义应用程序的可执行文件名
|
||||||
|
#define MyAppExeName "MyProg-x64.exe"
|
||||||
|
#define MyDllName "AddinManager"
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
; 注意:AppId 的值唯一标识此应用程序。不要在其他应用程序的安装程序中使用相同的 AppId 值。
|
||||||
|
; (若要生成新的 GUID,请在 IDE 中单击 "工具|生成 GUID"。)
|
||||||
|
AppId={{C8434509-9BC8-4896-BD4B-9CD9483D1958}
|
||||||
|
; 程序名称
|
||||||
|
AppName={#MyAppName}
|
||||||
|
; 版本
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
; AppVerName={#MyAppName} {#MyAppVersion}
|
||||||
|
AppPublisher={#MyAppPublisher}
|
||||||
|
AppPublisherURL={#MyAppURL}
|
||||||
|
AppSupportURL={#MyAppURL}
|
||||||
|
AppUpdatesURL={#MyAppURL}
|
||||||
|
;控制面板显示的名称
|
||||||
|
UninstallDisplayName={#MyAppName}
|
||||||
|
;安装包构建模型
|
||||||
|
ArchitecturesInstallIn64BitMode=x64os
|
||||||
|
;管理员权限
|
||||||
|
PrivilegesRequired=admin
|
||||||
|
; 是否创建应用程序目录
|
||||||
|
CreateAppDir=no
|
||||||
|
; 许可证文件路径
|
||||||
|
;LicenseFile=.\bin\Release\2018\license.txt
|
||||||
|
; 安装前显示的信息文件路径
|
||||||
|
;InfoBeforeFile=.\bin\Release\2018\Readme.txt
|
||||||
|
; 安装后显示的信息文件路径
|
||||||
|
;InfoAfterFile=.\bin\Release\2018\Readme.txt
|
||||||
|
; 取消对以下行的注释以在非管理安装模式下运行(仅针对当前用户进行安装)。
|
||||||
|
; PrivilegesRequired=lowest
|
||||||
|
; exe输出目录
|
||||||
|
OutputDir=.\Setup
|
||||||
|
; 输出文件名
|
||||||
|
OutputBaseFilename={#MyAppName}{#MyAppVersion}
|
||||||
|
; 密码
|
||||||
|
;Password=SZMEDI
|
||||||
|
; 是否加密
|
||||||
|
|
||||||
|
;Encryption=yes
|
||||||
|
; 压缩方式
|
||||||
|
Compression=lzma
|
||||||
|
;Compression=zip
|
||||||
|
; 是否使用固体压缩
|
||||||
|
SolidCompression=yes
|
||||||
|
; 向导样式
|
||||||
|
WizardStyle=modern
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
; 源文件路径和目标目录
|
||||||
|
Source: ".\AddinManager\bin\Release\*"; DestDir: "C:\ProgramData\Autodesk\ApplicationPlugins\RevitAddinManager.bundle"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
|
; 注意:不要在任何共享系统文件上使用 "Flags: ignoreversion"
|
||||||
BIN
Setup/RevitAddinManager1.0.0.0.exe
Normal file
BIN
Setup/RevitAddinManager1.0.0.0.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user