15fcc02124
When an instance of XenCenter is already running, the installer shows the `MsiRMFilesInUse` fragment. Pressing OK within that fragment with the `WixUIRMOption` property set to `UseRM` means that the `RMShutdownAndRestart` event kicks in at the end of the installation. This happens at the same time as the existing "Launch XenCenter" event (if the matching checkbox is checked), causing in the executable being started twice at about the same time. My guess is that the pipe system is not initialised at that point, and that's how we get two applications. To avoid this, this commit adds a new custom property: `XS_WixUIRMPressedOk`. This is set to `1` when the user clicks OK on the `WixUIRMOption`. It allows us to know whether or not that dialog was shown at all, as checking `WixUIRMOption` is not possible (it's already set to `UseRM` by default). By checking the value of this property we prevent the "Launch XenCenter" option to be shown if `MsiRMFilesInUse` was shown to the user (and they clicked OK). This applies both in case of a repair and an upgrade from a previous version. Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com> |
||
---|---|---|
.github | ||
Branding | ||
CFUValidator | ||
CommandLib | ||
packages | ||
scripts | ||
WixInstaller | ||
xe | ||
XenAdmin | ||
XenAdminTests | ||
XenCenterLib | ||
XenModel | ||
XenOvfApi | ||
xva_verify | ||
.gitattributes | ||
.gitignore | ||
AddManifest.targets | ||
ChangeLog | ||
CommonAssemblyInfo.cs | ||
CONTRIB | ||
CREDITS.md | ||
Jenkinsfile | ||
LICENSE | ||
MAINTAINERS | ||
README.md | ||
XenAdmin.sln |
XenCenter
This repository contains the source code for XenCenter.
XenCenter is a Windows-based management tool for Citrix Hypervisor environments, which enables users to manage and monitor server and resource pools, and to deploy, monitor, manage, and migrate virtual machines.
XenCenter is written mostly in C#.
Contributions
The preferable way to contribute patches is to fork the repository on Github and then submit a pull request. If for some reason you can't use Github to submit a pull request, then you may send your patch for review to the xs-devel@lists.xenserver.org mailing list, with a link to a public git repository for review. Please see the CONTRIB file for some general guidelines on submitting changes.
License
This code is licensed under the BSD 2-Clause license. Please see the LICENSE file for more information.
How to build XenCenter
To build XenCenter, you need
- the source from xenadmin repository
- Visual Studio 2019
- .NET Framework 4.8
and also some libraries which we do not store in the source tree:
- CookComputing.XmlRpcV2.dll
- Newtonsoft.Json.dll
- DiscUtils.dll
- ICSharpCode.SharpZipLib.dll
- log4net.dll
You can find the source code of these libraries (along with some patches) in dotnet-packages repository.
To run the NUnit tests you will need the following libraries:
- nunit.framework.dll
- Moq.dll
which can be obtained from http://www.nuget.org/.