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

DISMTools 0.3 Preview 17 #15

Merged
merged 20 commits into from
Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
f3fa686
Updated assembly information and nightly installer links
CodingWonders Jul 15, 2023
8e2496c
Show background processes notification once by default
CodingWonders Jul 16, 2023
d943c66
Fix package addition and removal, and feature enablement and disablem…
CodingWonders Jul 16, 2023
70969f4
Detect non-portable installations and disable file association settings
CodingWonders Jul 16, 2023
6610e3a
Force window to be hidden at an earlier point in the load procedure
CodingWonders Jul 16, 2023
35066e9
Initial setup enhancements
CodingWonders Jul 16, 2023
54e476a
Add setting reset functionality and enhance initial setup wizard
CodingWonders Jul 19, 2023
ba55c88
Choose a more appropriate foreground color for warnings and errors un…
CodingWonders Jul 19, 2023
437538e
Run setting file migration or initial setup wizard automatically, and…
CodingWonders Jul 19, 2023
98d292a
Fix AppX package display name detection issue
CodingWonders Jul 20, 2023
5d3faa8
Document more functions and show updated mounted image listing when m…
CodingWonders Jul 20, 2023
fda290c
Online installation management mode enhancements
CodingWonders Jul 20, 2023
64198be
Fix project creation issue
CodingWonders Jul 20, 2023
bdbc136
Fix image edition detection issue in online installation management mode
CodingWonders Jul 20, 2023
1c07e3f
Fixed issue where the program was saving the online installation pseu…
CodingWonders Jul 20, 2023
d189f52
Force settings file to save settings to the registry if the user deci…
CodingWonders Jul 21, 2023
75c05de
Fix mounted image count issue
CodingWonders Jul 21, 2023
6388d3a
Removed redundant command, whose functionality is already done by the…
CodingWonders Jul 22, 2023
0d0eddf
Set custom window title on the CLI mounted image manager
CodingWonders Jul 22, 2023
dc8875e
Update "What's New" section, and update information and binaries
CodingWonders Jul 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions DISMTools.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,18 @@
<Compile Include="Panels\Exe_Ops\PrgAbout.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="Panels\Exe_Ops\SettingsResetDlg.Designer.vb">
<DependentUpon>SettingsResetDlg.vb</DependentUpon>
</Compile>
<Compile Include="Panels\Exe_Ops\SettingsResetDlg.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="Panels\FirstUse\IncompleteSetupDlg.Designer.vb">
<DependentUpon>IncompleteSetupDlg.vb</DependentUpon>
</Compile>
<Compile Include="Panels\FirstUse\IncompleteSetupDlg.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="Panels\FirstUse\PrgSetup.Designer.vb">
<DependentUpon>PrgSetup.vb</DependentUpon>
</Compile>
Expand Down Expand Up @@ -569,6 +581,12 @@
<EmbeddedResource Include="Panels\Exe_Ops\PrgAbout.resx">
<DependentUpon>PrgAbout.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Panels\Exe_Ops\SettingsResetDlg.resx">
<DependentUpon>SettingsResetDlg.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Panels\FirstUse\IncompleteSetupDlg.resx">
<DependentUpon>IncompleteSetupDlg.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Panels\FirstUse\PrgSetup.resx">
<DependentUpon>PrgSetup.vb</DependentUpon>
</EmbeddedResource>
Expand Down
35 changes: 28 additions & 7 deletions Helpers/extps1/mImgMgr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ if ($PSVersionTable.PSVersion.Major -lt 5)
{
Write-Host "You need to run this script in PowerShell 5 or newer. Press ENTER to continue..."
Read-Host | Out-Null
$host.UI.RawUI.WindowTitle = "DISMTools Command Console"
exit 1
}

# Import the DISM module
Import-Module Dism

$global:mImage = Get-WindowsImage -Mounted
# Backup variable
$global:mImages = Get-WindowsImage -Mounted
$global:selImage = 0
$global:imgInfo = ''
$newImg = 0
Expand All @@ -50,10 +53,25 @@ $global:img_remIndexesBck = New-Object System.Collections.ArrayList
$global:checkIntegrity = $false
$global:appendIndex = $false

# Set window title
$host.UI.RawUI.WindowTitle = "Mounted image manager"

function Mark-Image {
# Refresh the mounted image variable
$global:mImage = Get-WindowsImage -Mounted
if ($global:mImage.Count -ge 1)
if ($global:mImage.Count -ne $global:mImages.Count)
{
# Show mounted image list once again, as indexes may have changed

$global:mImages = Get-WindowsImage -Mounted
Clear-Host
# Print version info
Write-Output "DISMTools $ver - Mounted image manager"
# List mounted Windows images
Get-WindowsImage -Mounted | Format-Table
Write-Host `n`n`n
}
if ($global:mImage.Count -gt 1)
{
Write-Host -NoNewline "Mark image number [1 - $($global:mImage.Count)] or press [B] to go back: "
}
Expand Down Expand Up @@ -103,7 +121,7 @@ function Unmount-Image {
Clear-Host
if ($global:mImage[$global:selImage - 1].MountMode -eq 1)
{
Write-Host "This image is mounted with read-only permissions. Changes cannot be committed to this image."`n`n"If you want to make changes to this image, you must enable write permissions by pressing the [E] key in the main menu."`n -ForegroundColor White -BackgroundColor DarkRed
Write-Host "This image is mounted with read-only permissions. Changes cannot be committed to this image."`n`n"If you want to make changes to this image, you must enable write permissions by pressing the [E] key in the main menu."`n -ForegroundColor Black -BackgroundColor DarkRed
Write-Host "Press ENTER to continue..."
Read-Host | Out-Null
Unmount-Image
Expand Down Expand Up @@ -156,7 +174,7 @@ function Unmount-Settings {
Clear-Host
if ($global:mImage[$global:selImage - 1].MountMode -eq 1)
{
Write-Host "Unmount settings apply to the commit operation. This image was mounted with read-only permissions. Changes cannot be committed to this image."`n`n"If you want to make changes to this image, you must enable write permissions by pressing the [E] key in the main menu."`n -ForegroundColor White -BackgroundColor DarkRed
Write-Host "Unmount settings apply to the commit operation. This image was mounted with read-only permissions. Changes cannot be committed to this image."`n`n"If you want to make changes to this image, you must enable write permissions by pressing the [E] key in the main menu."`n -ForegroundColor Black -BackgroundColor DarkRed
Write-Host "Press ENTER to continue..."
Read-Host | Out-Null
Unmount-Image
Expand Down Expand Up @@ -271,7 +289,7 @@ function Remove-VolumeImages {
$global:imgInfo = Get-WindowsImage -ImagePath $global:mImage[$global:selImage - 1].ImagePath
if (($global:imgInfo | Select-Object -ExpandProperty ImageIndex).Count -le 1)
{
Write-Host "This image only contains one index, so you can't remove volume images from this image file."`n`n -ForegroundColor White -BackgroundColor DarkYellow
Write-Host "This image only contains one index, so you can't remove volume images from this image file."`n`n -ForegroundColor Black -BackgroundColor DarkYellow
Write-Host "Press ENTER to continue..."
Read-Host | Out-Null
MainMenu
Expand Down Expand Up @@ -360,7 +378,7 @@ function Remove-VolumeImages {
}
else
{
Write-Host "FAILURE" -ForegroundColor White -BackgroundColor DarkRed
Write-Host "FAILURE" -ForegroundColor Black -BackgroundColor DarkRed
}
}
# Et voilà !
Expand All @@ -386,7 +404,7 @@ function Remove-VolumeImages {
}
else
{
Write-Host "Please mark the volume images to remove from this image, and try again." -ForegroundColor White -BackgroundColor DarkYellow
Write-Host "Please mark the volume images to remove from this image, and try again." -ForegroundColor Black -BackgroundColor DarkYellow
Read-Host | Out-Null
Remove-VolumeImages
}
Expand Down Expand Up @@ -569,7 +587,10 @@ function MainMenu {
Update-Listing
MainMenu
}
"X" { exit 0 }
"X" {
$host.UI.RawUI.WindowTitle = "DISMTools Command Console"
exit 0
}
default { MainMenu }
}
}
Expand Down
Binary file modified Installer/Output/dt_setup.exe
Binary file not shown.
Loading