Small fixes to CM and the autorun task

This commit is contained in:
SpoinkyNL committed 2017-11-16 19:33:19 +01:00
1 parent 4f3d95f11c
commit e058b056b4
3 files changed
+3 -2

No files matched your search

+1 -1
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>
Binary file not shown.
+2 -1
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);