diff --git a/src/mhlib/CurrentApp.cs b/src/mhlib/CurrentApp.cs index c8c6ef7..64e551a 100644 --- a/src/mhlib/CurrentApp.cs +++ b/src/mhlib/CurrentApp.cs @@ -134,7 +134,7 @@ public CurrentApp(bool IsPortable, string AppName) FullAppPath = Path.GetDirectoryName(Assembly.GetCallingAssembly().Location); // Getting full to application user directory... - AppUserDir = IsPortable ? Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "portable") : Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), AppName); + AppUserDir = IsPortable ? Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), Properties.Resources.PortableLocalDir) : Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), AppName); // Checking admininstrator rights... IsAdmin = ProcessManager.IsCurrentUserAdmin();