Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unatteneded Servicing does not execute #2

Open
FluffyLogic opened this issue Apr 11, 2018 · 2 comments
Open

Unatteneded Servicing does not execute #2

FluffyLogic opened this issue Apr 11, 2018 · 2 comments

Comments

@FluffyLogic
Copy link

FluffyLogic commented Apr 11, 2018

When using Unatteneded Servicing to apply unattended.xml file, dism throws error :

Command line that ran is dism.exe /image:F:\WIM\MOUNT /Apply-Unattend:


Error: 87

The /Apply-Unattend: option is missing a required argument. 
For more information, refer to the help for the /Apply-Unattend: option.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

Apparently DISMGUI forgot to append full path of xml to /Apply-Unattend: , causing dism to fail.

Found a problem, but can't test it (also can't create PR, no VB IDE installed):

In file DISMGUI\4.0\DISM GUI\frmMain.vb line 697 reads :

strXMLFileName = txtPatchLocation.Text

but to me it looks it needs to be

strXMLFileName = txtUnattend.Text

Looks like copy/paste error, no big deal :)

@mikecel79
Copy link
Owner

Thanks for the feedback. I will try to get this resolved shortly. Haven't had time to really update this in a while.

@Dede333
Copy link

Dede333 commented Oct 4, 2020

Hello, I'm confirm this,

First step, change the code:

Private Sub btnChooseUnAttend_Click(sender As System.Object, e As System.EventArgs) Handles btnChooseUnAttend.Click
dlgOpenXML.InitialDirectory = "c:"
dlgOpenXML.Title = "Choose Unattend XML file to Open"
dlgOpenXML.Filter = ("XML Files(.xml)|.xml|All Files (.)|.")
Dim DidWork As Integer = dlgOpenXML.ShowDialog

    If DidWork = DialogResult.Cancel Then
        'Do Nothing
    Else
        ' Dim strXMLFileName As String = dlgOpenXML.FileName
        strXMLFileName = dlgOpenXML.FileName
        txtUnattend.Text = strXMLFileName
    End If

End Sub

Second step:

Private Sub btnApplyUnattend_Click(sender As System.Object, e As System.EventArgs) Handles btnApplyUnattend.Click
If WIMMounted = False Then
MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.")
Else
'Do Nothing
End If

    If txtUnattend.Text = "" Then
        MessageBox.Show("You must enter an XML file.")
        Exit Sub
    Else
        'Do Nothing
    End If

    ' strXMLFileName = txtPatchLocation.Text
    strDISMArguments = "/image:" & strMountedImageLocation & " /Apply-Unattend:" & strXMLFileName
    BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
    frmProgress.ShowDialog()
    txtOutput.Text = strOutput
End Sub

Thanks and regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants