diff --git a/constructor/nsis/main.nsi.tmpl b/constructor/nsis/main.nsi.tmpl index abdbbaef0..259968867 100644 --- a/constructor/nsis/main.nsi.tmpl +++ b/constructor/nsis/main.nsi.tmpl @@ -1205,9 +1205,9 @@ Section "Install" # https://github.com/conda/conda-libmamba-solver/issues/480 System::Call 'kernel32::SetEnvironmentVariable(t,t)i("CONDA_SOLVER", "classic").r0' SetDetailsPrint TextOnly - ${Print} "Checking virtual specs compatibility: @VIRTUAL_SPECS@" + ${Print} "Checking virtual specs compatibility: @VIRTUAL_SPECS_DEBUG@" push '"$INSTDIR\_conda.exe" create --dry-run --prefix "$INSTDIR\envs\_virtual_specs_checks" --offline @VIRTUAL_SPECS@' - push 'Failed to check virtual specs: @VIRTUAL_SPECS@' + push 'Failed to check virtual specs: @VIRTUAL_SPECS_DEBUG@' push 'WithLog' call AbortRetryNSExecWait SetDetailsPrint both diff --git a/constructor/winexe.py b/constructor/winexe.py index b95bfe1af..02ae28a58 100644 --- a/constructor/winexe.py +++ b/constructor/winexe.py @@ -376,6 +376,8 @@ def make_nsi( ), ('@TEMP_EXTRA_FILES@', '\n '.join(insert_tempfiles_commands(temp_extra_files))), ('@VIRTUAL_SPECS@', " ".join([f'"{spec}"' for spec in info.get("virtual_specs", ())])), + # This is the same but without quotes so we can print it fine + ('@VIRTUAL_SPECS_DEBUG@', " ".join([spec for spec in info.get("virtual_specs", ())])), ('@LICENSEFILENAME@', basename(info.get('license_file', 'placeholder_license.txt'))), ]: data = data.replace(key, value)