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. MSI Launch Directory

MSI Launch Directory

Scheduled Pinned Locked Moved C#
helpquestiontutorialcareer
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
    Polymorpher
    wrote on last edited by
    #1

    I am writing an installer class for a custom action...there are certain files contained in the same directory as the executable installer(ie the msi) that i need access to, however when you launch an msi it in return launches a program located here C:\WINDOWS\system32\msiexec.exe when you try to user the current directory .\\somefile.extension you end up getting an error saying it couldnt find the file at C:\WINDOWS\system32\somefile.extension... The question is, does anyone know how to get the directory that the msi was launched from? Any help at all would be great. Thanks everyone.

    -- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)

    D 1 Reply Last reply
    0
    • P Polymorpher

      I am writing an installer class for a custom action...there are certain files contained in the same directory as the executable installer(ie the msi) that i need access to, however when you launch an msi it in return launches a program located here C:\WINDOWS\system32\msiexec.exe when you try to user the current directory .\\somefile.extension you end up getting an error saying it couldnt find the file at C:\WINDOWS\system32\somefile.extension... The question is, does anyone know how to get the directory that the msi was launched from? Any help at all would be great. Thanks everyone.

      -- "Keyboard not found. Press < F1 > to RESUME. " Source unknown (appears in many common BIOSes as a real error message)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Normally, you don't. Everything you would normally need should be in the installer. Any custom actions will know the references to files inside the installer, where they are unpacked, and at which time custom actions are OK to run.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      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