Creating an msi, you need 3 things
AnnouncementYou can find all my latest posts on medium.
I am now going to create a very simple MSI that will install a software that I’m going to call “CodingBee“. This MSI will:
- Create a folder called “CodingBee” which will be under “c:\program files” folder
- Place a single text file in this folder, called HelloWorld.txt. This file only contains 1 line which says “Hello World”
Here’s my approach:
- Create a folder called “CodingBeeFolder” in a convienent location (in my case I’ve created on my deskop)
- Create the HelloWorld.txt file and save it inside the CodingBeeFolder folder.
- Create the wxs file, which I have called CodingBeeXML.wxs, and in the file, I inserted the following xml:
- Open up a powershell terminal and cd into CodingBeeFolder. At this stage if you view this folder’s content, you should see:
- Now, while you are still in the CodingBeeFolder, run the following command:
- Check that running this command has resulted in the “Product.wixobj” file being generated. the wixobj an intermediary file that get’s produced as part of the MSI file generating process.
- Run the following (light.exe) command:
- This should have now generated the