Skip to content

Commit

Permalink
Update versioning information to v5.2 for new release, also fixing a …
Browse files Browse the repository at this point in the history
…major but minor bug in the BIOS/EFI autodetection function that would fail if your VM's name contained any spaces and not allow you to go any further in the process.

Update versioning information to v5.2 for new release, while also fixing a minor but major bug in the BIOS/EFI autodetection function which would cause it to not function and fail if your VM's name contained any spaces, thus causing the BIOS/EFI verification function right below it to also fail (due to invalid values) thus sending you back up to re-enter your VM's name again; if this verification function never existed, you likely would've ended up with a boat load of errors during the actual process of applying the new system information, and obviously also having it just not work at all.
  • Loading branch information
JayMontana36 committed Feb 22, 2018
1 parent 29e3f1f commit 9368bf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Compiler/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ x64 = 0
ico = .\vBox System Info Mod Icon.ico
[inf]
ver = 1
vr1 = 5,1,0,0
vr2 = 5,1,0,0
vr1 = 5,2,0,0
vr2 = 5,2,0,0
vr3 = JayMontana36
vr4 = vBox VM System Information Modifier
vr5 = vBoxSysInfoMod
Expand Down
4 changes: 2 additions & 2 deletions vBox System Info Mod.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
:PreInit
set title=vBoxSysInfoMod - VirtualBox VM System Information Modifier v5.1 Final by JayMontana36
set title=vBoxSysInfoMod - VirtualBox VM System Information Modifier v5.2 Final by JayMontana36
TITLE %title%
set vBoxInstallLocation=C:\Program Files\Oracle\Virtualbox

Expand All @@ -18,7 +18,7 @@ set /p VMname="Which vBox VM do you wish to modify? "
@REM for /f "tokens=1 delims=" %%F in ('"VBoxManage list vms | findstr %VMname%"') do set _VMname=%%~F
@REM set _VMname=%_VMname:"=%
@REM IF [%_VMname%] NEQ [%VMname%] goto ModifyVM
for /f "tokens=1 delims=firmware=" %%F in ('"%vBox% showvminfo %VMname% --machinereadable | findstr firmware"') do set _vmMode=%%~F
for /f "tokens=1 delims=firmware=" %%F in ('"%vBox% showvminfo "%VMname%" --machinereadable | findstr firmware"') do set _vmMode=%%~F
IF [%_vmMode%] EQU [BIOS] (set fw=pcbios) else IF [%_vmMode%] EQU [EFI] (set fw=efi) else (goto ModifyVM)
set /p SYSven="New System Manufacturer? "
set /p SYSprod="New System Model? "
Expand Down

0 comments on commit 9368bf0

Please sign in to comment.