473,439 Members | 1,853 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,439 software developers and data experts.

store install folder to registry not possible

To anyone who is willing and able to help me!

I have developed a Windows application in VB .NET and wish to deploy it from
a CD using a typical install program. I have created a deployment project
in VS .NET, and all works as expected, except for one thing.

The requirement is that I need to record the folder selected by the user
during install as where the VB program application will be installed to,
into the registry key:
HKEY_LOCAL_MACHINE\Software\[Manufacturer]\InstallPath.

I have entered [TARGETDIR] into the Value field of a registry key I created
in the Registry Editor (within the set up project). But alas, when compiled
and executed, the literal string [TARGETDIR] is stored rather than the
actual folder name!

Surely I am not the first person who has this problem or needs this
requirement?

Kindest Regards

Brent
Jul 21 '05 #1
2 5837
I know the install project in VS.NET is very limiting. You might try
creating a custom action that will take that path and add it to the
registry.

"Brent Shire" <br***@softpac.biz> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
To anyone who is willing and able to help me!

I have developed a Windows application in VB .NET and wish to deploy it from a CD using a typical install program. I have created a deployment project
in VS .NET, and all works as expected, except for one thing.

The requirement is that I need to record the folder selected by the user
during install as where the VB program application will be installed to,
into the registry key:
HKEY_LOCAL_MACHINE\Software\[Manufacturer]\InstallPath.

I have entered [TARGETDIR] into the Value field of a registry key I created in the Registry Editor (within the set up project). But alas, when compiled and executed, the literal string [TARGETDIR] is stored rather than the
actual folder name!

Surely I am not the first person who has this problem or needs this
requirement?

Kindest Regards

Brent

Jul 21 '05 #2
Thank you for the suggestion. I created a custom action that calls a small
VB program I wrote, which accepts a command line argument (from the
Installer which passes the install folder via the [TARGETDIR] value as an
argument to the command line) and the small VB program then retrieves the
command line argument and updates the registry accordingly.

I am a happy chappy now :-)

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ur*************@TK2MSFTNGP10.phx.gbl...
I know the install project in VS.NET is very limiting. You might try
creating a custom action that will take that path and add it to the
registry.

"Brent Shire" <br***@softpac.biz> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
To anyone who is willing and able to help me!

I have developed a Windows application in VB .NET and wish to deploy it

from
a CD using a typical install program. I have created a deployment project in VS .NET, and all works as expected, except for one thing.

The requirement is that I need to record the folder selected by the user
during install as where the VB program application will be installed to,
into the registry key:
HKEY_LOCAL_MACHINE\Software\[Manufacturer]\InstallPath.

I have entered [TARGETDIR] into the Value field of a registry key I

created
in the Registry Editor (within the set up project). But alas, when

compiled
and executed, the literal string [TARGETDIR] is stored rather than the
actual folder name!

Surely I am not the first person who has this problem or needs this
requirement?

Kindest Regards

Brent


Jul 21 '05 #3

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

Similar topics

2
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing...
6
by: Paul | last post by:
Hello everyone: I am developing a VB.Net Windows Application and I am now ready to create the deployment project for it. This application needs to be installable on a different number of users...
12
by: Etienne | last post by:
Hi, I'm writing an activation system for a software, which allows a 15 days grace period. Now the question is... how can I store the date? It has to be kept even if the software is reinstalled, and...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
2
by: Brent Shire | last post by:
To anyone who is willing and able to help me! I have developed a Windows application in VB .NET and wish to deploy it from a CD using a typical install program. I have created a deployment...
0
by: dotnetprogrammer via DotNetMonster.com | last post by:
I am using Visual Studio 2005. I wrote a Setup Project to install my application. After setup is complete, I need to get the destination folder that the user chose to install to (not the default...
3
by: Olav | last post by:
Hi all, I can not install CF 2.0 SP 1 on an Symbol PPT8800 running WinCE 4.2. The Install-Log say's cgacutil.exe failed with exit-code 80000004 and I get a messagebox indicating a support-Info...
5
by: Ajith Menon | last post by:
I have to install .NET framework 3.0. I already have .NET Framework 1.1 installed on my machine. I don't want to remove framework 1.1 since some of the critical applications are using it. While...
0
by: zeid | last post by:
I have an install project that sets up a custom folder to install an addin to another 3rd party program. The location of the 3rd party program can be found in the registry but I need to be able to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.