Solved

Get Source Directory in Setup and Deployment Project

Posted on 2004-10-07
5
222 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
Comment Utility
Dim path As String = Application.ExecutablePath()

~b
0
 

Author Comment

by:Barb4253
Comment Utility
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
Comment Utility
Property of Aplication Folder -> Property: DefaultLocation -> "[SourceDir]" (without quotes)
Good Luck
0
 
LVL 10

Expert Comment

by:Hans Langer
Comment Utility
The question was answered... the autor dont read it..
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

10 Experts available now in Live!

Get 1:1 Help Now