Skip to content

Commit

Permalink
fixed for Windows Vista
Browse files Browse the repository at this point in the history
  • Loading branch information
belphegor-belbel committed Nov 17, 2017
1 parent 4759b0f commit af6cfb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openSUSE_installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit af6cfb1

Please sign in to comment.