1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Small fixes to CM and the autorun task

This commit is contained in:
SpoinkyNL 2017-11-16 19:33:19 +01:00
parent 013041a0c0
commit bce85a8e7a
3 changed files with 3 additions and 2 deletions

View File

@ -807,7 +807,7 @@
<Content Include="lib\AssettoCorsaSharedMemory.dll" />
<Content Include="lib\Ets2SdkClient.dll" />
<Content Include="lib\SDKDLL.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="LogitechLedEnginesWrapper.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

View File

@ -116,8 +116,9 @@ namespace Artemis.Settings
{
// Overwrite any existing tasks in case the installation folder changed
var path = Path.GetTempFileName();
var artemisPath = AppDomain.CurrentDomain.BaseDirectory.Substring(0, AppDomain.CurrentDomain.BaseDirectory.Length - 1);
var xml = Resources.Artemis_autorun
.Replace("{{executablePath}}", AppDomain.CurrentDomain.BaseDirectory + "Artemis.exe")
.Replace("{{artemisPath}}", AppDomain.CurrentDomain.BaseDirectory)
.Replace("{{author}}", System.Security.Principal.WindowsIdentity.GetCurrent().Name);
File.WriteAllText(path, xml);