Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6769935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:15:09+00:00 2026-05-26T15:15:09+00:00

I have a setup project, its been working nicely for atleast a couple of

  • 0

I have a setup project, its been working nicely for atleast a couple of years. I have recently added a new project to the mix, a winform. I took me a great deal of googling and research to make it work – many thanks to the loads of articles I found during my “adventure”.

This new project enables me to right click a file in Explorer and add it to my system. I can install the project fine, files are being added/copied to their rightfull place. Code is fine, does precisely what I told it to.

For some reason the Registry editor and Windows Registration DB does not agree on keys.

Registry editor states I should have HKCR\*\shell\Add to system\command and a string key saying
Name: (Default)
Value: "[TARGETDIR]mySystemAddFileForm "%1"

Sofar so good, yes Windows reg db also believes the path to be right. Yes there is a “but”.
For some reason Windows reg db believes there should be a 2nd string key saying
Name: (Default)
Value: null

The Windows takes precedence and messes up my logic (design, code, idea).

If I manually clean this up, I can right click the files just fine and add them to the system. Just to be clear. Yes, Explorer does have a right click option that says “Add to system” and yes after I edit regedit manually it does work when I click it.

Before I changed it to the Registry editor, I had the key generation in the CustomSetupActions but I couldn’t make that handle if the user decided to edit the installation folder. From default [programfiles] (c:\Program Files\ .. ) to whatever the user decided at install point.

By Registry editor I mean the one in the Setup project, View/Registry.

How can I tell Windows to stay the f* of my finely tuned code and let me decide what reg keys are created when and where.

Edited: (Standard) to (Default). Windows may translate the (Default) to the local language. Leave it at Default.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:15:10+00:00Added an answer on May 26, 2026 at 3:15 pm

    Windows Installer can install default values and usually they are not overridden automatically by Windows.

    To install a default value with a Visual Studio setup project, make sure that the Name field is empty: http://msdn.microsoft.com/en-us/library/windows/desktop/aa371168(v=vs.85).aspx

    This is usually enough. If the value is not as expected after install, try creating a verbose installation log to see what happens during install. Most likely the registry entry is skipped or written somewhere else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to port project im working on to PropelORM . So
I'm working on a project myself. I have subversion setup and using tortoisesvn to
As a project I have been working on has grown, so has the frequency
I am new to wcf programming and I have been working on a small
I have a setup project created by Visual Studio 2005, and consists of both
I have a setup project for my C# program, and this setup project has
I have a setup project that installs my app to the typical program files
Hi I have a setup project in my application.Setup includes 5 files (a.txt,b.doc etc.)
I have created a setup project using Visual Studio 2008. After the application is
I have a windows setup project that installs a service. All works well except

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.