473,883 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installation path of deployment app

I have a project with a deployment project.

All works GREAT !!!

Is there a system variable (maybe via the dot net framework I'm assuming)
that stores the installation path of the app, assuming the end-user changes
the default path that I set up in the deployment project?

Thank you in advance!

--
Frank Bachman
(Grumpy Aero Guy)

Nov 21 '05 #1
5 9392
For many things you can use [TARGET] as a path to the installation
directory. What are you trying to do?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Grumpy Aero Guy" <fbachman@beer_ me.com> wrote in message
news:eM******** *******@TK2MSFT NGP11.phx.gbl.. .
I have a project with a deployment project.

All works GREAT !!!

Is there a system variable (maybe via the dot net framework I'm assuming)
that stores the installation path of the app, assuming the end-user
changes the default path that I set up in the deployment project?

Thank you in advance!

--
Frank Bachman
(Grumpy Aero Guy)

Nov 21 '05 #2
Grumpy,

Maybe it is easier to get that path in your application using

application.sta rtuppath
http://msdn.microsoft.com/library/de...ppathtopic.asp

I hope this helps,

Cor
Nov 21 '05 #3
"Grumpy Aero Guy" <fbachman@beer_ me.com> schrieb:
I have a project with a deployment project.

All works GREAT !!!

Is there a system variable (maybe via the dot net framework I'm assuming)
that stores the installation path of the app, assuming the end-user
changes the default path that I set up in the deployment project?


Either add a reference to "System.Windows .Forms.dll" and import the
'System.Windows .Forms' namespace in order to use 'Application.St artupPath'
or use the code below:

\\\
Imports System.IO
Imports System.Reflecti on
..
..
..
Private Function ApplicationPath () As String
Return _
Path.GetDirecto ryName([Assembly].GetEntryAssemb ly().Location)
End Function
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Fantastic.... just what i needed.

I have a few link lables here and there that do a process.start on some
reference files (pdf) in the main app folder.

Just wanted to give the app a way to find them, as long as they're in the
install directory --- either the default, or wherever the user installed the
thing.

THANKS TO ALL. Now I at least know where to start looking

--
Frank Bachman
(Grumpy Aero Guy)
"Grumpy Aero Guy" <fbachman@beer_ me.com> wrote in message
news:eM******** *******@TK2MSFT NGP11.phx.gbl.. .
I have a project with a deployment project.

All works GREAT !!!

Is there a system variable (maybe via the dot net framework I'm assuming)
that stores the installation path of the app, assuming the end-user
changes the default path that I set up in the deployment project?

Thank you in advance!

--
Frank Bachman
(Grumpy Aero Guy)

Nov 21 '05 #5
It helps !! ... I'll be playing....

--
Frank Bachman
(Grumpy Aero Guy)
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:uy******** ******@TK2MSFTN GP10.phx.gbl...
Grumpy,

Maybe it is easier to get that path in your application using

application.sta rtuppath
http://msdn.microsoft.com/library/de...ppathtopic.asp

I hope this helps,

Cor

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2094
by: InstallAware | last post by:
For Press Inquiries: Sinan Karaca InstallAware Software Corporation 336 Guerrero Street, San Francisco CA 94103 415 358 4094 (voice/fax) sinank@installaware.com http://www.installaware.com/ InstallAware First (and Only) Installation Toolkit to Support .NET 2.0
2
1245
by: Jenny | last post by:
Hi I'm developing my asp.net application on my local computer with IIS. I transfer the project by simply copy/paste to the server and each time dll's are missing. I do also not know whether it's necessary to copy all the *.vb or *.sln etc. files. How can I make relieable 'minimum files' installation on the server??
4
1317
by: Oleg Ogurok | last post by:
Hi all, Is there a way to get the path to the temp directory where installation files are unpacked to? Also is there a way to specify in a deployment package that a file should not be installed anywhere but simply included into the package? E.g. I want to include install_docs.txt (as losely packaged) but it should not be copied to the destination dir during install? I tried setting "Exclude" to true but the file gets excluded from the...
3
4058
by: Chad Smith | last post by:
Hi, I have created a .NET deployment project in Visual Studio 2003. I have specified an entry point into my own code in this installer which launches into the familiar: public override void Install(IDictionary savedState) { Application.Run(new MyForm()); base.Install(savedState);
1
2064
by: Jesse Albert | last post by:
I'm having a complete brainfart so I'll just let you all know the issue and listen to any possible solution you can offer without asking for a specific way to do this ;) I have a Solution ( VB 2005) that consists of 3 projects: A Service, a Configuration Project, and the Deployment project. The config project is just the UI that will save settings to an XML file in the installation directory.
6
25090
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42
20
3173
by: piggy | last post by:
I have developed an application using C# under .NET 2.0 framework. It is almost done and it is time for me to think about deploymnet to all users. I don't have any background about this and would like to see if anyone can help me get started. I have read some about clickonce deployment and not sure much about this yet. Thanks for your help.
0
1085
by: j-in-uk | last post by:
Hi, Can I include sql 2005 express installation in a windows deployment project? the windows app is using Visual studio 2003. I tried the bootstrapper but there is no entry for sql express, only sql msde. settings.ini MSI: Use this to point to your installer file. ProductName: Use this to name your product. FxInstallerPath: This is the path to the .NET installer. It looks for a file named Dotnetfx.exe.
0
1153
by: DocVu | last post by:
Dear everybody, I'm very sad now. I have problem with making the Setup package. Could you share with me a light.Our problem as followings: 1. I expect the deployment package contains the following features: - The user will get the deployment package with 2 files: setupname.msi and setupname.ini - The setupname.ini file tell us which modules the end user has permission to install (and which are not-allowed-modules).
0
9781
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11121
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10734
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10407
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9564
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7960
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
4210
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3230
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.