mirror of
https://github.com/ntdevlabs/tiny11builder.git
synced 2025-12-20 02:14:11 +00:00
Merge pull request #8 from Miiraak/SKU-information-logs
Enhance logging for image processing
This commit is contained in:
commit
c49ab4fa1e
1 changed files with 5 additions and 4 deletions
|
|
@ -152,7 +152,7 @@ $DriveComboBox.Enabled = $false
|
||||||
|
|
||||||
# SKU Index Label
|
# SKU Index Label
|
||||||
$ImageIndexLabel = New-Object System.Windows.Forms.Label
|
$ImageIndexLabel = New-Object System.Windows.Forms.Label
|
||||||
$ImageIndexLabel.Text = "SKU:"
|
$ImageIndexLabel.Text = "SKU index:"
|
||||||
$ImageIndexLabel.Font = New-Object System.Drawing.Font('Consolas', 10)
|
$ImageIndexLabel.Font = New-Object System.Drawing.Font('Consolas', 10)
|
||||||
$ImageIndexLabel.Location = New-Object System.Drawing.Point(150, 110)
|
$ImageIndexLabel.Location = New-Object System.Drawing.Point(150, 110)
|
||||||
$ImageIndexLabel.AutoSize = $true
|
$ImageIndexLabel.AutoSize = $true
|
||||||
|
|
@ -210,15 +210,16 @@ Remove-Item "$ScratchDisk\tiny11\sources\install.esd" > $null 2>&1
|
||||||
Add-Log "Copy complete!"
|
Add-Log "Copy complete!"
|
||||||
Start-Sleep -Seconds 2
|
Start-Sleep -Seconds 2
|
||||||
Add-Log "Getting image information:"
|
Add-Log "Getting image information:"
|
||||||
# Showing information about the image, then prompting the user to select the index
|
# save information about the image
|
||||||
Get-WindowsImage -ImagePath $ScratchDisk\tiny11\sources\install.wim
|
$SKUInfo = & dism /English /Get-WimInfo "/wimFile:$($ScratchDisk)\tiny11\sources\install.wim" | Out-String
|
||||||
# add the image index to the combobox based on Get-WindowsImage -ImagePath $ScratchDisk\tiny11\sources\install.wim
|
# add the image index to the combobox based on Get-WindowsImage -ImagePath $ScratchDisk\tiny11\sources\install.wim
|
||||||
$ImageIndexComboBox.Items.AddRange((Get-WindowsImage -ImagePath $ScratchDisk\tiny11\sources\install.wim).ImageIndex)
|
$ImageIndexComboBox.Items.AddRange((Get-WindowsImage -ImagePath $ScratchDisk\tiny11\sources\install.wim).ImageIndex)
|
||||||
$ImageIndexLabel.Enabled = $true
|
$ImageIndexLabel.Enabled = $true
|
||||||
$ImageIndexComboBox.Enabled = $true
|
$ImageIndexComboBox.Enabled = $true
|
||||||
[System.Windows.Forms.MessageBox]::Show("Please select the image under ""SKU"".", "Image selection", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Information)
|
[System.Windows.Forms.MessageBox]::Show("Please select the image under ""SKU"" look in logs to find desired edition.", "Image selection", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Information)
|
||||||
Add-Log "Please select the image index in 'SKU'"
|
Add-Log "Please select the image index in 'SKU'"
|
||||||
Add-Log ' '
|
Add-Log ' '
|
||||||
|
Add-Log $SKUInfo
|
||||||
$ImageIndexComboBox.Add_SelectedIndexChanged({
|
$ImageIndexComboBox.Add_SelectedIndexChanged({
|
||||||
$index = $ImageIndexComboBox.SelectedItem
|
$index = $ImageIndexComboBox.SelectedItem
|
||||||
Add-Log "Mounting Windows image. This may take a while."
|
Add-Log "Mounting Windows image. This may take a while."
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue