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. .NET (Core and Framework)
  4. Getting the Installation root directory from inside an Installer

Getting the Installation root directory from inside an Installer

Scheduled Pinned Locked Moved .NET (Core and Framework)
questionworkspace
3 Posts 3 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.
  • T Offline
    T Offline
    Tristan Rhodes
    wrote on last edited by
    #1

    Hi Guys, I have an Installer object in a program, and i'd like to do some configuration to the installed files during the install process. In order to do this, i need the root directory of the installation, as specified when it prompts the user to enter the path of the install. Is there any way to get this from inside the Installer? Or do i need to pass in a parameter or some kind of configuration setting? Regards Tris

    ------------------------------- Carrier Bags - 21st Century Tumbleweed.

    M J 2 Replies Last reply
    0
    • T Tristan Rhodes

      Hi Guys, I have an Installer object in a program, and i'd like to do some configuration to the installed files during the install process. In order to do this, i need the root directory of the installation, as specified when it prompts the user to enter the path of the install. Is there any way to get this from inside the Installer? Or do i need to pass in a parameter or some kind of configuration setting? Regards Tris

      ------------------------------- Carrier Bags - 21st Century Tumbleweed.

      M Offline
      M Offline
      Moim Hossain
      wrote on last edited by
      #2

      Have a look [here](<a href=)[^]"> and [here.](<a href=)[^]"> Probably it would be best to use the Installer class.

      Moim Hossain R&D Project Manager BlueCielo ECM Solutions BV

      1 Reply Last reply
      0
      • T Tristan Rhodes

        Hi Guys, I have an Installer object in a program, and i'd like to do some configuration to the installed files during the install process. In order to do this, i need the root directory of the installation, as specified when it prompts the user to enter the path of the install. Is there any way to get this from inside the Installer? Or do i need to pass in a parameter or some kind of configuration setting? Regards Tris

        ------------------------------- Carrier Bags - 21st Century Tumbleweed.

        J Offline
        J Offline
        Jack Vanderhorst
        wrote on last edited by
        #3

        In the AfterInstall event of an Installer class you can get it from here... System.Reflection.Assembly.GetExecutingAssembly().Location

        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