473,385 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Setup project registery values with app install folder in them

I am trying to deploy my VB.NET project with a setup project, and I need to
make a reg key entry.. but it also needs to have the path to where the
program was installed in they string i placed in the key. How do I go about
insertint the installation path (folder only) to the file into the registery
on installation of the setup project?

Say my project was installe to "c:\program files\myproject"

I want to make a registry key string at ..\Software\MyProject which hast the
string

Location = "c:\program files\myproject\SomeFile.xyz"

but of course the user can change the install location, so just entering
this as a string in the installer wont work, how do i fix this and replace
the path with what they installer installed it to? thanks
Nov 21 '05 #1
7 2011
Brian,

In that great tool the development project there are a lot of nicely hidden
tools.

One of them is in the Edit In your IDE, there suddenly is a new item when
you are busy with an deployment project, that gives you the possibility to
edit Registry parts .

I hope this helps,

Cor
Nov 21 '05 #2
I'm sorry I don't understand what you mean, I already have the registery
editor open in the deployment project, and already set up all the keys in it
for installation, I just can not figure out how to put a replacement code
for the path where the project was installed to in to the new string value I
created in the registery file during the install process..
"Cor Ligthert" <no************@planet.nl> wrote in message
news:e3****************@TK2MSFTNGP12.phx.gbl...
Brian,

In that great tool the development project there are a lot of nicely
hidden tools.

One of them is in the Edit In your IDE, there suddenly is a new item when
you are busy with an deployment project, that gives you the possibility to
edit Registry parts .

I hope this helps,

Cor

Nov 21 '05 #3
I think you are talking about Application.ExecutablePath

If you are adding your assemly to Program Files then why not 'Hard Code' it?
Example:

Program Files\YourDirectory\YourExeFileHere

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #4
how do I know where they installed it to? the registery key is created at
*installation* not execution.. this is a background process they will never
have to touch themselves, and I need it to run on login, but the user could
of placed it in a different difrectory then I'd be assumeing in hard codeing
when they selected the install path.. which is why I am asking how to
replace it. I don't believe application.executablepath works in the setup
project in a registery entry does it?
"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:uJ**************@TK2MSFTNGP15.phx.gbl...
I think you are talking about Application.ExecutablePath

If you are adding your assemly to Program Files then why not 'Hard Code'
it?
Example:

Program Files\YourDirectory\YourExeFileHere

Crouchie1998
BA (HONS) MCP MCSE

Nov 21 '05 #5
Above the project explorer are a few icons. One of the is for the dialog
boxes displayed for the installation. Just remove the change directory
dialog & they won't be able to change the installation directory

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #6
humm, thats still just a crutch for me, yes it would work... would rather
know how Microsoft and others actually do what I want to do in code in their
installers...
"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:uz**************@TK2MSFTNGP15.phx.gbl...
Above the project explorer are a few icons. One of the is for the dialog
boxes displayed for the installation. Just remove the change directory
dialog & they won't be able to change the installation directory

Crouchie1998
BA (HONS) MCP MCSE

Nov 21 '05 #7
Brian, to do this just use [TARGETDIR] in your registry value it will
expand at install time to the folder the app gets installed to, and still
allow the user to choos ethe installation point.

Todd Derksen
--------------------
Visual Basic Deployment Test Team
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "Brian Henry" <br**********@newsgroups.nospam>

humm, thats still just a crutch for me, yes it would work... would rather
know how Microsoft and others actually do what I want to do in code in theirinstallers...
"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:uz**************@TK2MSFTNGP15.phx.gbl...
Above the project explorer are a few icons. One of the is for the dialog
boxes displayed for the installation. Just remove the change directory
dialog & they won't be able to change the installation directory

Crouchie1998
BA (HONS) MCP MCSE



Nov 21 '05 #8

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

Similar topics

6
by: Joăo Santa Bárbara | last post by:
hi all i need to create an setup package that registers an assembly can some one tell me how to start ?? thks JSB
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
2
by: Aurimas Norkevicius | last post by:
I have two web projects and a class library in the same solution. Both web projects uses class library dll. How to create a web setup project to install class library into client computers gac and...
4
by: Bob | last post by:
Could anyone suggest me some examples/articles on creating a setup program in VS.NET that can install the assembly into the GAC? I have done some search and research myself and have some basic...
13
by: johnb41 | last post by:
I'm testing out the Visual Basic 2005 Express Edition, and I like it thus far... but i'm puzzled. I want to add a "Setup Project" to my solution. When i go to Add Project, I don't see the...
7
by: Bob | last post by:
I want my aps to the insalled as was the old way under c:\Program files\Myapp or give the user the choice as before of installing the app in another folder location. That again no longer seems...
1
by: rohan_from_mars | last post by:
I have a windows service and am also using Enterprise Library June 2005 version. Now i have created Setup and Deployment Project which installs the service. but how do i add EL dlls-...
2
by: =?Utf-8?B?Vi5DaG9ja2FsaW5nYW0u?= | last post by:
IDE : VS .NET 2003, Platform : .NET 2.0, Hi All, I have my project in VS.Net 2003 (VB.Net). The OS is Vista Ultimate. In a form's Button_Click() event i call a dll which calls another dll and...
1
by: Claire | last post by:
Ive written a small string resource building utility that I send out to our translators. I have a setup project for each language we support, which picks out a group of 12 english resx files plus...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...

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.