Skip to content

Conversation

marcoesters
Copy link
Contributor

Description

Convert simple script and directory subcommands into NSIS code to further decouple the python dependency from EXE installers (#549). Scripts are already executed directly via cmd.exe for pre-install scripts and mkdirs is a simple directory creation command.

Note that this means that post-install and pre-uninstall script failures will cause the installation/uninstallation process to fail now. I think this is good behavior as it has masked issues in the past (see #942 and #1020).

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@github-project-automation github-project-automation bot moved this to 🆕 New in 🔎 Review Sep 18, 2025
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Sep 18, 2025
@marcoesters marcoesters marked this pull request as ready for review September 19, 2025 00:17
@marcoesters marcoesters requested a review from a team as a code owner September 19, 2025 00:17
@lrandersson
Copy link

@marcoesters Is this something that is awaiting review? Let me know and I can review it.

@marcoesters
Copy link
Contributor Author

@marcoesters Is this something that is awaiting review? Let me know and I can review it.

You are free to leave comments, but in the end, I need approval from a constructor maintainer.

call un.AbortRetryNSExecWait
${EndIf}
!insertmacro AbortRetryNSExecWaitLibNsisCmd "rmpath"
!insertmacro AbortRetryNSExecWaitLibNsisCmd "rmreg"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this no longer needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was actually never needed. The uninstallation via conda-standalone already performs the same function during the installation process. I included that line back then by mistake.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks!

marcoesters and others added 2 commits September 30, 2025 12:43
Co-authored-by: Robin <34315751+lrandersson@users.noreply.github.com>
jaimergp
jaimergp previously approved these changes Oct 2, 2025
Copy link
Contributor

@jaimergp jaimergp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanups! Thanks!

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Approved in 🔎 Review Oct 2, 2025
@marcoesters
Copy link
Contributor Author

I found a way to remove the rmreg command with uninstallers that don't use conda-standalone. I think this should be part of this PR.

@marcoesters marcoesters requested a review from jaimergp October 3, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Status: Approved
Development

Successfully merging this pull request may close these issues.

4 participants