# Creating SilentDragon MSI installer for Windows with msitools and wixl
This documentation is for creating a SilentDragon MSI installer for Windows using msitools and wixl. Documentation for msitools is here: https://wiki.gnome.org/msitools Documentation for wixl can refer to WiX toolset as it tries to share the same syntax: https://wixtoolset.org/documentation/manual/v3/
## Copy silentdragon.ico to SilentDragon directory
The icon file `silentdragon.ico` is currently not included in release zip, but is required to create an MSI installer with a smaller size. Setting icon SourceFile in the .wxs file to silentdragon.exe will duplicate the .exe and make the installer over 100MB instead of ~80MB. How you get this .ico file is up to you. I extracted from .exe on Windows. Maybe it will be included in .zip release in the future to make this easier for anyone trying to create a MSI file for the first time.
## Create WiX source file (.wxs)
This is an XML file. You should name it what you want the .msi file to be named IE: `SilentDragon-1.3.0.wxs`
Below is a copy of the contents of the `SilentDragon-1.3.0.wxs` file Note that GUID's all need to be unique. This will create shortcuts to SilentDragon on desktop and in the start menu as well as have uninstall support from Add/Remove Programs. A tutorial that explains the basics of creating these files can be found here: https://www.firegiant.com/wix/tutorial/
In order for new versions of the .msi to upgrade existing/older versions that may have been installed, the `Version` attribute needs to be incremented or changed to the new version and a new GUID for `Product` id needs to be generated (c8fae41c-889b-4621-b343-76491cd91b1c in above example).
This will create a `SilentDragon-1.3.0.msi` file in the same directory which can then be distributed. If it created without error and is larger than 0kb, congratulations!