Skip to content

Commit 781356f

Browse files
committed
update installer to output with version in name
fix plex data folder for log watcher when not in default location
1 parent a8abf5f commit 781356f

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

PlexMediaServerService.sln

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,12 @@ Global
5555
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Debug|Any CPU.ActiveCfg = Debug|x86
5656
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Debug|Any CPU.Build.0 = Debug|x86
5757
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
58-
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Debug|Mixed Platforms.Build.0 = Debug|x86
5958
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Debug|x86.ActiveCfg = Debug|x86
6059
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Debug|x86.Build.0 = Debug|x86
6160
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Release|Any CPU.ActiveCfg = Release|x86
6261
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Release|Any CPU.Build.0 = Release|x86
6362
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Release|Any CPU.Deploy.0 = Release|x86
6463
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Release|Mixed Platforms.ActiveCfg = Release|x86
65-
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Release|Mixed Platforms.Build.0 = Release|x86
6664
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Release|x86.ActiveCfg = Release|x86
6765
{5CACEAFA-5C9F-4A66-8FB9-DD35FB95B5CD}.Release|x86.Build.0 = Release|x86
6866
{BC4E3797-D804-4EE1-B8B5-D4D4ED4CEE59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

PlexServiceCommon/PlexDirHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static string GetPlexDataDir()
2626
return result;
2727
}
2828

29-
path = (string) pmsDataKey.GetValue("LocalAppdataPath");
29+
path = Path.Combine((string) pmsDataKey.GetValue("LocalAppdataPath"), "Plex Media Server");
3030
result = path;
3131

3232
return result;

PlexServiceInstaller/PlexServiceInstaller.wixproj

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ProductVersion>3.9</ProductVersion>
77
<ProjectGuid>5caceafa-5c9f-4a66-8fb9-dd35fb95b5cd</ProjectGuid>
88
<SchemaVersion>2.0</SchemaVersion>
9-
<OutputName>PlexServiceInstaller</OutputName>
9+
<OutputName>PlexService</OutputName>
1010
<OutputType>Package</OutputType>
1111
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
1212
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
@@ -87,6 +87,24 @@
8787
<Content Include="WixCommonUiExtension.dll" />
8888
</ItemGroup>
8989
<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>
90108
<!--
91109
To modify your build process, add your task inside one of the targets below and uncomment it.
92110
Other similar extension points exist, see Wix.targets.
5.84 MB
Binary file not shown.

0 commit comments

Comments
 (0)