Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Install MSI from code

Install MSI from code

Scheduled Pinned Locked Moved C#
csharpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    petst
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • P petst

      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

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups