Install MSI from code
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi all, Would it be possible to install software (MSI) from within a Windows Service written in c# which is running as LocalSystem? What we're looking for is a concept such as used by anti-vurus applications. Thanks, Peter
Yes. Read the Windows Installer SDK on http://msdn.microsoft.com/library[^]. Specifically, you can P/Invoke
MsiInstallProduct
given a path to the MSI package, along with the command-line specifying the property settings (if any). This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]