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

Create installer for Windows #420

Open
hohwille opened this issue Jun 25, 2024 · 3 comments · May be fixed by #812
Open

Create installer for Windows #420

hohwille opened this issue Jun 25, 2024 · 3 comments · May be fixed by #812
Labels
enhancement New feature or request install installation process of IDE + tools and install commandlet windows specific for Microsoft Windows OS

Comments

@hohwille
Copy link
Member

hohwille commented Jun 25, 2024

As a IDEasy user, I want to install the product via a graphical installer so that I can easily be guided through the installtion with only few clicks.

Acceptance criteria

  • Installer first screen shows the license of IDEasy with scrollbar and the user can read it and either click Cancel or Accept & Continue. Cancel aborts the installation and Accept & Continue proceeds to the second screen.
  • Installer shows second screen to choose the installation location ($IDE_ROOT) with and Install button at the bottom and above a description with the following options with radio-button selection .
    • C:\projects (pre-selected default)
    • D:\projects (if D: drive is present, a permanent disc like HDD or SSD and has at least 1GB free disc space)
    • custom with ability to browse to a custom folder. If this option is selected the Install button gets disabled (grayed out), the custom folder has to be chosen and the path must exist and not contain spaces or special characters (only [a-zA-Z0-9]+ for folders). Also the path must not be longer than 32 characters. Only if all these criteria are met the Install button gets enabled.
  • When the user has clicked on Install the installation is started:
    • Contents are installed to $IDE_ROOT (so we have $IDE_ROOT/_ide/bin/ideasy.exe, etc.)
    • Environment variable (user) PATH is extended with value of ;$IDE_ROOT\_ide\bin
    • Environment variable (user) IDE_ROOT is set in Windows to value of $IDE_ROOT.
    • The file %USERPROFILE%\.bashrc is created if not existing and we append the line alias ide="source $IDE_ROOT/_ide/bin/ide" where $IDE_ROOT is the resolved path in MSYS syntax (e.g. /c/projects instead of C:\projects) followed by the line source $IDE_ROOT/_ide/completion and finally the line ide.
    • Registry entries are added for Explorer integration
  • The installer features uninstallation via standard Windows Settings that reverts all changes made during the installation.

For the registry entries see old devonfw-ide sources:

Suggested solution for the installer is to create an MSI package from the results of the current windows package with the features specified above.

Note

I removed the suggested feature:

  • Installer checks that Git and git-bash are installed. If not, an error Popup is shown and the installation cancelled.

We will solve this later. We still have to decide if this will be solved in our IDEasy (CLI) in Java or it should go to the OS specific installer parts.

@hohwille hohwille added enhancement New feature or request windows specific for Microsoft Windows OS install installation process of IDE + tools and install commandlet labels Jun 25, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Jun 25, 2024
@hohwille
Copy link
Member Author

Example Screenshot of License Agreement from Git:
image

@leonrohne27 leonrohne27 moved this from 🆕 New to 🏗 In progress in IDEasy board Oct 10, 2024
@KianRolf
Copy link
Contributor

WiX Toolset

advantages:

  • highly customizable
  • predefined libraries
  • very flexible
  • custom actions

disadvantages:

  • requires XML knowledge
  • not GUI
  • inadequate documentation
  • hard to learn

helpful links:

leonrohne27 added a commit to leonrohne27/IDEasy that referenced this issue Nov 27, 2024
Created an IDEasy installer for windows
@leonrohne27 leonrohne27 linked a pull request Nov 27, 2024 that will close this issue
KianRolf added a commit to KianRolf/IDEasy that referenced this issue Nov 27, 2024
leonrohne27 added a commit to leonrohne27/IDEasy that referenced this issue Nov 28, 2024
Updated .gitattributes so that the .ifp file is being shown
@KianRolf KianRolf moved this from 🏗 In progress to 🆕 New in IDEasy board Nov 29, 2024
@KianRolf
Copy link
Contributor

If anyone picks up this ticket again, they might want to check the two linked draft pull requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request install installation process of IDE + tools and install commandlet windows specific for Microsoft Windows OS
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

3 participants