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

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

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_ROOT\Directory\shell\ADM]
[HKEY_CLASSES_ROOT\Directory\shell\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 2220
zedcse
1
If u want "C:\Program Files\InstalledFolder\ApplicationName.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
@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_ROOT
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_ROOT
.....Folder
........Shell
..........Your Menu Item
..............Command
-----------------------------------
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
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...
3
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...
2
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 ?...
2
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...
0
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...
7
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...
0
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...
5
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...
6
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.