mikecel79 / DISMGUI

DISM GUI is a graphical interface for the DISM command line utility written in the .NET. DISM GUI allows you to mount and dismount WIMs, manager drivers, features and packages.
http://mikecel79.wordpress.com
270 stars 56 forks source link

Broken text in DISM Out #3

Open f242 opened 5 years ago

f242 commented 5 years ago

I think it's wrong encoding. In this case must be cyrillic symbols.

2019-05-22 14_45_34-Window

Dede333 commented 4 years ago

Hello, if you use windows 10 1909, you can set regional settings to use UTF8 (beta) for your console. Thanks and regard. Capt1

PaulNevada commented 4 years ago

Author! It'd be just awesome if you implement this to be automated... Thanks in advance - loved your work here!

Dede333 commented 4 years ago

Hi, you can change the code of the sub function, like this:

Private Sub BackgroundWorkerDISMCommand_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorkerDISMCommand.DoWork Dim strInput As String = e.Argument strDISMExitCode = "" Dim DISM As New Process() DISM.StartInfo.RedirectStandardOutput = True DISM.StartInfo.StandardOutputEncoding = Encoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage) DISM.StartInfo.RedirectStandardError = True DISM.StartInfo.UseShellExecute = False DISM.StartInfo.CreateNoWindow = True DISM.StartInfo.FileName = "dism.exe" DISM.StartInfo.Arguments = strInput strOutput = "Command line that ran is dism.exe " & DISM.StartInfo.Arguments DISM.Start() strOutput = strOutput & vbCr & vbCr & DISM.StandardOutput.ReadToEnd() DISM.WaitForExit() strDISMExitCode = DISM.ExitCode End Sub

Warning: don't forget import !

Imports System.Globalization Imports System.Text

Thanks and regards.

PaulNevada commented 4 years ago

Thanks! Will try! :)))

Dede333 commented 4 years ago

Hello,

i have post a new vb code of this version at https://github.com/dede333, you can try this. The dism command syntax are displayed before call dism, it's more easy to debug the program (it's still a beta version !).

and excuse me for my little english

Thanks and regards

PaulNevada commented 3 years ago

Thanks a lot!

Thomas-33 commented 2 years ago

Thanks a lot Dede333 :)