Solved

Get Source Directory in Setup and Deployment Project

Posted on 2004-10-07
5
240 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loop through Multiple Processes Async 2 27
Copy/Clone an object. 9 29
C# Single Form 8 26
Get the selected ValueMember of Combobox 5 15
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
A short film showing how OnPage and Connectwise integration works.

943 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now