ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Computers & Software»
  • Computer Software

How to convert MSI to EXE for free

Updated on December 25, 2013


Important Update:

Warning - this process is quite long. If you prefer, there is a tool to do this for you. To find out more, click here for the MSI to EXE compiler tool .

Origin article:

In this hub I will tell you how to convert your MSI to an EXE for free. There are some software utilities out there you have to pay for, but you don't need them. This method uses a utility built into Windows that can be run using a wizard or automated from the command line.

Why would you want to create an EXE from an MSI? Here are some reasons:

  1. Some people won't recognise what an .MSI is and what to do with it. And exe makes it more obvious you need to run it.
  2. The exe can do a special run of the .MSI using msiexec with certain parameters, e.g. quiet mode.
  3. If you use Visual Studio Setup Projects you need to supply both the setup.exe and setup.msi but you want to give your customers a single download.
  4. By making your download an .exe you have the flexibility to move away from .MSI later if you wish without updating your PAD files.

So now you know the reasons, lets do it!

The tool you will use

The tool to create the EXE file is built into Windows XP, Vista and Windows 7 and is called IExpress. It's an old tool few people know about. I only learned about this recently.

So lets get started. To begin:

  1. To begin, get a nice empty folder ready with your .msi file. (Don't worry about the small setup.exe if you have built using Visual Studio - we won't need that)
  2. Click Start->Run and type iexpress and press OK
  3. You will see the Welcome to IExpress window. Click Next.
  4. Package Purpose - stick with "Extract Files and run an installation command" and click Next.
  5. Package Title - Enter a suitable title, click Next.
  6. Confirmation Prompt - Stick with No Prompt, click Next
  7. License Agreement - Stick with Do not display (I presume you have one in the msi), click Next.
  8. Packaged Files - Click Add and choose your MSI file. Click Next.
  9. Install Program to Launch - Enter msiexec /i MyPacakage.msi *, changing the msi name as appropriate. Don't bother with post install. Click Next.
  10. Show Window - Keep with default. Click Next.
  11. Finished Message - Keep with no message. Click Next
  12. Package Name and options - Enter the full path** to where you want the package (.exe) created. Click Next
  13. Configure Restart - Stick with only restarted if needed. Click Next
  14. Save Self Extraction Directive - Choose to save the SED file into the same directory as the msi for later use.
  15. Create Package - Click Next to create it

Now the process will start and will create your self extracting .exe. Well done!


* If you just enter the .msi name here the install will fail with an obscure couldn't find dll error. You need to have this command to msiexec for this to work. Feel free to change the flags if you know what you are doing.

** If you don't put a full path it will choose a silly default

To find out more, click here for the MSI to EXE compiler tool .

Automate from the command line

Now you have saved the options as a .sed file, it is very easy to automate from the command line, so you can add this into your build scripts. I have this running after a script that builds the code and runs WiX to create the msi. So I have a complete end to end build and deploy process using free tools!

Firstly I will just mention what you can do with the .sed file. There is an option to open it in the IExpress wizard so you can edit it. You can also open it in notepad and edit the settings that way.

To automate, just create a new text file in your msi folder, rename to createexe.bat and edit it.

In the editor type:

IExpress /N MyFile.SED

(replacing MyFile with the file name you chose)


When you double click createexe.bat the whole process is done for you automatically. Ideal for version 1.1 of your software.


    0 of 8192 characters used
    Post Comment

    • profile image

      Marco 3 years ago

      Could try ZOLA MSI here


    • profile image

      Andreas 4 years ago

      Warum in die Ferne schweifen? Ist das Gute doch so nah! (Goethe)

      [Why seek far afield? The best is just so close!]

      Thank you very much!

      Just for those, who have problems to _replace_ their installation on a customer machine with a new minor update:

      use this one:

      msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus

    • profile image

      MARKAND DAVE 4 years ago

      VERY NICE...Works great..! THANKS.

    • profile image

      Me 5 years ago

      Thank you very much. ;)

    • profile image

      Jason 5 years ago

      Very useful.

    • profile image

      M Chau 5 years ago

      Use short file name (8.3) and it work perfect, thank for the article.

    • profile image

      Srikanth Pendem 5 years ago

      Thanks , It is simply awesome :)

    • profile image

      Demian 5 years ago

      Nice, although all it does is package de MSI file into a self-extracting EXE file... kinda redundant as it keeps being a MSI file into an EXE file.

      This can be done even with WinRAR or similar. No matter what thank you for the tip.

    • profile image

      Marian 6 years ago

      That's really cool, thanks! I tried the described approach and it works well. Now I use this approach to tranfrom Windows Installer files to executables. For the opposite task (EXE to MSI), that is required for mass software deployments, I use EMCO MSI Package Builder:

    • profile image

      Tim Almond 6 years ago

      Thanks for this...

    • profile image

      mverdi 6 years ago

      A few things to try. It initially didn't work for me:

      1. the command line is 'msiexec /i packagename.msi'. The asterisk is not part of the command line but refers to a comment farther down the post.

      2. There is an option on one of the IExpress screens to use long file names. It corresponds to the SED entry 'UseLongFileName'. Check this or set it to 1 in the SED file. This fixed the issue for me.

      Originally I was getting a message stating 'make sure file exists'. If your file doesn't meet the 8.3 naming convention, you'll need to use this flag or rename your MSI file.

    • profile image

      Jake 6 years ago

      Beccause if so its not working for me..

    • profile image

      Jake 6 years ago

      Install Program to Launch - Enter msiexec /i MyPacakage.msi *, changing the msi name as appropriate. Don't bother with post install. Click Next.

      this step is very confusing as the /i mypackage.msi? do i copy the "i" and the spaces?

    • profile image

      Martin Capodici 6 years ago

      Yes since writing this article I am more of the opinion that you just let them download the msi on it's own. That's a lot easier and will work for 99% of people (have a support email address for the other 1%).

    • profile image

      Great tool, but not working for me 6 years ago

      Great tool, would probably work for a list of items to install from EXEs but MSI just isn't working for me. Get an error stating the MSI file doesn't exit. Oh well, guess I'll just try again later...


    • profile image

      tecit 6 years ago

      Works great; incredibly useful. THANKS!!!

    • profile image

      TDarling77 6 years ago

      Excellent!!! I wonder how many people know about this built-in Windows tool to convert .msi file to .exe file. I came across this article while searching for a free tool to convert .msi file to .exe file.

      It works but one thing I noticed was that the final .exe file did not show up in the folder I pointed it to but it showed up in the same folder where I happened to have the .msi file. I did it twice with the same result.

      The bottom line is that I was able to convert my .msi file to .exe file for free.

      Thank you,


    • profile image

      coryc 6 years ago

      This is amazing. I tried it and it works. Thank you very much. I had no idea this even existed.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: ""

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)