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

Fix default Windows install directory regression from WiX v4 port #185

Merged
merged 6 commits into from
Apr 1, 2023

Conversation

tristanlabelle
Copy link
Contributor

@tristanlabelle tristanlabelle commented Mar 30, 2023

The rules around <SetDirectory> changed between WiX v3 and v4, so our port resulted in the INSTALLDIR defaulting to C:\ instead of either C:\Program Files\swift or C:\Library.

Changes:

  • For the runtime, use <StandardDirectory> to root in ProgramFiles, and capitalize Swift for consistency with all other programs
  • For stuff installed under C:\Library, use <SetDirectory> + <Directory> as a means of rooting at WindowsVolume, also change the customizable installation path to the C:\ underneath Library (so the installer will write the Library directory under the users' path rather than start at the Developer directory)

How tested:

  • Rebuilt and installed runtime + sdk msi's to their default locations and to overriden locations, then installed the full installer. Verified that paths and environment variables are as expected in all cases.

@tristanlabelle tristanlabelle marked this pull request as ready for review March 31, 2023 15:36
@tristanlabelle tristanlabelle changed the title Fix regression on default install directory after WiX v4 port Fix default Windows install directory regression from WiX v4 port Mar 31, 2023
@tristanlabelle
Copy link
Contributor Author

Oops there seems to be a bad merge in there, gimme a sec

@tristanlabelle
Copy link
Contributor Author

False alarm, there's no bad merge, just a confusing diff.

@compnerd
Copy link
Member

compnerd commented Apr 1, 2023

Tested at swiftlang/swift#64815

@compnerd compnerd merged commit fb22471 into swiftlang:main Apr 1, 2023
compnerd added a commit to compnerd/apple-swift that referenced this pull request Apr 2, 2023
compnerd pushed a commit to compnerd/swift-installer-scripts that referenced this pull request Apr 3, 2023
swiftlang#185)

* Fix regression on default install dir after wix v4 port
* Switched to StandardDirectory for runtime wxs
* Fixed WindowsVolume reference for C:\Library-targeting wxs's
* Capitalized Swift under Program Files
* Change overridable install dir to the level above Library
* Uniformize comments
compnerd pushed a commit that referenced this pull request Apr 4, 2023
#185)

* Fix regression on default install dir after wix v4 port
* Switched to StandardDirectory for runtime wxs
* Fixed WindowsVolume reference for C:\Library-targeting wxs's
* Capitalized Swift under Program Files
* Change overridable install dir to the level above Library
* Uniformize comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants