Make sure we are always working with complete paths.
This commit is contained in:
parent
1bf63e3554
commit
820b3c0992
2 changed files with 2 additions and 2 deletions
|
|
@ -122,7 +122,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
|
||||
driverInstallerProcess.StartInfo.Arguments = Path.GetFullPath(fileName);
|
||||
// Enter the executable to run, including the complete path
|
||||
string printerDriverInstallerExePathAndFileName = Path.Combine(".", "InfInstaller.exe");
|
||||
string printerDriverInstallerExePathAndFileName = Path.GetFullPath(Path.Combine(".", "InfInstaller.exe"));
|
||||
|
||||
driverInstallerProcess.StartInfo.CreateNoWindow = true;
|
||||
driverInstallerProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
string[] fileNames = infFileNames.Split(',');
|
||||
foreach (string fileName in fileNames)
|
||||
{
|
||||
string infPathAndFileToInstall = Path.Combine(ApplicationDataStorage.Instance.ApplicationStaticDataPath, "Drivers", Path.GetFileNameWithoutExtension(fileName), fileName);
|
||||
string infPathAndFileToInstall = Path.GetFullPath(Path.Combine(ApplicationDataStorage.Instance.ApplicationStaticDataPath, "Drivers", Path.GetFileNameWithoutExtension(fileName), fileName));
|
||||
switch (OsInformation.OperatingSystem)
|
||||
{
|
||||
case OSType.Windows:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue