Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get Source Directory in Setup and Deployment Project

Posted on 2004-10-07
5
Medium Priority
?
292 Views
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.

Thanks,
BArb
0
Comment
Question by:Barb4253
  • 2
5 Comments
 
LVL 8

Expert Comment

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

~b
0
 

Author Comment

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

Accepted Solution

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

Expert Comment

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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 (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) 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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Screencast - Getting to Know the Pipeline

963 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