|
6 | 6 | <ProductVersion>3.9</ProductVersion> |
7 | 7 | <ProjectGuid>5caceafa-5c9f-4a66-8fb9-dd35fb95b5cd</ProjectGuid> |
8 | 8 | <SchemaVersion>2.0</SchemaVersion> |
9 | | - <OutputName>PlexServiceInstaller</OutputName> |
| 9 | + <OutputName>PlexService</OutputName> |
10 | 10 | <OutputType>Package</OutputType> |
11 | 11 | <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath> |
12 | 12 | <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath> |
|
87 | 87 | <Content Include="WixCommonUiExtension.dll" /> |
88 | 88 | </ItemGroup> |
89 | 89 | <Import Project="$(WixTargetsPath)" /> |
| 90 | + <Target Name="BeforeBuild"> |
| 91 | + <GetAssemblyIdentity AssemblyFiles="$(SolutionDir)PlexService\bin\$(Configuration)\PlexService.exe"> |
| 92 | + <Output TaskParameter="Assemblies" ItemName="AssemblyVersions" /> |
| 93 | + </GetAssemblyIdentity> |
| 94 | + <CreateProperty Value="$(OutputName)_%(AssemblyVersions.Version)"> |
| 95 | + <Output TaskParameter="Value" PropertyName="TargetName" /> |
| 96 | + </CreateProperty> |
| 97 | + <CreateProperty Value="$(TargetName)$(TargetExt)"> |
| 98 | + <Output TaskParameter="Value" PropertyName="TargetFileName" /> |
| 99 | + </CreateProperty> |
| 100 | + <CreateProperty Value="$(TargetDir)\$(TargetFileName)"> |
| 101 | + <Output TaskParameter="Value" PropertyName="TargetPath" /> |
| 102 | + </CreateProperty> |
| 103 | + </Target> |
| 104 | + <PropertyGroup> |
| 105 | + <PostBuildEvent>if not exist "$(ProjectDir)msi" mkdir "$(ProjectDir)msi" |
| 106 | + copy "!(TargetPath)" "$(ProjectDir)msi" /Y /V</PostBuildEvent> |
| 107 | + </PropertyGroup> |
90 | 108 | <!-- |
91 | 109 | To modify your build process, add your task inside one of the targets below and uncomment it. |
92 | 110 | Other similar extension points exist, see Wix.targets. |
|
0 commit comments