diff --git a/src/chocolatey/infrastructure/filesystem/DotNetFileSystem.cs b/src/chocolatey/infrastructure/filesystem/DotNetFileSystem.cs index 023d2abee7..ed9bc6604e 100644 --- a/src/chocolatey/infrastructure/filesystem/DotNetFileSystem.cs +++ b/src/chocolatey/infrastructure/filesystem/DotNetFileSystem.cs @@ -180,7 +180,7 @@ public string get_executable_path(string executableName) public string get_current_assembly_path() { - return Assembly.GetExecutingAssembly().CodeBase.Replace("file:///", string.Empty); + return Assembly.GetExecutingAssembly().CodeBase.Replace(Platform.get_platform() == PlatformType.Windows ? "file:///" : "file://", string.Empty); } #endregion