Skip to content

Commit

Permalink
I don't know if compatibility with Windows 7 is dropped (official doc…
Browse files Browse the repository at this point in the history
…umentation kinda contradicts itself, testing will be made later)
  • Loading branch information
CodingWonders committed Feb 19, 2023
1 parent 0bc3199 commit e70a3c1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions MainForm.vb
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,6 @@ Public Class MainForm
Dim DismVersionChecker As FileVersionInfo

Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
' Because of the DISM API, Windows 7 compatibility is out the window (no pun intended)
If Environment.OSVersion.Version.Major = 6 And Environment.OSVersion.Version.Minor < 2 Then
MsgBox("This program is incompatible with Windows 7 and Server 2008 R2." & CrLf & "This program uses the DISM API, which requires files from the Assessment and Deployment Kit (ADK). However, support for Windows 7 is not included." & CrLf & CrLf & "The program will be closed.", vbOKOnly + vbCritical, "DISMTools")
Environment.Exit(1)
End If
' I once tested this on a computer which didn't require me to ask for admin privileges. This is a requirement of DISM. Check this
If Not My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then
MsgBox("This program must be run as an administrator." & CrLf & "There are certain software configurations in which Windows will run this program without admin privileges, so you must ask for them manually." & CrLf & CrLf & "Right-click the executable, and select " & Quote & "Run as administrator" & Quote, vbOKOnly + vbCritical, "DISMTools")
Expand Down

0 comments on commit e70a3c1

Please sign in to comment.