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

Fix and .NET Framework update #6

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.vs
/4.8/DISM GUI/bin/**
/4.8/DISM GUI/obj/**
/4.8/DISM GUI/x64/**
/3.1.1/DISM GUI/bin/**
/3.1.1/DISM GUI/obj/**
/3.1.1/DISM GUI/x64/**
/3.5/DISM GUI/bin/**
/3.5/DISM GUI/obj/**
/3.5/DISM GUI/x64/**
24 changes: 13 additions & 11 deletions 3.1.1/DISM GUI.sln
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32228.430
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "DISM GUI", "DISM GUI\DISM GUI.vbproj", "{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://us-mertfs02:8080/tfs/defaultcollection
SccLocalPath0 = .
SccProjectUniqueName1 = DISM\u0020GUI\\DISM\u0020GUI.vbproj
SccProjectName1 = DISM\u0020GUI
SccLocalPath1 = DISM\u0020GUI
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Debug|x64.ActiveCfg = Debug|x64
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Debug|x64.Build.0 = Debug|x64
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Debug|x86.ActiveCfg = Debug|x86
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Debug|x86.Build.0 = Debug|x86
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Release|x64.ActiveCfg = Release|x64
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Release|x64.Build.0 = Release|x64
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Release|x86.ActiveCfg = Release|x86
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9076E518-54FD-4A8E-A2FC-AF33A696D7DC}
EndGlobalSection
EndGlobal
8 changes: 8 additions & 0 deletions 3.1.1/DISM GUI/DISM GUI.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
<PropertyGroup>
<ApplicationManifest>My Project\app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<PlatformTarget>x64</PlatformTarget>
<OutputPath>bin\x64\Debug\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<PlatformTarget>x64</PlatformTarget>
<OutputPath>bin\x64\Release\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
28 changes: 14 additions & 14 deletions 3.1.1/DISM GUI/frmMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Public Class frmMain
strOutput = strOutput & vbCr & vbCr & DISM.StandardOutput.ReadToEnd()
DISM.WaitForExit()
'txtOutput.Text = output
strDISMExitCode = DISM.ExitCode
strDISMExitCode = DISM.ExitCode.ToString()
End Sub

Private Sub BackgroundWorkerMount_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorkerMount.RunWorkerCompleted
Expand Down Expand Up @@ -212,7 +212,7 @@ Public Class frmMain

strOutput = strOutput & vbCr & vbCr & DISM.StandardOutput.ReadToEnd()
DISM.WaitForExit()
strDISMExitCode = DISM.ExitCode
strDISMExitCode = DISM.ExitCode.ToString()
End Sub

Private Sub BackgroundWorkerDisMount_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorkerDisMount.RunWorkerCompleted
Expand All @@ -229,7 +229,7 @@ Public Class frmMain
End Sub

Private Sub btnOpnDriverFolder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpnDriverFolder.Click
txtDriverLocation.Text = OpenFolder()
txtDriverLocation.Text = OpenFolder().ToString()
End Sub

Private Sub btnAddDriver_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddDriver.Click
Expand Down Expand Up @@ -267,7 +267,7 @@ Public Class frmMain
End Sub

Private Sub BackgroundWorkerDISMCommand_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorkerDISMCommand.DoWork
Dim strInput As String = e.Argument
Dim strInput As String = e.Argument.ToString()
strDISMExitCode = ""
Dim DISM As New Process()
DISM.StartInfo.RedirectStandardOutput = True
Expand All @@ -280,7 +280,7 @@ Public Class frmMain
DISM.Start()
strOutput = strOutput & vbCr & vbCr & DISM.StandardOutput.ReadToEnd()
DISM.WaitForExit()
strDISMExitCode = DISM.ExitCode
strDISMExitCode = DISM.ExitCode.ToString()
End Sub

Private Sub BackgroundWorkerDISMCommand_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorkerDISMCommand.RunWorkerCompleted
Expand Down Expand Up @@ -315,16 +315,16 @@ Public Class frmMain
If WIMMounted = False Then
MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.")
Else
strDISMArguments = "/image:" & strMountedImageLocation & " /Get-Packages"
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Get-Packages"
BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
frmProgress.ShowDialog()
txtOutput.Text = strOutput
End If
End Sub


Private Sub btnOpenPackageFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpenPackageFile.Click
txtPackageFile.Text = OpenFolder()
txtPackageFile.Text = OpenFolder().ToString()
End Sub

Private Sub btnAddPackages_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddPackages.Click
Expand All @@ -349,7 +349,7 @@ Public Class frmMain
txtOutput.Text = strOutput
End Sub

Private Function OpenFolder()
Private Function OpenFolder() As Object
dlgOpenFolder.ShowNewFolderButton = False
dlgOpenFolder.RootFolder = Environment.SpecialFolder.MyComputer
Dim DidWork As Integer = dlgOpenFolder.ShowDialog
Expand All @@ -362,8 +362,8 @@ Public Class frmMain
End If
End Function



Private Sub btnGetAllDriverInfo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetAllDriverInfo.Click
If WIMMounted = False Then
MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.")
Expand All @@ -385,7 +385,7 @@ Public Class frmMain
MessageBox.Show("You must enter in a driver name before continuing. The Driver name must end with inf")
Else
strDelDriverLocation = txtDelDriverLocation.Text
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Remove-Driver /driver:" & strDelDriverLocation
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Remove-Driver /driver:""" & strDelDriverLocation & """"
BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
frmProgress.ShowDialog()
txtOutput.Text = strOutput
Expand Down Expand Up @@ -419,7 +419,7 @@ Public Class frmMain
MessageBox.Show("You must enter in a package path before continuing. The package path must point to a valid cab file.")
Else
strPackagePath = txtPackagePath.Text
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Remove-Package /PackagePath:" & strPackagePath
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Remove-Package /PackagePath:""" & strPackagePath & """"
BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
frmProgress.ShowDialog()
txtOutput.Text = strOutput
Expand All @@ -432,7 +432,7 @@ Public Class frmMain
If WIMMounted = False Then
MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.")
Else
strDISMArguments = "/image:" & strMountedImageLocation & " /Get-Features"
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Get-Features"
BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
frmProgress.ShowDialog()
txtOutput.Text = strOutput
Expand Down
8 changes: 4 additions & 4 deletions 3.5/DISM GUI/frmMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Public Class frmMain
If WIMMounted = False Then
MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.")
Else
strDISMArguments = "/image:" & strMountedImageLocation & " /Get-Packages"
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Get-Packages"
BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
frmProgress.ShowDialog()
txtOutput.Text = strOutput
Expand Down Expand Up @@ -439,7 +439,7 @@ Public Class frmMain
If WIMMounted = False Then
MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.")
Else
strDISMArguments = "/image:" & strMountedImageLocation & " /Get-Features"
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Get-Features"
BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
frmProgress.ShowDialog()
txtOutput.Text = strOutput
Expand Down Expand Up @@ -690,7 +690,7 @@ Public Class frmMain
If WIMMounted = False Then
MessageBox.Show("No WIM is mounted. You must mount a WIM before running this command.")
Else
strDISMArguments = "/image:" & strMountedImageLocation & " /Get-Apps"
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Get-Apps"
BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
frmProgress.ShowDialog()
txtOutput.Text = strOutput
Expand Down Expand Up @@ -819,7 +819,7 @@ Public Class frmMain
'Do Nothing
End If
strMSPFileName = txtPatchLocation.Text
strDISMArguments = "/image:" & strMountedImageLocation & " /Check-AppPatch /PatchLocation:" & strMSPFileName
strDISMArguments = "/image:""" & strMountedImageLocation & """" & " /Check-AppPatch /PatchLocation:" & strMSPFileName
BackgroundWorkerDISMCommand.RunWorkerAsync(strDISMArguments)
frmProgress.ShowDialog()
txtOutput.Text = strOutput
Expand Down
24 changes: 13 additions & 11 deletions 4.0/DISM GUI.sln → 4.8/DISM GUI.sln
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32228.430
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "DISM GUI", "DISM GUI\DISM GUI.vbproj", "{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://us-mertfs02:8080/tfs/defaultcollection
SccLocalPath0 = .
SccProjectUniqueName1 = DISM\u0020GUI\\DISM\u0020GUI.vbproj
SccProjectName1 = DISM\u0020GUI
SccLocalPath1 = DISM\u0020GUI
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Debug|x64.ActiveCfg = Debug|x64
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Debug|x64.Build.0 = Debug|x64
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Debug|x86.ActiveCfg = Debug|x86
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Debug|x86.Build.0 = Debug|x86
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Release|x64.ActiveCfg = Release|x64
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Release|x64.Build.0 = Release|x64
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Release|x86.ActiveCfg = Release|x86
{D3E5BCD3-DED9-48F3-B457-70F561E54A1A}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4DBC5D64-6A83-437F-9A5E-CBB69E92E596}
EndGlobalSection
EndGlobal
File renamed without changes.
29 changes: 26 additions & 3 deletions 4.0/DISM GUI/DISM GUI.vbproj → 4.8/DISM GUI/DISM GUI.vbproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
Expand All @@ -13,7 +13,7 @@
<AssemblyName>DISM GUI</AssemblyName>
<FileAlignment>512</FileAlignment>
<MyType>WindowsForms</MyType>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
Expand All @@ -33,7 +33,8 @@
<ApplicationVersion>3.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
Expand All @@ -44,6 +45,7 @@
<OutputPath>bin\Debug\</OutputPath>
<DocumentationFile>DISM GUI.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
Expand All @@ -54,6 +56,7 @@
<OutputPath>bin\Release\</OutputPath>
<DocumentationFile>DISM GUI.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<OptionExplicit>On</OptionExplicit>
Expand All @@ -70,6 +73,25 @@
<PropertyGroup>
<ApplicationManifest>My Project\app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<OutputPath>bin\x64\Debug\</OutputPath>
<DocumentationFile>DISM GUI.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<DefineTrace>true</DefineTrace>
<OutputPath>bin\x64\Release\</OutputPath>
<DocumentationFile>DISM GUI.xml</DocumentationFile>
<Optimize>true</Optimize>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -117,6 +139,7 @@
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 4.0/DISM GUI/app.config → 4.8/DISM GUI/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading