From 08c22715a5cc93f3bc8d827caaec9720b6a0d955 Mon Sep 17 00:00:00 2001 From: Ryan Hutchison Date: Wed, 16 Mar 2022 20:16:30 -0500 Subject: [PATCH] Fixed #5 from .NET 3.5 --- 3.5/DISM GUI/frmMain.vb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/3.5/DISM GUI/frmMain.vb b/3.5/DISM GUI/frmMain.vb index 39abbce..209849e 100644 --- a/3.5/DISM GUI/frmMain.vb +++ b/3.5/DISM GUI/frmMain.vb @@ -321,7 +321,7 @@ Public Class frmMain If WIMMounted = False Then MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.") Else - strDISMArguments = "/image:" & strMountedImageLocation & " /Get-Packages" + strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Get-Packages" BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments) frmProgress.ShowDialog() txtOutput.Text = strOutput @@ -439,7 +439,7 @@ Public Class frmMain If WIMMounted = False Then MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.") Else - strDISMArguments = "/image:" & strMountedImageLocation & " /Get-Features" + strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Get-Features" BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments) frmProgress.ShowDialog() txtOutput.Text = strOutput @@ -690,7 +690,7 @@ Public Class frmMain If WIMMounted = False Then MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.") Else - strDISMArguments = "/image:" & strMountedImageLocation & " /Get-Apps" + strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Get-Apps" BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments) frmProgress.ShowDialog() txtOutput.Text = strOutput @@ -819,7 +819,7 @@ Public Class frmMain 'Do Nothing End If strMSPFileName = txtPatchLocation.Text - strDISMArguments = "/image:" & strMountedImageLocation & " /Check-AppPatch /PatchLocation:" & strMSPFileName + strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Check-AppPatch /PatchLocation:" & strMSPFileName BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments) frmProgress.ShowDialog() txtOutput.Text = strOutput