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. how to run exe at instllation time

how to run exe at instllation time

Scheduled Pinned Locked Moved C#
visual-studiosysadmintutorial
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.
  • N Offline
    N Offline
    Naveed727
    wrote on last edited by
    #1

    I want to add an exe run at when installation is in process. I want to know how to add an exe path to run at vs deployment time. i hope you will what i need to do. :)

    M 1 Reply Last reply
    0
    • N Naveed727

      I want to add an exe run at when installation is in process. I want to know how to add an exe path to run at vs deployment time. i hope you will what i need to do. :)

      M Offline
      M Offline
      Mandaar Kulkarni
      wrote on last edited by
      #2

      You can write your own class which will be derived from the Installer class.

      Naveed khan nido wrote:

      I want to know how to add an exe path to run at vs deployment time.

      You will get savedState parameter( It is of IDictionary type) in the Install method. You can add the exe path to this savedState.

      Naveed khan nido wrote:

      I want to add an exe run at when installation is in process.

      simply Process.Invoke with the path saved into savedState will do the job for you. You will have to specify this class (rather your installer dll) in the custom actions of your deployment project. Thanks.

      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