      FileWrite $9 "$\"$dirConda\scripts\activate.bat$\" && conda activate $\"$envName$\" && python $\"$INSTDIR/faceswap.py$\" gui$\r$\n"
      FileClose $9
      CreateShortCut "$DESKTOP\FaceSwap.lnk" "$\"$INSTDIR\$0$\"" "" "$INSTDIR\.install\windows\fs_logo.ico"
  FunctionEnd 
</s> remove Function DesktopShortcut
    DetailPrint "Creating Desktop Shortcut"
 </s> add Function AddGuiLauncher
    DetailPrint "Creating GUI Launcher" </s> remove     ; Create a temporary .bat file for setting up faceswap so the path can be set for Git
    ; Required for installing pynvml from github
    FileOpen $9 "$dirTemp\_install_faceswap.bat" w
    ${If} $InstallGit == 1
        FileWrite $9 "SET PATH=%PATH%;$PROGRAMFILES64\git\cmd$\r$\n"
    ${EndIf}
    FileWrite $9 "$\"$dirConda\scripts\activate.bat$\" && conda activate $\"$envName$\" && python $\"$INSTDIR\setup.py$\" $0 && conda deactivate$\r$\n"
    FileClose $9

    ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$\"$dirTemp\_install_faceswap.bat$\""
 </s> add     ExecDos::exec /NOUNLOAD /ASYNC /DETAILED "$\"$dirConda\scripts\activate.bat$\" && conda activate $\"$envName$\" && python $\"$INSTDIR\setup.py$\" $0 && conda deactivate" </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     StrCpy $gitInf "$dirTemp\git_install.inf"
 </s> add  </s> remove     File git_install.inf
 </s> add 
FunctionEnd

Function DesktopShortcut
    DetailPrint "Creating Desktop Shortcut"
      FileWrite $9 "$\"$dirConda\scripts\activate.bat$\" && conda activate $\"$envName$\" && python $\"$INSTDIR/faceswap.py$\" gui$\r$\n"
      FileClose $9
FunctionEnd

Function DesktopShortcut
    DetailPrint "Creating Desktop Shortcut"
      CreateShortCut "$DESKTOP\FaceSwap.lnk" "$\"$INSTDIR\$0$\"" "" "$INSTDIR\.install\windows\fs_logo.ico"
  FunctionEnd 
keep add keep keep
 Installer updates
Windows - Install Conda git
Linux + Windows - Always create GUI Launcher shortcut 
.install/windows/install.nsi