<p>Our installer is written with Inno Setup and we are actually quite happy with it. Yet some customers keep asking for an MSI installer which they could more easily distribute via Active Directory. We have already gone to some lengths to make the installer deal really well with automated and unattended installations by extending Inno Setup's <code>/LOADINF</code>-mechanism with our own options.</p>

<p>In order to satisfy the customers asking for MSI, I had been thinking about simply wrapping our regular installer inside an MSI, possibly created using WIX. The question is: can I maintain the high configurability which our current installer offers that way? How would I go about exposing the Inno Setup installer's options through the outer MSI in the unattended/mass installation scenario?</p>

<p>Note that I haven't really gotten to the point of actually digging into MSI-creation and WIX myself yet. Right now I'm only interested in whether people who do know what they're talking about think this would be a feasible/sensible approach to invest our energy in in the first place...</p>

<p>[EDIT:]
Initially I thought I could do with the temp extraction and execution approach, i.e. the MSI would simply serve as a vessel for delivering the Inno installer to the target PC and executing it there in <code>/VERYSILENT</code>-mode. But I guess the customers who ask for the MSI also want to be able to uninstall or even modify the install from a central location and I guess that won't be possible in that scenario, would it?</p>

<p>P.S.: We do have an old copy of WISE for MSI here as well but that experience was actually the reason why we started using Inno instead to begin with...</p>

[{'answer_id': 71283, 'author': 'Roel', 'author_id': 11449, 'author_profile': 'https://Stackoverflow.com/users/11449', 'pm_score': 5, 'selected': True, 'text': "<p>No, there's no way to do that while still keeping the functionality your customers are 'implicitly' asking for. The only 'wrapping' in MSI you can do is to extract it on installation and start your InnoSetup installer from the temporary location where you extracted to. MSI is a fundamentally different way of working: InnoSetup (&amp; NSIS &amp; most other installers) take a code-centric approach: you 'program' the 'steps' to install your data. MSI is a database and takes a 'data-centric' approach: you indicate what files should be installed and the MSI 'runtime' does the rest. This gives you versioning and exact control of what goes where.</p>\n\n<p>In short, to give your customers what they want (i.e., the ease of deployment that MSI brings with AD), you'll need 'proper' MSI's. Good luck with that, it's a major pain IMHO. But it does give good results once you master MSI &amp; WiX.</p>\n"}, {'answer_id': 71700, 'author': 'Vytautas Šaltenis', 'author_id': 6763, 'author_profile': 'https://Stackoverflow.com/users/6763', 'pm_score': 1, 'selected': False, 'text': "<p>Doing so would be pretty much equivalent to delivering a ZIP file and calling unzip by the end of installation.</p>\n\n<p>With such approach AD and Windows Installer would be fooled as if dealing with proper MSI installation, but as it is not the case, they'd backfire on you on the very first occasion.</p>\n\n<p>Don't go this way.</p>\n\n<p>And WiX is superior toolset to InnoSetup, anyway, so the time you'll spend on learning and porting will pay off by better support of collaboration.</p>\n"}, {'answer_id': 72664, 'author': 'Roel', 'author_id': 11449, 'author_profile': 'https://Stackoverflow.com/users/11449', 'pm_score': 2, 'selected': False, 'text': "<p>In response to your edit: yes, what you describe will prevent doing upgrades (other than delete/reinstall) and remote configuration, since the MSI database won't know anything about the contents of your installer.</p>\n\n<p>Many installer packages started MSI 'support' in this way, though: InstallShield did, for example. That's the main reason I dumped them, because installers made in that way are useless for MSI purposes. I don't know if recent versions of InstallShield are better, last time I checked was 5 years ago.</p>\n"}, {'answer_id': 201131, 'author': 'Tom', 'author_id': 20979, 'author_profile': 'https://Stackoverflow.com/users/20979', 'pm_score': 2, 'selected': False, 'text': '<p>Its pretty easy to make a wrapper kit that automatically installs INNOSETUPper from MSI. For basic functionality (install/uninstall) this is enough. Most setuppers do not implement repair anyway.</p>\n\n<ol>\n<li><p>create silent.inf script for INNO Setup (optional)</p></li>\n<li><p>create install.bat that calls</p>\n\n<p>myinnosetup.exe /silent /NOCANCEL /norestart /Components="xxx"</p>\n\n<p>you can use /verysilent<br>\n you can load settings from silent.inf with  /LOADINF="silent.inf"</p></li>\n<li><p>create MSI setup file that calls install.bat ( with parameters if necessary)</p></li>\n<li><p>deliver all 4 files to your customer and they can deploy your Inno setupper with SMS or ActiveDirectory  and everyone is happy :)</p></li>\n</ol>\n'}, {'answer_id': 232183, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>although the last comment is feasible and workable, moving to MSI is the best way to handle this. </p>\n\n<p>almost all large organisations stipulate MSI only, there are multitudes of reasons why. </p>\n\n<p>1) first is ease of deployment\n2) more important to some is application sociability \n3) self healing</p>\n\n<p>inno setup and other such tools not implementing Windows Installer simply cannot offer application sociability in the same ways as windows installer. </p>\n\n<p>you have to understand Inno setup is software designed to deploy a single application. </p>\n\n<p>Windows Installer is an entire framework to deal with sociability, user impersonation, user elevation, self healing, user profile fix up. </p>\n\n<p>They two are not even remotely close in functionality, inno setup in my mind is completely and utterly way off course in terms of comparing with windows installer. </p>\n\n<p>Can it create successful installers ? yes \nIs it easy to use ? yes \nDoes it create good single installers ? yes \nIs it the best choice for enterprise ? no</p>\n\n<p>The earliest tools developed by microsoft "SMS Installer" was innosetup 10 years ago. Things have changed drastically in the install world and inno setup simply hasnt kept up with the pace of that change. </p>\n'}, {'answer_id': 509120, 'author': 'Rob Hunter', 'author_id': 1145, 'author_profile': 'https://Stackoverflow.com/users/1145', 'pm_score': 2, 'selected': False, 'text': '<p>I would argue that it is possible to do all that you would like with an MSI wrapped Inno Setup, but it is far from trivial, and using WiX might make this particular task more difficult.  In short I would not really recommend it.</p>\n\n<p>But if you really would like to...</p>\n\n<p>MSI files are simply database files with additional script instructions and often embed the .cab file that contains the stuff you actually want to install.</p>\n\n<p>If you use Wise, you will generate default scripts that you can then add Windows Installer conditions to and control the events to a finer degree (Install, repair, modify, uninstall) so that they call equivalent actions on your Inno Setup install script which would need to be installed into and kept in a temporary folder.</p>\n'}, {'answer_id': 858292, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>I need to input a custome value on the silent.inf (not a stablished inno setup setting value) dosent look like LOADINF allows for that.</p>\n\n<p>Note:If you use makemsi you do not have to include a bat as you can use $WrapInstall.</p>\n'}, {'answer_id': 1244926, 'author': 'coding Bott', 'author_id': 44462, 'author_profile': 'https://Stackoverflow.com/users/44462', 'pm_score': 2, 'selected': False, 'text': '<p>It makes no sense mixing install technologies.</p>\n\n<p>If you are mixing you getting the first problem with the uninstall stuff.\nwithout changes you get 2 uninstallers of your program. </p>\n\n<p>there are some articles starting with windows installer in the "entwickler magazine"</p>\n\n<ul>\n<li>Entwickler Magazin (Ausgabe: 03.09/15.04.2009) Artikel: MSI-Pakete mit Open-Souce-Software erzeugen Teil\n4</li>\n<li>Entwickler Magazin (Ausgabe: 02.09/12.02.2009) Artikel: MSI-Pakete mit Open-Souce-Software erzeugen Teil\n3</li>\n<li>Entwickler Magazin (Ausgabe: 01.09/10.12.2008) Artikel: MSI-Pakete mit Open-Souce-Software erzeugen Teil\n2</li>\n<li>Entwickler Magazin (Ausgabe: 06.08/15.10.2008) Artikel: MSI-Pakete mit Open-Souce-Software erzeugen</li>\n</ul>\n\n<p><a href="http://entwickler-magazin.de/" rel="nofollow noreferrer">http://entwickler-magazin.de/</a></p>\n\n<p>windows installer should be the only technology for your installations.\nits future proof and its stable!</p>\n'}, {'answer_id': 12080164, 'author': 'Jacob', 'author_id': 1617989, 'author_profile': 'https://Stackoverflow.com/users/1617989', 'pm_score': 4, 'selected': False, 'text': '<p>I have had this problem many times myself. Therefore, I created a standard way to approach this problem and it resulted in a wizard that will guide you through the steps. The tool will support the following:</p>\n\n<ol>\n<li>Wrap the exe in an MSI.</li>\n<li>Support Uninstall.</li>\n<li>Only show one program in "Add or Remove programs".</li>\n<li>Allow you to pass command line arguments such as /SILENT to the embedded setup when you run the MSI package with MSIEXEC.EXE.</li>\n</ol>\n\n<p>You can get it at <a href="http://www.exemsi.com">http://www.exemsi.com</a> (the basic version is free)</p>\n\n<p>Use my contact form and let me know what you think :-)</p>\n'}, {'answer_id': 14925200, 'author': 'J. Rasmussen', 'author_id': 2081153, 'author_profile': 'https://Stackoverflow.com/users/2081153', 'pm_score': 2, 'selected': False, 'text': '<p>Wrapping an Inno Setup in an MSI package is not a trivial task. However, it is possible. There are lots of free tools out there that can be used to do this. You should choose one that also supports uninstall(s) and upgrades. </p>\n\n<p>I have found only one free tool that supports upgrades and uninstall. Check out <a href="http://www.exemsi.com/inno-setup-and-msi" rel="nofollow">http://www.exemsi.com/inno-setup-and-msi</a></p>\n'}]
['https://Stackoverflow.com/questions/71203', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9784/']