|
I have a .exe and .msi from a Setup and Deployment project how do I compress them into one .EXE so they are downloadable? | | SetWindowHookEx Friday, September 25, 2009 10:58 PM | There's no way provided to do this within Visual Studio. There are really two ways to deal with the issue:
- 3rd-party products to handle this, e.g. WinZip Self-Extractor (http://www.winzip.com/prodpagese.htm)
- Just distribute the MSI
I do the second: the setup.exe that gets built with your installer only does one thing that I can tell, which is to run the MSI. So now I just set the MSI up as the installer. Download, double-click, and it goes. - Edited byRick Herrick, WG, MO Saturday, September 26, 2009 8:07 PMBad formatting
- Marked As Answer byLing WangMSFT, ModeratorThursday, October 01, 2009 10:01 AM
-
| | Rick Herrick, WG, MO Saturday, September 26, 2009 8:07 PM | You may use the tool "IExpress" which is included in Windows for free. Just enter "iexpress" in the Run dialogue, and follow the wizard. It will help you create a self-extracting archive containing the .exe and .msi file.
If you create an SED file at the end of the wizard, you may include iexpress as a post build event in your Visual Studio project.
Note that self-extracting archives may not work as supposed when using the .exe bootstrapper created by Visual Studio 2008, due to the fact that it doesn't wait for the MSI installation to complete, and causing the self-extracters to delete the extracted .msi file before it has finished installing. However, if you use Visual Studio 2005 to generate the setup files, this should not cause any problem. - Proposed As Answer byRick Herrick, WG, MO Tuesday, September 29, 2009 10:41 PM
- Marked As Answer byLing WangMSFT, ModeratorThursday, October 01, 2009 10:01 AM
-
| | Sven N Saturday, September 26, 2009 9:18 PM | There's no way provided to do this within Visual Studio. There are really two ways to deal with the issue:
- 3rd-party products to handle this, e.g. WinZip Self-Extractor (http://www.winzip.com/prodpagese.htm)
- Just distribute the MSI
I do the second: the setup.exe that gets built with your installer only does one thing that I can tell, which is to run the MSI. So now I just set the MSI up as the installer. Download, double-click, and it goes. - Edited byRick Herrick, WG, MO Saturday, September 26, 2009 8:07 PMBad formatting
- Marked As Answer byLing WangMSFT, ModeratorThursday, October 01, 2009 10:01 AM
-
| | Rick Herrick, WG, MO Saturday, September 26, 2009 8:07 PM | You may use the tool "IExpress" which is included in Windows for free. Just enter "iexpress" in the Run dialogue, and follow the wizard. It will help you create a self-extracting archive containing the .exe and .msi file.
If you create an SED file at the end of the wizard, you may include iexpress as a post build event in your Visual Studio project.
Note that self-extracting archives may not work as supposed when using the .exe bootstrapper created by Visual Studio 2008, due to the fact that it doesn't wait for the MSI installation to complete, and causing the self-extracters to delete the extracted .msi file before it has finished installing. However, if you use Visual Studio 2005 to generate the setup files, this should not cause any problem. - Proposed As Answer byRick Herrick, WG, MO Tuesday, September 29, 2009 10:41 PM
- Marked As Answer byLing WangMSFT, ModeratorThursday, October 01, 2009 10:01 AM
-
| | Sven N Saturday, September 26, 2009 9:18 PM | Oh man, I looked everywhere for that and couldn't find it! I can't believe it just comes with Windows :) Thanks for the tip on that, Sven!
| | Rick Herrick, WG, MO Tuesday, September 29, 2009 10:41 PM | Hi,If you want to convert msi to exe,I recommend you choose free msi to exe converter.It's free but powerful!
you can find a guide here:http://www.convertmsitoexe.com/ | | toneming Saturday, October 03, 2009 6:06 AM |
|