-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass at installer, rename sln and bring up to VS format v15
- Loading branch information
Showing
3 changed files
with
150 additions
and
4 deletions.
There are no files selected for viewing
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,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | ||
<ProductVersion>3.10</ProductVersion> | ||
<ProjectGuid>3a9ffb8d-401c-4c18-97e7-34b6e94cca88</ProjectGuid> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<OutputName>NefMotoECUFlasher</OutputName> | ||
<OutputType>Package</OutputType> | ||
<Name>Installer</Name> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> | ||
<OutputPath>bin\$(Configuration)\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>Debug</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> | ||
<OutputPath>bin\$(Configuration)\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="Product.wxs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\ECUFlasher\ECUFlasher.csproj"> | ||
<Name>ECUFlasher</Name> | ||
<Project>{d342d285-ac8c-40b2-8a85-83cfb9c1ce2a}</Project> | ||
<Private>True</Private> | ||
<DoNotHarvest>True</DoNotHarvest> | ||
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups> | ||
<RefTargetDir>INSTALLFOLDER</RefTargetDir> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " /> | ||
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "> | ||
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" /> | ||
</Target> | ||
<Target Name="BeforeBuild"> | ||
<GetAssemblyIdentity AssemblyFiles="$(SolutionDir)ECUFlasher\bin\msil\$(Configuration)\NefMotoECUFlasher.exe"> | ||
<Output TaskParameter="Assemblies" ItemName="AssemblyVersions" /> | ||
</GetAssemblyIdentity> | ||
<CreateProperty Value="$(OutputName).%(AssemblyVersions.Version)"> | ||
<Output TaskParameter="Value" PropertyName="TargetName" /> | ||
</CreateProperty> | ||
<CreateProperty Value="$(TargetName)$(TargetExt)"> | ||
<Output TaskParameter="Value" PropertyName="TargetFileName" /> | ||
</CreateProperty> | ||
<CreateProperty Value="$(TargetDir)$(TargetFileName)"> | ||
<Output TaskParameter="Value" PropertyName="TargetPath" /> | ||
</CreateProperty> | ||
</Target> | ||
</Project> |
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,80 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
<?define ProductName="NefMotoECUFlasher"?> | ||
<?define Version="!(bind.fileVersion.NefMotoECUFlasher.exe)"?> | ||
<?define ECUFlasher_TargetDir=$(var.ECUFlasher.TargetDir)?> | ||
<?define FTD2XX_NET_TargetDir=$(var.ECUFlasher.TargetDir)?> | ||
<?define Communication_TargetDir=$(var.ECUFlasher.TargetDir)?> | ||
<?define Shared_TargetDir=$(var.ECUFlasher.TargetDir)?> | ||
<?define ApplicationShared_TargetDir=$(var.ECUFlasher.TargetDir)?> | ||
<Product Id="*" | ||
Name="$(var.ProductName)" | ||
Language="1033" | ||
Version="$(var.Version)" | ||
Manufacturer="Nefmoto" | ||
UpgradeCode="2d104af1-44d2-4686-b3e0-a860cb092af1"> | ||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> | ||
|
||
<MajorUpgrade DowngradeErrorMessage="A newer version of $(var.ProductName) is already installed." /> | ||
<MediaTemplate /> | ||
|
||
<Feature Id="ProductFeature" Title="$(var.ProductName)" Level="1"> | ||
<ComponentGroupRef Id="ProductComponents" /> | ||
</Feature> | ||
</Product> | ||
|
||
<Fragment> | ||
<Directory Id="TARGETDIR" Name="SourceDir"> | ||
<Directory Id="ProgramFilesFolder"> | ||
<Directory Id="INSTALLFOLDER" Name="$(var.ProductName)" /> | ||
</Directory> | ||
</Directory> | ||
</Fragment> | ||
|
||
<Fragment> | ||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | ||
<Component Id="$(var.ProductName).exe" Guid="d2e4f421-0c73-4562-9af9-4f10dd16f278"> | ||
<File Id="$(var.ProductName).exe" Name="$(var.ProductName).exe" Source="$(var.ECUFlasher_TargetDir)$(var.ProductName).exe" /> | ||
</Component> | ||
<Component Id="$(var.ProductName).exe.config" Guid="5d029180-2042-4344-b43b-e5b0809e9887"> | ||
<File Id="$(var.ProductName).exe.config" Name="$(var.ProductName).exe.config" Source="$(var.ECUFlasher_TargetDir)$(var.ProductName).exe.config" /> | ||
</Component> | ||
<Component Id="FTD2XX_NET.dll" Guid="21949804-55a9-4cf1-b856-ce5b72fd3f6d"> | ||
<File Id="FTD2XX_NET.dll" Name="FTD2XX_NET.dll" Source="$(var.FTD2XX_NET_TargetDir)FTD2XX_NET.dll" /> | ||
</Component> | ||
<Component Id="Communication.dll" Guid="d4cf033c-6330-4e20-9130-f26ef46bbcc9"> | ||
<File Id="Communication.dll" Name="Communication.dll" Source="$(var.Communication_TargetDir)Communication.dll" /> | ||
</Component> | ||
<Component Id="ECUShared.dll" Guid="1161e03f-3326-4297-b492-1d333630dbae"> | ||
<File Id="ECUShared.dll" Name="ECUShared.dll" Source="$(var.Shared_TargetDir)ECUShared.dll" /> | ||
</Component> | ||
<Component Id="ApplicationShared.dll" Guid="d42fabc7-0a7b-48b2-8104-3b8f85d8d525"> | ||
<File Id="ApplicationShared.dll" Name="ApplicationShared.dll" Source="$(var.ApplicationShared_TargetDir)ApplicationShared.dll" /> | ||
</Component> | ||
</ComponentGroup> | ||
</Fragment> | ||
|
||
<!-- | ||
<UI> | ||
<Property Id="DefaultUIFont">DlgFont8</Property> | ||
<Dialog Id="InstallDlg" Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes"> | ||
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes"> | ||
<Text>{\DlgTitleFont}Ready to Install</Text> | ||
</Control> | ||
<Control Id="Install" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Text="Install"> | ||
<Publish Event="EndDialog" Value="Return" /> | ||
</Control> | ||
</Dialog> | ||
<TextStyle Id="DlgFont8" FaceName="Tahoma" Size="8" /> | ||
<TextStyle Id="DlgTitleFont" FaceName="Tahoma" Size="8" Bold="yes" /> | ||
<InstallUISequence> | ||
<Show Dialog="InstallDlg" After="CostFinalize" /> | ||
</InstallUISequence> | ||
</UI> | ||
<Icon Id="$(var.ProductName).exe" SourceFile="$(var.ProductName).exe" /> | ||
--> | ||
|
||
</Wix> |