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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert an ASPX page into PDF 7 32 help 4 29
VB.Net - Get ColumnNames of SQL Table 4 11
VB.NET 2008 Publish Error 2 25
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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

776 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