Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

Get Source Directory in Setup and Deployment Project

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
Barb4253
Asked:
Barb4253
  • 2
1 Solution
 
bramsquadCommented:
Dim path As String = Application.ExecutablePath()

~b
0
 
Barb4253Author Commented:
That would be nice, however there is no place for such code in a setup and deployment project.
0
 
Hans LangerCommented:
Property of Aplication Folder -> Property: DefaultLocation -> "[SourceDir]" (without quotes)
Good Luck
0
 
Hans LangerCommented:
The question was answered... the autor dont read it..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now