From af6cfb110dfc3c343c30b73d950b1c033ab2133f Mon Sep 17 00:00:00 2001 From: Yasuhiko Kamata Date: Fri, 17 Nov 2017 16:26:26 +0900 Subject: [PATCH] fixed for Windows Vista --- openSUSE_installer.nsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openSUSE_installer.nsi b/openSUSE_installer.nsi index 3363e7f..c5ed4b7 100644 --- a/openSUSE_installer.nsi +++ b/openSUSE_installer.nsi @@ -893,11 +893,11 @@ lbl_loopexitvolumespaces: ${EndIf} ; check BitLocker encryption - nsExec::ExecToStack "cmd /c $\"wmic /namespace:\\root\cimv2\Security\MicrosoftVolumeEncryption path Win32_EncryptableVolume where 'DriveLetter = '$systemDrive'' get ConversionStatus /value | findstr ^ConversionStatus=$\"" + nsExec::ExecToStack "cmd /c $\"wmic /namespace:\\root\cimv2\Security\MicrosoftVolumeEncryption path Win32_EncryptableVolume where 'DriveLetter = '$systemDrive'' call GetConversionStatus | findstr /C:$\"ConversionStatus = $\"$\"" Pop $1 Pop $2 ${If} $1 = 0 - ${If} $2 != "ConversionStatus=0$\r$\r$\n" + ${If} $2 != "$\r$\n$\tConversionStatus = 0;$\r$\n" MessageBox MB_OK|MB_ICONSTOP $(STRING_SYSTEMDRIVE_ENCRYPTED) Abort ${EndIf}