Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-04-10 14:07:25 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-04-10 14:07:25 +0300
commitd317dcc9a673c6928ca61efc8e34fe2618b90215 (patch)
tree4169c0ff17e2bca09fd2c0278d2525d7be19edde /Program.cs
parentf7598533f7629330cb0c8a3e85da02e590badfc0 (diff)
Some fixes
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/Program.cs b/Program.cs
index e804ff73..d24f59e8 100644
--- a/Program.cs
+++ b/Program.cs
@@ -79,7 +79,6 @@ namespace com.clusterrr.hakchi_gui
if (createdNew)
{
BaseDirectoryInternal = Path.GetDirectoryName(Application.ExecutablePath);
-#if CLICKONCE
if (ApplicationDeployment.IsNetworkDeployed)
{
// This is not correct way for Windows 7+...
@@ -97,7 +96,6 @@ namespace com.clusterrr.hakchi_gui
}
}
else
-#endif
BaseDirectoryExternal = BaseDirectoryInternal;
Debug.WriteLine("Base directory: " + BaseDirectoryExternal);
ConfigIni.Load();
@@ -110,7 +108,6 @@ namespace com.clusterrr.hakchi_gui
// There are some folders which should be accessed by user
// Moving them to "My documents"
-#if CLICKONCE
if (ApplicationDeployment.IsNetworkDeployed && ApplicationDeployment.CurrentDeployment.IsFirstRun)
{
var externalDirs = new string[]
@@ -120,7 +117,6 @@ namespace com.clusterrr.hakchi_gui
foreach (var dir in externalDirs)
DirectoryCopy(Path.Combine(BaseDirectoryInternal, dir), Path.Combine(BaseDirectoryExternal, dir), true);
}
-#endif
string languagesDirectory = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "languages");
const string langFileNames = "hakchi.resources.dll";
@@ -132,7 +128,6 @@ namespace com.clusterrr.hakchi_gui
{
var dir = Path.GetDirectoryName(d);
Debug.WriteLine("Removing old directory: " + dir);
-#if CLICKONCE
if (ApplicationDeployment.IsNetworkDeployed)
{
var targetDir = Path.Combine(languagesDirectory, Path.GetFileName(dir));
@@ -143,7 +138,6 @@ namespace com.clusterrr.hakchi_gui
File.Move(Path.Combine(dir, langFileNames), targetFile);
}
else
-#endif
Directory.Delete(dir, true);
}