Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone guide me with the steps required for creating msi installer for C# desktop based projects? Which will be able to keep version tracking and will have option 'all user' or 'just me' and then also upgrade / fresh installlation.

Found some possible solution from http://stackoverflow.com/questions/1858434/build-nsis-script-as-a-msi-package[^]

[Unfortunately, No.
NSIS lets you create scriptable, procedural installation packages. It's simple, easy to use and has a number of features not present in Windows Installer.
Windows Installer (MSI) creates database driven, transactional installation packages. When written properly a Windows Installer package is very robust, a file gets corrupted/deleted and it will be automatically reinstalled. Windows Installer is aware of UAC and only elevates when required, basically if you're creating software for the corporate market, you will need to provide an MSI.
Check out The Definitive Guide to Windows Installer for a good introduction to understanding MSI.]
http://www.amazon.com/dp/1590592972/?tag=stackoverfl08-20[^]
Posted
Updated 17-Dec-11 19:52pm
v2

1 solution

MSI properly support upgrading provide you update the appropriate GUID code.

As far as I know, the option "All users" vs "Just Me" is available on a new installation. If you want to change it afterwards, you have to first uninstall existing application.

You don't really have the option to upgrade or dop a fresh installation. If you want the later, then you first uninstall the application.

If you want more than that, you might have to look at professional installers. The one that come with Visual Studio is mainly destined for "Standard" installations.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900