Skip to content

Commit

Permalink
add detection of BitLocker
Browse files Browse the repository at this point in the history
  • Loading branch information
belphegor-belbel committed Nov 15, 2017
1 parent 872cb14 commit 4759b0f
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/Danish.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Tryk på OK-knappen efter udviklertilstand er blevet aktiveret."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Nu åbnes Microsoft Store. Tryk på $\"Hent appen$\" eller $\"installer$\" for at installere. Efter installationen kan du starte openSUSE fra menuen Start."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Angivne openSUSE-version findes ikke i Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Dutch.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/English.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Finnish.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/French.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/German.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Greek.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Italian.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Japanese.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "開発者モードを有効にしましたら、 OK ボタンを押してください。"
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Microsoft ストアを表示します。 $\"アプリをゲット$\" または $\"インストール$\" を押すと、インストールを行なうことができます。インストールが終わりましたら、スタートメニューから openSUSE を起動できるようになります。"
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "指定した openSUSE のバージョンは Microsoft ストア内に見つかりません。"
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "システムドライブが暗号化されているため、このインストーラではこのマシン自身にインストールすることができません。"
1 change: 1 addition & 0 deletions lang/Korean.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Lithuanian.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Įgalinę programuotojo veikseną, spauskite „Gerai“."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Atveriama „Microsoft“ parduotuvė. Norėdami įdiegti, spauskite „diegti“ („Get the app“ arba „install“). Pasibaigus diegimui, „openSUSE“ sistemą galėsite paleisti per „Pradžios“ meniu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "„Microsoft“ parduotuvėje nėra pasirinktos „openSUSE“ versijos."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Norwegian.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/NorwegianNynorsk.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Polish.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Portuguese.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/PortugueseBR.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Russian.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/SimpChinese.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Spanish.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/SpanishInternational.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/Swedish.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
1 change: 1 addition & 0 deletions lang/TradChinese.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
!insertmacro LANG_STRING STRING_LINUXONWIN_DEVLICENSECONFIRM_PROCEED "Push OK button after enabling developer mode."
!insertmacro LANG_STRING STRING_LINUXONWIN_BEFORESTORE "Now opening Microsoft Store. Push $\"Get the app$\" or $\"install$\" to install. After installation, you can start openSUSE from start menu."
!insertmacro LANG_STRING STRING_LINUXONWIN_NOTFOUNDONSTORE "Specified openSUSE version is not found on Microsoft Store."
!insertmacro LANG_STRING STRING_SYSTEMDRIVE_ENCRYPTED "Because of encryption of system drive, this installer cannot be used for installation to this machine itself."
11 changes: 11 additions & 0 deletions openSUSE_installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,17 @@ lbl_loopexitvolumespaces:
MessageBox MB_OK|MB_ICONSTOP $(STRING_REFUSE_UEFI)
Abort
${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=$\""
Pop $1
Pop $2
${If} $1 = 0
${If} $2 != "ConversionStatus=0$\r$\r$\n"
MessageBox MB_OK|MB_ICONSTOP $(STRING_SYSTEMDRIVE_ENCRYPTED)
Abort
${EndIf}
${EndIf}
${EndIf}

MessageBox MB_OKCANCEL|MB_ICONQUESTION|MB_DEFBUTTON2 $(STRING_STARTCONFIRM) \
Expand Down

0 comments on commit 4759b0f

Please sign in to comment.