Skip to content

Fix: Bugs in windows installer#3061

Merged
WhoBrokeTheBuild merged 1 commit into
MDSplus:alphafrom
WhoBrokeTheBuild:slw-nsi-issues-3059
Jun 30, 2026
Merged

Fix: Bugs in windows installer#3061
WhoBrokeTheBuild merged 1 commit into
MDSplus:alphafrom
WhoBrokeTheBuild:slw-nsi-issues-3059

Conversation

@WhoBrokeTheBuild

Copy link
Copy Markdown
Member

This should hopefully fix #3059

Remove auto expand on APIs/python sections of the component selection, it caused the list to jump around in annoying ways
Remove "devices" section and move "tdi devices" up one level, and "pydevices" under the Python section
Remove complicated logic to trying to keep the python/pydevices sections dependent on each other
Try to better select components for each install type
Fix issues related to move out of C:\Windows\System32 where the $PATH wasn't being updated for all-user installations

@WhoBrokeTheBuild WhoBrokeTheBuild self-assigned this Jun 15, 2026
@WhoBrokeTheBuild WhoBrokeTheBuild added bug An unexpected problem or unintended behavior build Relates to the build system os/windows This is present on or relates to Windows labels Jun 15, 2026
This should hopefully fix MDSplus#3059
Remove auto expand on APIs/python sections of the component selection, it caused the list to jump around in annoying ways
Remove "devices" section and move "tdi devices" up one level, and "pydevices" under the Python section
Remove complicated logic to trying to keep the python/pydevices sections dependent on each other
Try to better select components for each install type
@mwinkel-dev

mwinkel-dev commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Did a developer build of PR #3061 and installed it on a Windows 11 system. These screenshots show that the "typical" installation now works fine (i.e., fixes the problems reported in Issue #3059).

typical_1 typical_2 typical_3 typical_4

@mwinkel-dev

Copy link
Copy Markdown
Contributor

And these screenshots show that the "custom" installation also works fine.

custom_1 custom_2

@mwinkel-dev

Copy link
Copy Markdown
Contributor

Now that the installation on Windows 11 has been tested, I will review the changes to the *.nsi file.

${IfNot} for AllUsers ?
${AddToEnv} "PATH" "${BINDIR}"
${EndIf}
SectionIn 1 2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minimal install does not append the path (i.e., append is only for "1 2" -- Typical and Full -- installs). Likely is A-OK to exclude Minimal, but am flagging this just to make sure it isn't an oversight.

${EndIf}
SectionSetFlags ${appendpath} ${SF_RO}
${SelectSection} ${appendpath}
; SectionSetFlags ${appendpath} ${SF_RO}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this commented line be deleted?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm going to leave them for now, but they can definitely be removed next time someone works on this

${EndIf}
${EndIf}
FunctionEnd
; Function .onSelChange

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perhaps add a comment to explain why this function was commented out and retained? Alternatively, delete the commented function?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So long as we go through a release cycle and people are happy with the change, I'll probably remove it shortly

@mwinkel-dev

Copy link
Copy Markdown
Contributor

Hi @WhoBrokeTheBuild -- The changes to the *.nsi file look good and match the PR's description. I only spotted three trivial cosmetic issues. After you respond to the three comments, I'll then submit the approval for the PR.

@mwinkel-dev mwinkel-dev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Replies to comments make sense, thus approving this PR.

@WhoBrokeTheBuild WhoBrokeTheBuild merged commit b673699 into MDSplus:alpha Jun 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An unexpected problem or unintended behavior build Relates to the build system os/windows This is present on or relates to Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImportError: Could not find library: MdsShr

2 participants