Skip to content

Commit c2a7e05

Browse files
committed
[Unattended answer file] Bundle non-Windows UnattendGen, allow copy of Linux and macOS versions
1 parent 957de9f commit c2a7e05

File tree

8 files changed

+96
-51
lines changed

8 files changed

+96
-51
lines changed

DISMTools.vbproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,10 @@
12821282
</None>
12831283
<None Include="Tools\DT_IEConfig.reg" />
12841284
<None Include="Tools\DT_WinADK.reg" />
1285+
<None Include="Tools\UnattendGen\UnattendGen-arm64-Linux.zip" />
1286+
<None Include="Tools\UnattendGen\UnattendGen-arm64-MacOS.zip" />
1287+
<None Include="Tools\UnattendGen\UnattendGen-x64-Linux.zip" />
1288+
<None Include="Tools\UnattendGen\UnattendGen-x64-MacOS.zip" />
12851289
<None Include="Tools\UnattendGen\win-arm64\publish\UnattendGen.deps.json" />
12861290
<None Include="Tools\UnattendGen\win-arm64\publish\UnattendGen.runtimeconfig.json" />
12871291
<None Include="Tools\UnattendGen\win-arm64\UnattendGen.deps.json" />

Panels/Unattend_Files/Addition/NewUnattendWiz.Designer.vb

Lines changed: 75 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Panels/Unattend_Files/Addition/NewUnattendWiz.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,9 @@ To begin creating your answer file, click Next.</value>
463463
<metadata name="ScriptEditorOFD.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
464464
<value>132, 56</value>
465465
</metadata>
466+
<metadata name="CPUnattendGenFBD.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
467+
<value>271, 56</value>
468+
</metadata>
466469
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
467470
<value>
468471
AAABAAMAEBAAAAEAIABoBAAANgAAACAgAAABACAAqBAAAJ4EAAAwMAAAAQAgAKglAABGFQAAKAAAABAA

Panels/Unattend_Files/Addition/NewUnattendWiz.vb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2845,4 +2845,18 @@ Public Class NewUnattendWiz
28452845
Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
28462846
ADDSJoinDialog.ShowDialog(Me)
28472847
End Sub
2848+
2849+
Private Sub LinkLabel10_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles LinkLabel10.LinkClicked
2850+
If CPUnattendGenFBD.ShowDialog() = Windows.Forms.DialogResult.OK Then
2851+
For Each CrossPlatformZip In Directory.GetFiles(Path.Combine(Application.StartupPath, "Tools", "UnattendGen"), "*.zip", SearchOption.TopDirectoryOnly).
2852+
Where(Function(zip) Path.GetFileNameWithoutExtension(zip).ToLower().Contains("linux") OrElse
2853+
Path.GetFileNameWithoutExtension(zip).ToLower().Contains("macos"))
2854+
Try
2855+
File.Copy(CrossPlatformZip, Path.Combine(CPUnattendGenFBD.SelectedPath, Path.GetFileName(CrossPlatformZip)))
2856+
Catch ex As Exception
2857+
2858+
End Try
2859+
Next
2860+
End If
2861+
End Sub
28482862
End Class
472 KB
Binary file not shown.
469 KB
Binary file not shown.
474 KB
Binary file not shown.
471 KB
Binary file not shown.

0 commit comments

Comments
 (0)