mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2025-12-06 17:15:42 -08:00
If missing files, warn that zip is not extracted
This commit is contained in:
@@ -1034,6 +1034,11 @@ public class Setup {
|
|||||||
SkipShim = args.Contains("skip-shim");
|
SkipShim = args.Contains("skip-shim");
|
||||||
ForwardArguments = String.Join(" ", args.Where(s => ForwardableArguments.Contains(s) || s.StartsWith("arch=")));
|
ForwardArguments = String.Join(" ", args.Where(s => ForwardableArguments.Contains(s) || s.StartsWith("arch=")));
|
||||||
try {
|
try {
|
||||||
|
if (!(Directory.Exists("efi") || Directory.Exists("efi-signed")) || !File.Exists("config.txt")) {
|
||||||
|
WriteLine("This setup program is not in the correct directory!");
|
||||||
|
WriteLine("Please extract the zip file and run the setup program from there.");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
SetArch(args.Where(s => s.StartsWith("arch=")).Select(s => s.Substring(5)).LastOrDefault());
|
SetArch(args.Where(s => s.StartsWith("arch=")).Select(s => s.Substring(5)).LastOrDefault());
|
||||||
if (args.Contains("is-elevated") && !HasPrivileges() && !DryRun) {
|
if (args.Contains("is-elevated") && !HasPrivileges() && !DryRun) {
|
||||||
WriteLine("This installer needs to be run as administrator!");
|
WriteLine("This installer needs to be run as administrator!");
|
||||||
|
|||||||
Reference in New Issue
Block a user