473,396 Members | 2,089 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,396 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 5832
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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...
0
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
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...

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.