473,581 Members | 2,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to add project path at run time in the registry while project setup installation?

60 New Member
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
[HKEY_CLASSES_RO OT\Directory\sh ell\ADM]
[HKEY_CLASSES_RO OT\Directory\sh ell\ADM\command]
@="Project path "

In above given (path) I want to set my project path.

It is possible to create nodes at the registry. There is option available in .net setup project itself. I want set the value (“the path user specifies the project to install) I want that value
to come in registry value.

How to do that?

Thank u
Apr 28 '07 #1
2 2234
zedcse
1 New Member
If u want "C:\Program Files\Installed Folder\Applicat ionName.exe" in Registry,
use [TARGETDIR]ApplicationName .exe in the Setup Project.
Use [TARGETDIR] (ie. within square brackets).
Do not use \ between [TARGETDIR] and ApplicationName .exe.
This works for me.
Jul 8 '10 #2
NoZparker
1 New Member
@zedcse
a big thank you to zedcse
could not have worked it out without such a possitive and consice reply

May I Add
In visual Studio
Select the setup in solution explorer
at the top click on the registry editer
In the left pane of the editer select HKEY_CLASSES_RO OT
right click and Add a Folder, Call it Folder
right click that Folder and add a folder, call it Shell
Add a folder to that one and Call it "The Name you want to appear in the windows explorer right click menu"
add another Folder and call it Command
should look like this:-
HKEY_CLASSES_RO OT
.....Folder
........Shell
..........Your Menu Item
..............C ommand
-----------------------------------
Then right click the command folder and add/new Environment string
right click the (default) and select properties window
in the properties window Delete the (name)
in value Add
[TARGETDIR]File Your Prog Name.exe "%1"
-----------------------------------
That's it nothing more nothing less
'so easy when you know how.'
Nov 21 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
8584
by: Pierre Rouleau | last post by:
I can't remember where/how sys.path is set (aside from the automatically loaded site.py) and i get a strange entry in it. Can anyone remind me where/how to control sys.path on a Win32 machine (i'm running XP on the one where the issue arises). I can't figure out why the 'C:\WINDOWS\System32\python23.zip' entry is inside sys.path. That...
3
2094
by: Ryno Rijnsburger | last post by:
I am busy packaging our product as a standard Setup project in VS.NET that uses a bunch of merge modules (basically, a merge module for every key infrastructure component in our system). Part of the installation needs to "dump" a bunch of files (third party product's project files) to the user's system. These files are transient in nature...
2
3611
by: serge calderara | last post by:
Dear all, I have build a setup project for my VB.NET application, I need to know the installation path of an application in order to add file in it. How can do that inside my setup project ? Any sample would help regards serge
2
5338
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 works. Now, I am wondering if there is any way to change the directory that the installer installs the files to. I want to be able to put my files...
0
407
by: ThunderMusic | last post by:
Hi, I created my Setup Project and everything works fine, except for one thing : I want to create a registry key taht contains the installation path. Is it possible? Maybe I must create a custom action? Is it stored in a variable somewhere? I most important of all, can I use this variable? thanks ThunderMusic
7
2017
by: Brian Henry | last post by:
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...
0
867
by: Brian Henry | last post by:
Does anyone know the replacement code for a setup project that will put the path the project was installed into? I need to make a registry entry that will be created at install time and it must have the path to an exe file installed in the target folder of the project. but when I tried as the replacement code it just gives me a blank back for...
5
3450
by: Simon Verona | last post by:
I have an installer project for my VB.net application which as a custom action runs a silent installation of a third party software product. This however, generates an error if the application is already installed. I therefore want to check if the application is already installed before launching the setup.exe to install it. I know I...
6
2156
by: Jean-Marc Blaise | last post by:
Hi, How can I make MSSQL2K5 setup install everything in the install path I have choosen - it keeps installing some files in ¨%SystemRoot% ? Thanks, JM
0
7882
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
8157
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. ...
0
8181
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...
1
5683
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
3809
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
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2309
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
1
1410
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1145
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.