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
REFAC(installer-msi) Simplify WiX component install #4574
Conversation
bf5ad2b
to
1652cf9
Compare
Atm it builds client and server at the same time (it seems). I assume that this means that the installer that ic currently built on the CI still contains both components as well? |
That is probably a good question for @davidebeatrici as I have not worked with the CI directly. When |
I confirm that right now there's a single build task for both |
Why do we need new tasks on the CI then? To ensure that the installer can still be built if either of the 2 components is not built? |
We can use the same task and build client and server separately, of course. However, I believe it makes sense to have two separate tasks since CMake has to be called again anyway. |
It might technically be 4 tasks because of 32 bit. |
They are two different builds. |
a402a81
to
ffd7d9a
Compare
00b3dc3
to
6f18dfb
Compare
6f18dfb
to
0ea96e1
Compare
The installers built on the CI do not seem to offer the functionality to choose an installation language. Furthermore the client-installer did not create a desktop shortcut. I think we talked about this on IRC before. How much effort would it be to let the user choose whether they want a desktop shortcut or not? |
The installer is multi language and will install based on the default locale defined on the system.
I will see what I can do with this in the coming days. I'm more concerned that it's building the installer properly and that everything is installed correctly. |
Not creating a shortcut is better than creating one in case we cannot provide an option, in my opinion. |
Remove CPack and previous WiX installer projects and sources Add toolset and for WixSharp to facilitate client and server builds individually or collectively. Add multilanguage build with packaging=ON and translations=ON, and standard build with packaging=ON. Builds are also aware of client and server option settings. Add correct LICENSE to installer
0ea96e1
to
88e1786
Compare
I pushed a change that should create a desktop shortcut for the client. To more correctly answer the question, this has been a feature that was prominent in exe based installers. In the previous WiX project, a component needed to be created to allow this to occur. Manually deleting or creating a shortcut isn't really that much more work than choosing the option during an install. The best compromise I can come up with is to create one automatically and the user can delete the shortcut if not needed. Same with Windows (Start) menu entries. It seems that even WixSharp is getting away from the paradigm of using a dialog to ask if the user wants to create shortcuts. Their samples make use of an object that they specifically state in the source code for the object that it should not be used with shortcut elements: |
Ideally the user should be able to choose that manually though. Using the system's locale as the default is very good but also allowing to change this if needed is probably better.
Interesting. That definitely goes against what I would expect from an installer. But I guess we can adapt the default (automatically creating vs not creating a shortcut) based on user feedback |
We would have to write a bootstrapper with a custom UI according to WiX's own documentation. I'm not sure if they are still using an
Most of the installers I have seen with these options are |
Okay then let's not do that xD
Sounds good |
Does anyone have any concerns left why this should not be merged yet? |
individually or collectively.
packaging=ON
andtranslations=ON
, andstandard build with
packaging=ON
. Builds are also aware ofclient
andserver
option settings.Fixes: #4488
WixSharp: https://github.com/oleg-shilo/wixsharp