From e70a3c1e9c97d623c7b2678692e8390178fa5c54 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Sun, 19 Feb 2023 13:55:05 +0100 Subject: [PATCH] I don't know if compatibility with Windows 7 is dropped (official documentation kinda contradicts itself, testing will be made later) --- MainForm.vb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/MainForm.vb b/MainForm.vb index 51110799..4fe9d500 100644 --- a/MainForm.vb +++ b/MainForm.vb @@ -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")