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

File Types in Deployment Project - "Open With" list

I have encountered the same problem another posted about several
months
ago. Unfortunately, there was no result posted on the old thread. I
will let the original message text stand and ask if anyone can help me
with this..

"I have created a deployment project for a .NET program which opens a
file with a custom extension. I have added the file type to the
deployment project. After installation, double clicking a file with
that extension opens it correctly. It also displays with the correct
icon. However, when I right click in Explorer to display the "Open
With" list, the icon for my program appears, but not the name. This
looks really messy. "

Is there a way, either through registry edit or through the Setup
Project to correct this issue?

Many thanks,

Paul Sullivan
Systems Programmer
Digital Library Center
University of Florida Libraries
Aug 29 '06 #1
1 2792
Hi Paul,

Based on your description, the problem is your installed application's name
doesn't appear in the target file's context menu's "Open With" list. Please
correct me if I misunderstand anything.

To add an application to a certain type file's open with list, first you
need to add a corresponding key for that application under the
HKEY_CLASSES_ROOT\Applications, for example:

HKEY_CLASSES_ROOT
Applications
MyProgram.exe
shell
open
command
(Default) REG_SZ
"D:\Demo\MyProgram.exe" "%1"
Then add that application key to the target file extension's
"OpenWithList"sub key under the HKEY_CLASSES_ROOT, for example:
HKEY_CLASSES_ROOT
.xx1
OpenWithList
MyProgram.exe

I suggest you can test this in your development machine first, and ensure
it works. Then export the above 2 registry keys as .reg file and import
them to your application's setup project Registry editor. The
HKEY_CLASSES_ROOT\Applications\shell\open\command key's default value
should be modified as the following:

"[TARGETDIR]\MyProgram.exe" "%1"
Wish it works!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 29 '06 #2

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

Similar topics

7
by: Martin | last post by:
Again drawing on the groups experience:- 1. For general file opening and file saving, using VB6, are there any issues with using the FileOpen and FileSave Common Dialog Boxes? 2. Is using the...
7
by: google12 | last post by:
hi, May anyone help me? I need a lib which support .jpeg file with RGBA mode. PIL seems to support RGB and CMYK mode only... Thanks for your help.
1
by: James Hu | last post by:
Hi, I have png file with mode "I", 16 bit, And I tried to open it with im=Image.open("output.png"), im.show() I got all white image. Don't why? Can Image only support 'RGB' or 'RGBA' png...
2
by: Romout | last post by:
Hello, I am currently working on a build solution for multiple c#/vb projects and I'm nearly done. There is one single problem remaining: In case one of the project settings contains a "...
2
by: OutdoorGuy | last post by:
Greetings, I have a "newbie" question in relation to opening files from C#. I have a Windows form where I allow the user to type in a file extension in a text box (e.g., "xls"). I then take...
1
by: Gary Wessle | last post by:
I am getting this error when I try to run the code below **************** f = open("~/m", "r") print f.read() **************** **************** :~$ python python/my.py Traceback (most...
3
by: Mark.V.Sullivan | last post by:
I have encountered the same problem another posted about several months ago. Unfortunately, there was no result posted on the old thread. I will let the original message text stand and ask if...
9
by: Robin | last post by:
// Pls note that test.txt exists. #include <iostream> #include <fstream> #include <string> using namespace std; int main() { fstream fs("test.txt", ios_base::in | ios_base::app);
4
by: Shreedhar Naik | last post by:
Hi, I am using XML::Simple to parse the XML file that XML file contains the "." in some of its tags. But while executing the script i am getting the error from Perl Script like "Use of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.