473,748 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_MACH INE\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 5860
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******** ******@TK2MSFTN GP12.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_MACH INE\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.r illing.net> wrote in message
news:ur******** *****@TK2MSFTNG P10.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******** ******@TK2MSFTN GP12.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_MACH INE\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
3602
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 Visual Basic .net standard 2003. Not installing Visual Basic at the WinXP SP1A level - was the only way I found that I could install WinXPSP2. My computer was purchased with WinXP SP1 Professional. I also have Norton Internet Security and Norton...
6
2033
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 / clients, and the application has an Access DB out on their network. How can I create a deployment routine where I can have a dialog box prompt for the network share (i.e. \\server\dbfolder) at install-time? Once network the share is specified...
12
1659
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 it must not be too easy to find/delete. I could write a hidden file somewhere in the system or hide it in the registry, but if it is a limited XP account, I'm quite limited. Any genious idea!? I tried Isolated Storage, but just moving the...
3
56999
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 want to test this service on a Windows Server 2003 box that doesn't have the Visual Studio Command prompt. How do I go about installing the service on the Windows Server 2003 box? Thanks!
2
373
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 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:...
0
1631
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 destination folder, but the one the user actually chose during the install. I found an article that said in Visual Studio 2003, this was done by adding a registry entry (through the Setup project) and setting the value of the entry to . In...
3
4330
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 '3'. This would mean I would not have enough space on my device. But I hard-reseted it befor I tryed to install and I have no other processes running while installing. Any ideas, whats going wrong???
5
7712
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 installing .NET framework 3.0 I got the error: "Microsoft .NET Framework 3.0 x86 has encountered a problem during setup. Setup did not complete correctly." Error Signature:
0
1561
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 specify where the custom folder is during the install. There is nothing in the dropdown to indicate this. Is there a way of setting up a variable that is assigned to the custom folder and then, give the value of the location of the 3rd party
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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,...
1
9326
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
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...
1
6796
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
6076
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();...
0
4607
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
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.