473,549 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setup Project, dynamic Registry key value... how?

Hi,
I found where to create new registry keys, but I would like on of these keys
to have the installation path as it's value. Is it possible? and if it is.
How can I do that? because I tried to set the value to TARGETDIR but the
value inserted in the new registry key is "TARGETDIR" and that's not what I
want.

Can somebody help me please?

Thanks
Aug 24 '05 #1
2 4521
Can you post the line of code that you are using to set the reg key
value?

Thanks.

Aug 24 '05 #2
aztek
1 New Member
You must enclose the variable in square brackets:

In this case use: [TARGETDIR] as the value and it should work.
Sep 5 '05 #3

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

Similar topics

2
2084
by: steve b | last post by:
I need to add a registry entry to internet explorer (I'm adding a right click menu item) with vb.net setup program. Anyone know how to do that? Thanks!
2
3175
by: Grant Schenck | last post by:
I have an Internet Explorer toolbar built with C# .Net. I'd need to install the GUID in HKLM\Software\Microsoft\Internet Explorer\Toolbars However, I can't find any way to get my setup project to do this for me... Does anyone know how to configure a setup project to update the registry? Thanks,
0
1766
by: ahaupt | last post by:
Hi all, I've created a setup project for my app in VS2003 and need to set up some registry values and keys. It is easy enough to just create static keys with static values, but I'd like the installer to run through a number of custom screens with custom controls. I'd like those contols' values to be saved to the registry.
1
2081
by: Ravi | last post by:
Hi, I'm trying to create a Setup project that can add some registry settings during the installation. I'm using the Registry editor to specify these registry entries. The registry (string)values that I'm trying to add need to be set to the computer name of the machine on which the installation is being done. Could any one please suggest...
1
314
by: ThunderMusic | last post by:
Hi, I found where to create new registry keys, but I would like on of these keys to have the installation path as it's value. Is it possible? and if it is. How can I do that? because I tried to set the value to TARGETDIR but the value inserted in the new registry key is "TARGETDIR" and that's not what I want. Can somebody help me please? ...
2
2232
by: joerozario | last post by:
I have created a windows application. Like windows search program. So I want my project link should be shown in folder right click. I have added values in the registry manually in I have got as I need. This is the Registry Script Windows Registry Editor Version 5.00 @="Project path "
2
1808
by: Technolust | last post by:
Hi there! I'm using VS 2005 SP1 to create a setup project. I'm checking for a registry entry in HKCU\Software \FMI\NCR called 'TemplateFolder' in the Launch Conditions tab. The Property is set to REG_NCRTEMPLPATH. In the Registry tab, I want to create the same registry entry as above only if it does not exist. A Launch Condition...
4
2311
by: Blue Streak | last post by:
Hi, Folks. I am trying to add to the Environmental Variable %PATH % for a console application written in C#. I know the path for Win2k/XP is stored in the System Registry under H_KEY_LOCAL_MACHINE but all I seem to be able to do is replace the %PATH% variable with the Registry Editor within the project. Does anyone know how I can...
3
4469
by: fniles | last post by:
I am not sure if I post this issue at the correct newgroup. If I need to post it somewhere else, please let me know what is the correct newsgroup for this. I am using VB.NET 2005 and I create a "setup and deployment" project. When I use this installation to install on a user's machine, how can I merge some registry settings into the user's...
0
7521
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...
0
7720
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. ...
1
7473
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...
0
6044
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...
1
5369
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...
0
3501
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...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1944
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
0
764
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...

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.