Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Get Source Directory in Setup and Deployment Project

Posted on 2004-10-07
Medium Priority
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 750 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

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

715 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