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

#420: Create Windows Installer with WixToolset #978

Open
wants to merge 55 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
a6180d2
add first template for MSI
alfeilex Jan 22, 2025
e1171de
remove path variable
alfeilex Jan 22, 2025
bf7f5ba
Merge branch 'devonfw:main' into #420-create-win-installer
alfeilex Jan 29, 2025
45dd4cb
Add CustomAction to run setup.bat after installation
alfeilex Jan 29, 2025
c5882a0
remove license here (moved to assets)
alfeilex Jan 29, 2025
38842bc
add readme how to build
alfeilex Jan 29, 2025
a50976d
remove code interpreter syntax highlighting
alfeilex Jan 29, 2025
08583cd
some correction
alfeilex Jan 29, 2025
f35d9d5
add info
alfeilex Jan 29, 2025
72163e7
small adaption
alfeilex Jan 29, 2025
8a31e88
add quiet setup.bat executin and pre built msi for testing
alfeilex Jan 29, 2025
b0a954e
change setup.bat run before InstallFinalize
alfeilex Jan 29, 2025
ed6020c
Merge branch 'main' into #420-create-win-installer
alfeilex Feb 4, 2025
6949a8a
update for Ideasy msi
alfeilex Feb 5, 2025
f026bf2
update for Ideasy msi
alfeilex Feb 5, 2025
523586e
update readme
alfeilex Feb 5, 2025
2bbd6d7
update CustomActionValidation.CA.dll
alfeilex Feb 5, 2025
312d5a7
update
alfeilex Feb 5, 2025
147f9cb
add custom action code
alfeilex Feb 5, 2025
d9e3324
update CA
alfeilex Feb 5, 2025
79eb2d0
more compact
alfeilex Feb 5, 2025
0e26392
Refactor and add Dlg for Select install Location
alfeilex Feb 12, 2025
946b9f8
Merge branch 'main' of https://github.com/devonfw/IDEasy into #420-cr…
alfeilex Feb 12, 2025
58b5a70
Remove unnecessary files
alfeilex Feb 12, 2025
d986e4d
add some explaination to the readme
alfeilex Feb 12, 2025
e6e14d7
Merge branch 'devonfw:main' into #420-create-win-installer
alfeilex Feb 18, 2025
6636651
Merge branch 'devonfw:main' into #420-create-win-installer
alfeilex Feb 19, 2025
971dd5d
update path for setup files
alfeilex Feb 19, 2025
d9edb86
update readme
alfeilex Feb 19, 2025
30447ba
update projects\_ide and readme
alfeilex Feb 19, 2025
ea06a5f
delete msi
alfeilex Feb 19, 2025
e81f1ac
Merge branch 'main' into #420-create-win-installer
hohwille Feb 21, 2025
cdc4027
Merge branch 'main' into #420-create-win-installer
alfeilex Feb 23, 2025
0cd8d79
Rename folder
alfeilex Feb 23, 2025
ec47ece
#420: Add changelog entry
alfeilex Feb 23, 2025
ac4bc64
#420: change LICENSE and use ideasy.exe install and uninstall
alfeilex Feb 23, 2025
bfb77ee
Merge branch 'main' into #420-create-win-installer
alfeilex Feb 25, 2025
b3b0837
#420: update uninstall command and update LICENSE.rtf
alfeilex Feb 25, 2025
d648dbd
#420: working setup.bat call because calling ideasy.exe didnt work
alfeilex Feb 25, 2025
3bc1e11
#420: add build helper maven plugin to attach msi
alfeilex Feb 25, 2025
967e327
#420: use ideasy.exe install -f install and uninstall
alfeilex Feb 25, 2025
d1554df
Merge branch 'main' into #420-create-win-installer
alfeilex Feb 25, 2025
d08403a
#420: add maven ant run and builder help plugin to attach the MSI in …
alfeilex Feb 26, 2025
c990521
#420: add maven ant run and builder help plugin to attach the MSI in …
alfeilex Feb 26, 2025
3448641
#420: remove classifier installer
alfeilex Feb 26, 2025
5158717
#420: add nightly build for windows installer
alfeilex Feb 26, 2025
df3b26e
#420: remove dialog bmp and adapt readme
alfeilex Feb 26, 2025
c5da6ae
#420: revert to workflow_dispatch
alfeilex Feb 26, 2025
6bba96e
Merge branch 'main' into #420-create-win-installer
alfeilex Feb 26, 2025
893047c
#420: remove dialog.bmp
alfeilex Feb 26, 2025
edeba9d
Merge branch 'main' into #420-create-win-installer
alfeilex Feb 26, 2025
7ab9bc7
#420: add release workflow
alfeilex Feb 26, 2025
509ef3e
Merge branch '#420-create-win-installer' of https://github.com/alfeil…
alfeilex Feb 26, 2025
841bce6
#420: revert push trigger in release worfklow
alfeilex Feb 26, 2025
3c78781
#420: adapt CHANGELOG.adoc
alfeilex Feb 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions build-msi/IDEASY.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?define name = "IDEasy"?>
<?define version = "1.0.0"?>
<?define publisher = "devonfw-ide"?>
<?define guid = "ba3ad5c0-94e9-42c3-9374-efaaddd3b967"?>

Copy link
Member Author

Choose a reason for hiding this comment

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

We should also define the correct meta information for the MSI packages

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package Name="$(var.name)"
Manufacturer="$(var.publisher)"
Version="$(var.version)"
UpgradeCode="$(var.guid)"
Scope="perMachine">

<!-- Specifying a license file -->
<WixVariable Id="WixUILicenseRtf" Value=".\assets\LICENSE.rtf" />
<!-- Replacing the default bitmaps -->
<WixVariable Id="WixUIBannerBmp" Value=".\assets\banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value=".\assets\dialog.bmp" />

<!-- Include the whole setup folder for windows -->
<Files Include="msi-setup\**" />

<DirectoryRef Id="INSTALLFOLDER">
<Component Id="RemoveINSTALLDIR" Guid="$(var.guid)">
<RemoveFile Id="RemoveAllMsiSetupFiles" Name="*" On="uninstall" />
<!-- <RemoveFolder Id="RemoveINSTALLDIR" On="uninstall" /> -->
<RegistryValue
Root="HKLM"
Key="SOFTWARE\[Manufacturer]\[ProductName]\RemoveMsiSetupFiles"
Name="dummy"
Type="integer"
Value="1"
KeyPath="yes" />
</Component>
</DirectoryRef>

<!-- Specifying default directory-->
<Directory Id="ROOTDIRECTORY">
<Directory Id="INSTALLFOLDER" Name="projects" />
</Directory>

<!-- Specifying custom actions-->
<CustomAction Id="RunSetupAction" Directory="INSTALLFOLDER" ExeCommand="[INSTALLFOLDER]_ide\setup.bat -b" Execute="deferred" Return="check" />
<CustomAction Id="RunUninstallAction" Directory="INSTALLFOLDER" ExeCommand="[INSTALLFOLDER]_ide\ideeasy uninstall" Execute="deferred" Return="ignore" />

<InstallExecuteSequence>
<Custom Action="RunSetupAction" Condition="NOT Installed" After="InstallFiles" />
<Custom Action='RunUninstallAction' Condition="Installed AND NOT UPGRADINGPRODUCTCODE" After="InstallInitialize" />
</InstallExecuteSequence>

<!-- UI Element -->
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" />

</Package>
</Wix>
1 change: 1 addition & 0 deletions build-msi/assets/LICENSE.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{\rtf1\ansi\deff0\nouicompat{\fonttbl{\f0\fnil\fcharset0 Calibri;}}{\colortbl ;\red0\green0\blue255;}{\*\generator Riched20 10.0.19041}\viewkind4\uc1 \pard\sa200\sl276\slmult1\f0\fs22\lang7 Apache License\par Version 2.0, January 2004\par {{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/ }}{\fldrslt{http://www.apache.org/licenses/\ul0\cf0}}}}\f0\fs22\par\par TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\par\par 1. Definitions.\par\par "License" shall mean the terms and conditions for use, reproduction,\par and distribution as defined by Sections 1 through 9 of this document.\par\par "Licensor" shall mean the copyright owner or entity authorized by\par the copyright owner that is granting the License.\par\par "Legal Entity" shall mean the union of the acting entity and all\par other entities that control, are controlled by, or are under common\par control with that entity. For the purposes of this definition,\par "control" means (i) the power, direct or indirect, to cause the\par direction or management of such entity, whether by contract or\par otherwise, or (ii) ownership of fifty percent (50%) or more of the\par outstanding shares, or (iii) beneficial ownership of such entity.\par\par "You" (or "Your") shall mean an individual or Legal Entity\par exercising permissions granted by this License.\par\par "Source" form shall mean the preferred form for making modifications,\par including but not limited to software source code, documentation\par source, and configuration files.\par\par "Object" form shall mean any form resulting from mechanical\par transformation or translation of a Source form, including but\par not limited to compiled object code, generated documentation,\par and conversions to other media types.\par\par "Work" shall mean the work of authorship, whether in Source or\par Object form, made available under the License, as indicated by a\par copyright notice that is included in or attached to the work\par (an example is provided in the Appendix below).\par\par "Derivative Works" shall mean any work, whether in Source or Object\par form, that is based on (or derived from) the Work and for which the\par editorial revisions, annotations, elaborations, or other modifications\par represent, as a whole, an original work of authorship. For the purposes\par of this License, Derivative Works shall not include works that remain\par separable from, or merely link (or bind by name) to the interfaces of,\par the Work and Derivative Works thereof.\par\par "Contribution" shall mean any work of authorship, including\par the original version of the Work and any modifications or additions\par to that Work or Derivative Works thereof, that is intentionally\par submitted to Licensor for inclusion in the Work by the copyright owner\par or by an individual or Legal Entity authorized to submit on behalf of\par the copyright owner. For the purposes of this definition, "submitted"\par means any form of electronic, verbal, or written communication sent\par to the Licensor or its representatives, including but not limited to\par communication on electronic mailing lists, source code control systems,\par and issue tracking systems that are managed by, or on behalf of, the\par Licensor for the purpose of discussing and improving the Work, but\par excluding communication that is conspicuously marked or otherwise\par designated in writing by the copyright owner as "Not a Contribution."\par\par "Contributor" shall mean Licensor and any individual or Legal Entity\par on behalf of whom a Contribution has been received by Licensor and\par subsequently incorporated within the Work.\par\par 2. Grant of Copyright License. Subject to the terms and conditions of\par this License, each Contributor hereby grants to You a perpetual,\par worldwide, non-exclusive, no-charge, royalty-free, irrevocable\par copyright license to reproduce, prepare Derivative Works of,\par publicly display, publicly perform, sublicense, and distribute the\par Work and such Derivative Works in Source or Object form.\par\par 3. Grant of Patent License. Subject to the terms and conditions of\par this License, each Contributor hereby grants to You a perpetual,\par worldwide, non-exclusive, no-charge, royalty-free, irrevocable\par (except as stated in this section) patent license to make, have made,\par use, offer to sell, sell, import, and otherwise transfer the Work,\par where such license applies only to those patent claims licensable\par by such Contributor that are necessarily infringed by their\par Contribution(s) alone or by combination of their Contribution(s)\par with the Work to which such Contribution(s) was submitted. If You\par institute patent litigation against any entity (including a\par cross-claim or counterclaim in a lawsuit) alleging that the Work\par or a Contribution incorporated within the Work constitutes direct\par or contributory patent infringement, then any patent licenses\par granted to You under this License for that Work shall terminate\par as of the date such litigation is filed.\par\par 4. Redistribution. You may reproduce and distribute copies of the\par Work or Derivative Works thereof in any medium, with or without\par modifications, and in Source or Object form, provided that You\par meet the following conditions:\par\par (a) You must give any other recipients of the Work or\par Derivative Works a copy of this License; and\par\par (b) You must cause any modified files to carry prominent notices\par stating that You changed the files; and\par\par (c) You must retain, in the Source form of any Derivative Works\par that You distribute, all copyright, patent, trademark, and\par attribution notices from the Source form of the Work,\par excluding those notices that do not pertain to any part of\par the Derivative Works; and\par\par (d) If the Work includes a "NOTICE" text file as part of its\par distribution, then any Derivative Works that You distribute must\par include a readable copy of the attribution notices contained\par within such NOTICE file, excluding those notices that do not\par pertain to any part of the Derivative Works, in at least one\par of the following places: within a NOTICE text file distributed\par as part of the Derivative Works; within the Source form or\par documentation, if provided along with the Derivative Works; or,\par within a display generated by the Derivative Works, if and\par wherever such third-party notices normally appear. The contents\par of the NOTICE file are for informational purposes only and\par do not modify the License. You may add Your own attribution\par notices within Derivative Works that You distribute, alongside\par or as an addendum to the NOTICE text from the Work, provided\par that such additional attribution notices cannot be construed\par as modifying the License.\par\par You may add Your own copyright statement to Your modifications and\par may provide additional or different license terms and conditions\par for use, reproduction, or distribution of Your modifications, or\par for any such Derivative Works as a whole, provided Your use,\par reproduction, and distribution of the Work otherwise complies with\par the conditions stated in this License.\par\par 5. Submission of Contributions. Unless You explicitly state otherwise,\par any Contribution intentionally submitted for inclusion in the Work\par by You to the Licensor shall be under the terms and conditions of\par this License, without any additional terms or conditions.\par Notwithstanding the above, nothing herein shall supersede or modify\par the terms of any separate license agreement you may have executed\par with Licensor regarding such Contributions.\par\par 6. Trademarks. This License does not grant permission to use the trade\par names, trademarks, service marks, or product names of the Licensor,\par except as required for reasonable and customary use in describing the\par origin of the Work and reproducing the content of the NOTICE file.\par\par 7. Disclaimer of Warranty. Unless required by applicable law or\par agreed to in writing, Licensor provides the Work (and each\par Contributor provides its Contributions) on an "AS IS" BASIS,\par WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\par implied, including, without limitation, any warranties or conditions\par of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\par PARTICULAR PURPOSE. You are solely responsible for determining the\par appropriateness of using or redistributing the Work and assume any\par risks associated with Your exercise of permissions under this License.\par\par 8. Limitation of Liability. In no event and under no legal theory,\par whether in tort (including negligence), contract, or otherwise,\par unless required by applicable law (such as deliberate and grossly\par negligent acts) or agreed to in writing, shall any Contributor be\par liable to You for damages, including any direct, indirect, special,\par incidental, or consequential damages of any character arising as a\par result of this License or out of the use or inability to use the\par Work (including but not limited to damages for loss of goodwill,\par work stoppage, computer failure or malfunction, or any and all\par other commercial damages or losses), even if such Contributor\par has been advised of the possibility of such damages.\par\par 9. Accepting Warranty or Additional Liability. While redistributing\par the Work or Derivative Works thereof, You may choose to offer,\par and charge a fee for, acceptance of support, warranty, indemnity,\par or other liability obligations and/or rights consistent with this\par License. However, in accepting such obligations, You may act only\par on Your own behalf and on Your sole responsibility, not on behalf\par of any other Contributor, and only if You agree to indemnify,\par defend, and hold each Contributor harmless for any liability\par incurred by, or claims asserted against, such Contributor by reason\par of your accepting any such warranty or additional liability.\par\par END OF TERMS AND CONDITIONS\par\par APPENDIX: How to apply the Apache License to your work.\par\par To apply the Apache License to your work, attach the following\par boilerplate notice, with the fields enclosed by brackets "[]"\par replaced with your own identifying information. (Don't include\par the brackets!) The text should be enclosed in the appropriate\par comment syntax for the file format. We also recommend that a\par file or class name and description of purpose be included on the\par same "printed page" as the copyright notice for easier\par identification within third-party archives.\par\par Copyright [yyyy] [name of copyright owner]\par\par Licensed under the Apache License, Version 2.0 (the "License");\par you may not use this file except in compliance with the License.\par You may obtain a copy of the License at\par\par {{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/LICENSE-2.0 }}{\fldrslt{http://www.apache.org/licenses/LICENSE-2.0\ul0\cf0}}}}\f0\fs22\par\par Unless required by applicable law or agreed to in writing, software\par distributed under the License is distributed on an "AS IS" BASIS,\par WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\par See the License for the specific language governing permissions and\par limitations under the License.\par}
Binary file added build-msi/assets/banner.bmp
Binary file not shown.
Binary file added build-msi/assets/dialog.bmp
Binary file not shown.