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. Integration of Window Service and my project through set up program

Integration of Window Service and my project through set up program

Scheduled Pinned Locked Moved C#
question
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.
  • K Offline
    K Offline
    ksanju1000
    wrote on last edited by
    #1

    Hi, I have made windows service program In On start code i am calling exe file through process.start inside on_start()function Process.Start(@"c:\a.exe"); here i do not want to write complete path I want to write only a.exe and path should be taken from my other project which i made another installation program for this project. How can i retrive the path of a.exe so that my windows service automatcally retrive the path of location of a.exe Client can install set up program of a.exe in any drive. In that case how my windows service will retrive the complete path of a.exe Pls suggest in this matter This is very urgent THanks and Regards sanjeev Everything is possible

    M 1 Reply Last reply
    0
    • K ksanju1000

      Hi, I have made windows service program In On start code i am calling exe file through process.start inside on_start()function Process.Start(@"c:\a.exe"); here i do not want to write complete path I want to write only a.exe and path should be taken from my other project which i made another installation program for this project. How can i retrive the path of a.exe so that my windows service automatcally retrive the path of location of a.exe Client can install set up program of a.exe in any drive. In that case how my windows service will retrive the complete path of a.exe Pls suggest in this matter This is very urgent THanks and Regards sanjeev Everything is possible

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Just write the path where a.exe is being installed to into the registry: Add a new registry key to your setup for a.exe and set its value to [TARGETDIR]. Regards, mav

      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