      Call SetEnvironment
      Call InstallGit
      Call CloneRepo
      Call SetupFaceSwap
      Call DesktopShortcut
      ExecShell "open" "${wwwFaceswap}"
      DetailPrint "Visit ${wwwFaceswap} for help and support."
  SectionEnd
 
</s> remove     Call InstallPrerequisites
    Call CloneRepo
 </s> add     Call InstallConda </s> remove Function InstallPrerequisites
    # GIT
        ${If} $InstallGit == 1
            DetailPrint "Downloading Git..."
            inetc::get /caption "Downloading Git..." /canceltext "Cancel" ${wwwGit} "git_installer.exe" /end
            Pop $0 # return value = exit code, "OK" means OK
            ${If} $0 == "OK"
                DetailPrint "Installing Git..."
                SetDetailsPrint listonly
                ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$\"$dirTemp\git_installer.exe$\" ${flagsGit} /LOADINF=$\"$gitInf$\""
                pop $0
                ExecDos::wait $0
                pop $0
                SetDetailsPrint both
                ${If} $0 != 0
                    DetailPrint "Error Installing Git"
                    StrCpy $InstallFailed 1
                ${EndIf}
            ${Else}
                DetailPrint "Error Downloading Git"
                StrCpy $InstallFailed 1
            ${EndIf}
        ${EndIf}

    # CONDA
        ${If} $InstallConda == 1
            DetailPrint "Downloading Miniconda3..."
            inetc::get /caption "Downloading Miniconda3." /canceltext "Cancel" ${wwwConda} "Miniconda3.exe" /end
            Pop $0
            ${If} $0 == "OK"
                DetailPrint "Installing Miniconda3. This will take a few minutes..."
                SetDetailsPrint listonly
                ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$\"$dirTemp\Miniconda3.exe$\" ${flagsConda}"
                pop $0
                ExecDos::wait $0
                pop $0
                StrCpy $dirConda "$dirMiniconda"
                SetDetailsPrint both
                ${If} $0 != 0
                    DetailPrint "Error Installing Miniconda3"
                    StrCpy $InstallFailed 1
                ${EndIf}
            ${Else}
                DetailPrint "Error Downloading Miniconda3"
 </s> add Function InstallConda
    ${If} $InstallConda == 1
        DetailPrint "Downloading Miniconda3..."
        inetc::get /caption "Downloading Miniconda3." /canceltext "Cancel" ${wwwConda} "Miniconda3.exe" /end
        Pop $0
        ${If} $0 == "OK"
            DetailPrint "Installing Miniconda3. This will take a few minutes..."
            SetDetailsPrint listonly
            ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$\"$dirTemp\Miniconda3.exe$\" ${flagsConda}"
            pop $0
            ExecDos::wait $0
            pop $0
            StrCpy $dirConda "$dirMiniconda"
            SetDetailsPrint both
            ${If} $0 != 0
                DetailPrint "Error Installing Miniconda3" </s> remove         DetailPrint "All Prerequisites installed."
    ${EndIf}
FunctionEnd

Function CloneRepo
    DetailPrint "Downloading Faceswap..."
    SetDetailsPrint listonly
    ${If} $InstallGit == 1
        StrCpy $9 "$\"$PROGRAMFILES64\git\bin\git.exe$\""
    ${Else}
        StrCpy $9 "git"
    ${EndIf}
    ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$9 clone ${flagsRepo} $\"$INSTDIR$\""
    pop $0
    ExecDos::wait $0
    pop $0
    SetDetailsPrint both
    ${If} $0 != 0
        DetailPrint "Error Downloading Faceswap"
        Call Abort
 </s> add         DetailPrint "Miniconda3 installed." </s> remove Function DesktopShortcut
    DetailPrint "Creating Desktop Shortcut"
 </s> add Function AddGuiLauncher
    DetailPrint "Creating GUI Launcher"
    Call AddGuiLauncher
      Call SetEnvironment
      Call InstallGit
      Call CloneRepo
      Call SetupFaceSwap
    Call AddGuiLauncher
      Call DesktopShortcut
      ExecShell "open" "${wwwFaceswap}"
      DetailPrint "Visit ${wwwFaceswap} for help and support."
  SectionEnd
keep keep keep add keep keep keep keep
 Installer updates
Windows - Install Conda git
Linux + Windows - Always create GUI Launcher shortcut 
.install/windows/install.nsi