Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 498961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:56:12+00:00 2026-05-13T05:56:12+00:00

I have a asp.net project, and wrote a web installer. The setup exe/msi copies

  • 0

I have a asp.net project, and wrote a web installer.
The setup exe/msi copies that project in directory chosen by the installing user, and creates an application for it.

How can I get the path my asp.net application got installed to (in the installer)?
I want to write the physical path of my ASP.net application into the registry, because a windows service needs to watch a directory of this web project, and it can’t do that, unless it knows where the web project was installed to.

Does the Webinstaller project by any chance write this value into the registry automatically ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:56:13+00:00Added an answer on May 13, 2026 at 5:56 am

    It is possible:

    Right-click on the setup project, and choose View->Registry from the context menu.
    Right-click on HKEY_Local_Machine, add a new key, call it Software.
    Right click on Software, add a new key, call it “MyCompanyName”.
    Right click on MyCompanyName, from the context-menu, choose new->String
    call it installation folder.
    Left click on the installationFolder key, and set property value to [TARGETDIR]
    Add an additional string key, call it version and give it the value [ProductVersion]

    including the []

    On x64, you’ll find your registry key in regedit under
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\YourCompany]

    But programmatically, you can read it normally, from normal projects and web projects, with:
    My.Computer.Registry.GetValue(“HKEY_CURRENT_USER\Software\YourCompanyName”, “Installation Folder”, Nothing)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Interesting one here. I have an ASP.NET 1.1 project that contains a web service
I have an ASP.NET MVC project with a form. In the Action method that
I have an ASP.NET MVC project and I have a single action that accepts
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the
I have a UserControl in my Asp.net project that has a public property. I
In visual studio, I have an asp.net 3.5 project that is using MS Enterprise
I have an ASP.NET web application project which references another project called ModusCore (or
I have an ASP.net project I'm looking at and they want to use MySQL.
I have a ASP.NET project, in which I have a method with 10 local
I have a new ASP.NET MVC project (my first), and I had been running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.