Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add env variables to windows installer #6

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

nhorman
Copy link
Contributor

@nhorman nhorman commented May 14, 2024

add environment variable setting to the installer

this adds a selection screen to the installer, allows the root directory to be set for our various environment variables. It defaults to the 64 it binary path if included, and falls back to the 32 bit path otherwise, and can be overridden if a user wants to specify a shared directory

@nhorman nhorman self-assigned this May 14, 2024
@nhorman nhorman linked an issue May 14, 2024 that may be closed by this pull request
2 tasks
Set the OPENSSL_CONF/CTLOG_FILE/SSL_CERT_FILE env vars during install to
point to the proper installation directory

also set a global OPENSSLDIR registry key in the non-user writeable
keyspace to allow for a runtime defined fallback location that openssl
can query at run time
@nhorman nhorman requested a review from a team May 21, 2024 14:39
@nhorman nhorman changed the title Add env vars Add env variables to windows installer May 28, 2024
Don't have the installer write the environment values anymore, as we
don't want to overwrite previously set administrative values there

Instead set the OPENSSLDIR ENGINESDIR and MODULESDIR values in the
specific openssl key space that we expect in the openssl library
We've decided that registry keys should be indexed by major.minor rather
than major.minor.patch.  Fix that up with this commit

Also, since nsis doesn't do string replacements without the addition of
a plugin (which I think we want to avoid using), we should pass in the
version elements separately so they can be concatinated easily
Copy link
Member

@levitte levitte left a comment

Choose a reason for hiding this comment

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

One path error and some indentation nits

windows-installer/openssl.nsi Outdated Show resolved Hide resolved
windows-installer/openssl.nsi Outdated Show resolved Hide resolved
Copy link
Member

@levitte levitte left a comment

Choose a reason for hiding this comment

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

That looks much nicer

windows-installer/openssl.nsi Outdated Show resolved Hide resolved
windows-installer/openssl.nsi Outdated Show resolved Hide resolved
windows-installer/openssl.nsi Outdated Show resolved Hide resolved
windows-installer/openssl.nsi Outdated Show resolved Hide resolved
windows-installer/openssl.nsi Show resolved Hide resolved
windows-installer/openssl.nsi Show resolved Hide resolved
@nhorman nhorman requested a review from mattcaswell July 12, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

Implement relocatable binaries for windows installer
3 participants