diff --git a/hass-workstation-service/Data/ConfigurationService.cs b/hass-workstation-service/Data/ConfigurationService.cs index 1a20a93..3adbef2 100644 --- a/hass-workstation-service/Data/ConfigurationService.cs +++ b/hass-workstation-service/Data/ConfigurationService.cs @@ -297,9 +297,12 @@ namespace hass_workstation_service.Data // The path to the key where Windows looks for startup applications RegistryKey rkApp = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true); + Log.Information("currentDir: " + Environment.CurrentDirectory); + Log.Information("appData: " + Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); + string startPath; // if the app is installed in appdata, we can assume it was installed using the installer - if (Environment.CurrentDirectory.Contains(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData))) + if (Environment.CurrentDirectory.Contains(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData))) { // so we set the autostart Path to launch shortcut startPath = Environment.GetFolderPath(Environment.SpecialFolder.Programs) + @"\Sleevezipper\Hass Workstation Service.appref-ms"; diff --git a/hass-workstation-service/Properties/PublishProfiles/AzureHosted.pubxml b/hass-workstation-service/Properties/PublishProfiles/AzureHosted.pubxml index 22b72c0..558f6d5 100644 --- a/hass-workstation-service/Properties/PublishProfiles/AzureHosted.pubxml +++ b/hass-workstation-service/Properties/PublishProfiles/AzureHosted.pubxml @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - 26 + 27 1.0.0.* True Release diff --git a/hass-workstation-service/Properties/PublishProfiles/ClickOnceFrameworkDependent.pubxml b/hass-workstation-service/Properties/PublishProfiles/ClickOnceFrameworkDependent.pubxml index f5d4279..3cb142a 100644 --- a/hass-workstation-service/Properties/PublishProfiles/ClickOnceFrameworkDependent.pubxml +++ b/hass-workstation-service/Properties/PublishProfiles/ClickOnceFrameworkDependent.pubxml @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - 6 + 10 1.0.0.* True Release @@ -22,6 +22,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121. bin\clickonce-framework-dependent\ bin\clickonce-framework-dependent\ ClickOnce + Sleevezipper + Hass Workstation Service False False win-x64 diff --git a/hass-workstation-service/UserInterface.exe b/hass-workstation-service/UserInterface.exe index 8a6d760..be6aeec 100644 Binary files a/hass-workstation-service/UserInterface.exe and b/hass-workstation-service/UserInterface.exe differ diff --git a/hass-workstation-service/hass-workstation-service.exe b/hass-workstation-service/hass-workstation-service.exe index fc8999a..c309e92 100644 Binary files a/hass-workstation-service/hass-workstation-service.exe and b/hass-workstation-service/hass-workstation-service.exe differ