              Call Abort
          ${EndIf}
  FunctionEnd
  
  Function InstallDlib
      DetailPrint "Installing Dlib..."
      SetDetailsPrint listonly
  
      StrCpy $dlibWhl ${prefixDlib}
  
      ${If} $noNvidia != 1
          StrCpy $dlibWhl "$dlibWhl${cudaDlib}"
      ${EndIf}
  
      ${If} $hasAVX == 1
          StrCpy $dlibWhl "$dlibWhl${avxDlib}"
      ${ElseIf} $hasSSE4 == 1
          StrCpy $dlibWhl "$dlibWhl${sseDlib}"
      ${Else}
          StrCpy $dlibWhl "$dlibWhl${noneDlib}"
      ${EndIf}
  
      StrCpy $dlibWhl "$dlibWhl.whl"
      DetailPrint "Renaming $dlibWhl to ${dlibFinalName}"
      Rename  "$dirTemp\$dlibWhl"  "$dirTemp\${dlibFinalName}"
  
      ExecWait "$\"$dirConda\scripts\activate.bat$\" && conda activate $\"$envName$\" && pip install $\"$dirTemp\${dlibFinalName}$\" &&  conda deactivate" $0
      SetDetailsPrint both
      ${If} $0 != 0
          DetailPrint "Error Installing Dlib"
          Call Abort
      ${EndIf}
  
  FunctionEnd
  
  Function SetupFaceSwap
      DetailPrint "Setting up FaceSwap Environment"
      StrCpy $0 "${flagsSetup}"
      ${If} $noNvidia != 1
          StrCpy $0 "$0 --gpu"
 
</s> remove     DetailPrint "Setting up FaceSwap Environment"
 </s> add     DetailPrint "Setting up FaceSwap Environment... This may take a while" </s> remove     ExecWait "$\"$dirConda\scripts\activate.bat$\" && conda activate $\"$envName$\" && python $\"$INSTDIR\setup.py$\" $0 && conda deactivate" $0
 </s> add     ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$\"$dirConda\scripts\activate.bat$\" && conda activate $\"$envName$\" && python $\"$INSTDIR\setup.py$\" $0 && conda deactivate"
    pop $0
    ExecDos::wait $0
    pop $0 </s> remove         ExecWait "$\"$dirConda\scripts\activate.bat$\" && conda create ${flagsEnv} -n  $\"$envName$\" && conda deactivate" $0
 </s> add         ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$\"$dirConda\scripts\activate.bat$\" && conda create ${flagsEnv} -n  $\"$envName$\" && conda deactivate"
        pop $0
        ExecDos::wait $0
        pop $0 </s> remove     ExecWait "$9 clone ${flagsRepo} $\"$INSTDIR$\"" $0
 </s> add     ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$9 clone ${flagsRepo} $\"$INSTDIR$\""
    pop $0
    ExecDos::wait $0
    pop $0 </s> remove                 ExecWait "$\"$dirTemp\Miniconda3.exe$\" ${flagsConda}" $0
 </s> add                 ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$\"$dirTemp\Miniconda3.exe$\" ${flagsConda}"
                pop $0
                ExecDos::wait $0
                pop $0
              Call Abort
          ${EndIf}
  FunctionEnd
  































  Function SetupFaceSwap
      DetailPrint "Setting up FaceSwap Environment"
      StrCpy $0 "${flagsSetup}"
      ${If} $noNvidia != 1
          StrCpy $0 "$0 --gpu"
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Remove dlib (#725)

* Sort to vgg_face. Remove Face Recognition requirements

* Remove dlib components from setup.py

* Remove dlib from Windows Installer script

* Remove dlib and cmake from requirements.txt

* Update INSTALL.md to remove all dlib requirements

* Remove dlib and cmake from dockerfiles

* Windows installer. Output cli to details Window. Setup.py bugfix

* Skip FaceFilter if invalid paths passed in 
.install/windows/install.nsi