Get Source Directory in Setup and Deployment Project

Posted on 2004-10-07
Last Modified: 2009-07-29
I have a Setup and Deployment Project using Visual Studio .net . I'm trying to get the directory where the setup.exe is running from. ie. cdrom or network path, I need the path so I can run another app from the setup.

Question by:Barb4253
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 12249038
Dim path As String = Application.ExecutablePath()


Author Comment

ID: 12252820
That would be nice, however there is no place for such code in a setup and deployment project.
LVL 10

Accepted Solution

Hans Langer earned 250 total points
ID: 12263366
Property of Aplication Folder -> Property: DefaultLocation -> "[SourceDir]" (without quotes)
Good Luck
LVL 10

Expert Comment

by:Hans Langer
ID: 12466096
The question was answered... the autor dont read it..

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question