  FunctionEnd
  
  Function SetEnvironment
      DetailPrint "Creating Conda Virtual Environment..."
  
      IfFileExists  "$dirConda\envs\faceswap" DeleteEnv CreateEnv
          DeleteEnv:
 
</s> remove             ExecWait "$dirConda\scripts\activate.bat && conda env remove -y -n ${envName} && conda deactivate" $0
 </s> add             ExecWait "$dirConda\scripts\activate.bat && conda env remove -y -n $\"$envName$\" && conda deactivate" $0 </s> remove     FileWrite $9 "$\"$dirConda\scripts\activate.bat$\" && conda activate ${envName} && python $\"$INSTDIR/faceswap.py$\" gui$\r$\n"
 </s> add     FileWrite $9 "$\"$dirConda\scripts\activate.bat$\" && conda activate $\"$envName$\" && python $\"$INSTDIR/faceswap.py$\" gui$\r$\n" </s> remove         ExecWait "$dirConda\scripts\activate.bat && conda create ${flagsEnv} && conda deactivate" $0
 </s> add         ExecWait "$dirConda\scripts\activate.bat && conda create ${flagsEnv} -n  $\"$envName$\" && conda deactivate" $0 </s> remove 
; onClick handler for DirRequest Button $hCtl_test_DirRequest1_Btn
 </s> add 
    # Updating Conda breaks setup.py. Commented out in case this issue gets resolved in future
#    DetailPrint "Initializing Conda..."
#    SetDetailsPrint listonly
#    ExecWait "$dirConda\scripts\activate.bat && conda update -y -n base -c defaults conda && conda deactivate" $0
#    SetDetailsPrint both
  FunctionEnd
  
  Function SetEnvironment
    # Updating Conda breaks setup.py. Commented out in case this issue gets resolved in future
#    DetailPrint "Initializing Conda..."
#    SetDetailsPrint listonly
#    ExecWait "$dirConda\scripts\activate.bat && conda update -y -n base -c defaults conda && conda deactivate" $0
#    SetDetailsPrint both
      DetailPrint "Creating Conda Virtual Environment..."
  
      IfFileExists  "$dirConda\envs\faceswap" DeleteEnv CreateEnv
          DeleteEnv:
keep keep add keep keep keep keep
 Windows Installer: Clone all branches. Allow customizable env name 
.install/windows/install.nsi