# Create MSI with WIX **Tutorial copied from **[**https://0xrick.github.io/hack-the-box/ethereal/#Creating-Malicious-msi-and-getting-root**](https://0xrick.github.io/hack-the-box/ethereal/#Creating-Malicious-msi-and-getting-root)\ In order to create the msi we will use [wixtools](http://wixtoolset.org) , you can use other msi builders but they didn’t work for me.\ Check [this page](https://www.codeproject.com/Tips/105638/A-quick-introduction-Create-an-MSI-installer-with) for some wix msi usage examples.\ We will create an msi that executes our lnk file : ```markup cmd.exe /C "c:\users\public\desktop\shortcuts\rick.lnk" fail_here ``` We will use `candle.exe` from wixtools to create a wixobject from `msi.xml` ```markup candle.exe -out C:\tem\wix C:\tmp\Ethereal\msi.xml ``` ![](https://0xrick.github.io/images/hackthebox/ethereal/65.png) Then we will use `light.exe` to create the msi file from the wixobject: ```markup light.exe -out C:\tm\Ethereal\rick.msi C:\tmp\wix ``` ![](https://0xrick.github.io/images/hackthebox/ethereal/66.png)