Archive: How to generate MSI file from NSIS


How to generate MSI file from NSIS
I have an installer.exe generated from NSIS. But I want a msi file. By just changing the file extension, msiexec doesn't recognize the package, saying it is not a valid package.

I tried to use msiexec to avoid the UAC prompt on Vista.


NSIS does not generate MSI files, try wix.sourceforge.net if you want MSI


I think the supported installer output format (.exe/.msi) should be clearly stated in the product documentation. Or at least in the FAQ.

I just had to read the product help's table of contents, the product features list, the FAQ and the forums just to find I should not expect .msi output from NSIS.

A search or index lookup in the product's .chm file simply shows nothing on "msi". A simple note saying at least "only .exe is supported" would be nice.

The main features of .msi are the automated rollback it provides in case of errors or user canceling or when uninstalling, and the .msm format for merge modules which is rather standard for installing third-party libraries now. In NSIS you have to actually check for errors and script any rollback explicitly, and .msm files can be installed with NSIS with some tricks, but it should have built-in support for them. And for .msi output if possible ...

Thank you,
Timothy Madden


NSIS creates stand-alone installer executables.

MSI (Microsoft Installer Package) is not an installer. MSI files are packages that contains installation information for the Windows Installer engine.

PaR


Of course.

But I would still like to see this information in the product's documentation instead of searching forums on the internet for it ...


NSIS and MSI (and Inno) are entirely different things. It doesn't make any sense to name all the things that some application is NOT. Would you expect Microsoft to add a disclaimer in the Microsoft Windows Vista manual stating that "this software is not a Macintosh operating system"? Or a bottle of milk stating "Note: this bottle does not contain Coca Cola"?


Well.. Personnally I agree that this information could be added to the documentation. MSI packages are becoming quite common in the world of Windows..
So we can expect this type of question from people looking for an installer system and comparing them..


At least a note under OutFile or in the features list saying

Currently the NSIS compiler can only create an installer as an executable program.