When the user clicks update on my application, I want to show the installer. The installer resides on a server.
What is the best way to show msi or installer to the user?
Is there any example?
Thanks
When the user clicks update on my application, I want to show the installer. The installer resides on a server.
What is the best way to show msi or installer to the user?
Is there any example?
Thanks
First of all you need to copy your installation package to the client. You can transfer binary data or download using
WebClient
.Then you can execute the installation package using
Process.Start
andmsiexec
utilityAfter you download the msi file, you just run it using the Process class found in System.Diagnostics namespace.
Windows will take care after that.
LATER EDIT: Sample code:
Of course the path to your downloaded .msi file should point to a temporary directory (a good choice would be the Windows temporary folder itself), but the idea is to get to call the static method Start() of the Process class.