Compare commits

...

2 Commits
v1.1 ... v1.3

Author SHA1 Message Date
PatrickSt1991
4aa659a9a9 Use %LocalAppData%\Programs\TizenStudioCli for non elevated tooling 2025-05-13 22:05:21 +02:00
PatrickSt1991
7402bd7014 - Moved away from RunAs Administrator
- Changed the default install location to C:\TizenStudioCli
2025-05-13 21:13:55 +02:00
2 changed files with 9 additions and 7 deletions

View File

@@ -1,11 +1,9 @@
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Xml.Linq;
namespace Samsung_Jellyfin_Installer.Services
@@ -18,8 +16,8 @@ namespace Samsung_Jellyfin_Installer.Services
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Tizen Studio"),
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "TizenStudio"),
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "TizenStudio"),
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Programs", "TizenStudioCli"),
"C:\\tizen-studio",
"C:\\Program Files\\TizenStudioCli",
Environment.GetEnvironmentVariable("TIZEN_STUDIO_HOME") ?? string.Empty
];
@@ -85,6 +83,7 @@ namespace Samsung_Jellyfin_Installer.Services
UpdateProfileCertificatePaths();
updateStatus("Packaging the wgt file with certificate...");
await RunCommandAsync(TizenCliPath, $"package -t wgt -s custom -- {packageUrl}");
updateStatus("Installing package on device...");
@@ -160,6 +159,7 @@ namespace Samsung_Jellyfin_Installer.Services
RedirectStandardOutput = true,
RedirectStandardError = true,
CreateNoWindow = true,
WorkingDirectory = Path.GetDirectoryName(fileName)
};
using var proc = new Process
@@ -212,7 +212,11 @@ namespace Samsung_Jellyfin_Installer.Services
{
const string installerUrl = "https://download.tizen.org/sdk/Installer/tizen-studio_5.5/web-cli_Tizen_Studio_5.5_windows-64.exe";
installerPath = await DownloadPackageAsync(installerUrl);
string installPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "TizenStudioCli");
string installPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
"Programs",
"TizenStudioCli"
);
var startInfo = new ProcessStartInfo
{
@@ -225,8 +229,6 @@ namespace Samsung_Jellyfin_Installer.Services
using var process = Process.Start(startInfo);
await process.WaitForExitAsync();
MessageBox.Show(process.ExitCode.ToString());
if (process.ExitCode == 0)
{
TizenCliPath = FindTizenCliPath();

View File

@@ -16,7 +16,7 @@
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>