Skip to content

Commit

Permalink
revert bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Dec 12, 2023
1 parent 9f02022 commit 8459f76
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions constructor/winexe.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,13 @@ def setup_envs_commands(info, dir_path):
# Set register_envs
System::Call 'kernel32::SetEnvironmentVariable(t,t)i("CONDA_REGISTER_ENVS", "{register_envs}").r0'
# Run conda
SetDetailsPrint TextOnly
nsExec::ExecToLog '"$INSTDIR\_conda.exe" install --offline -yp "{prefix}" --file "{env_txt}" {shortcuts}'
Pop $0
${{If}} $0 != "0"
DetailPrint "::error:: Failed to link extracted packages to {prefix}!"
MessageBox MB_OK|MB_ICONSTOP "Failed to link extracted packages to {prefix}. Please check logs." /SD IDOK
Abort
# Run conda install
${{If}} $Ana_CreateShortcuts_State = ${{BST_CHECKED}}
DetailPrint "Installing packages for {name}, creating shortcuts if necessary..."
push '"$INSTDIR\_conda.exe" install --offline -yp "{prefix}" --file "{env_txt}" {shortcuts}'
${{Else}}
DetailPrint "Installing packages for {name}..."
push '"$INSTDIR\_conda.exe" install --offline -yp "{prefix}" --file "{env_txt}" --no-shortcuts'
${{EndIf}}
push 'Failed to link extracted packages to {prefix}!'
push 'WithLog'
Expand Down

0 comments on commit 8459f76

Please sign in to comment.