473,597 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File association

Nak
Hi there,

I am implementing file association from within my application,
association that occurs after installation. Anyway, I remember a while back
seeing a key in the registry that was used to store the previous registered
application to an extension, but I can't for the life of me find out what
the exact key was called, I *think* it was "Previous" or something like
this. Anyway, what it means is that my application could restore the
previous association on "unassociation" .

I would rather use the correct registry key for this rather than making
up my own, just incase other applications can use it. Anyway, I asked the
windows newsgroup with not even a single answer after quite a long wait,
over 2 weeks. So I thought I'd ask here, just incase one of you had
experience in this, thanks for your help in advance :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #1
6 1759
Hi Nick,

It seems that there is no such registry key that will save the previous
association.
I agree with Fergus's suggestion that you may need to save the registry key
before you make changes.
And restore it after you uninstall the application.

You may use the tool regmon to see what has changed.
Here is the link.
http://www.sysinternals.com/ntw2k/source/regmon.shtml

Here is a link.
HOWTO: Associate a File Extension with Your Application (Win32)
http://support.microsoft.com/?id=185453

If you have any related question,please feel free to let me know.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
From: "Nak" <a@a.com>
Subject: File association
Date: Tue, 21 Oct 2003 21:53:11 +0100
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <O8************ *@TK2MSFTNGP11. phx.gbl>
Newsgroups: microsoft.publi c.dotnet.langua ges.vb
NNTP-Posting-Host: dsl213-218-227-57.as15444.net 213.218.227.57
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:148824
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb

Hi there,

I am implementing file association from within my application,
association that occurs after installation. Anyway, I remember a while backseeing a key in the registry that was used to store the previous registered
application to an extension, but I can't for the life of me find out what
the exact key was called, I *think* it was "Previous" or something like
this. Anyway, what it means is that my application could restore the
previous association on "unassociation" .

I would rather use the correct registry key for this rather than making
up my own, just incase other applications can use it. Anyway, I asked the
windows newsgroup with not even a single answer after quite a long wait,
over 2 weeks. So I thought I'd ask here, just incase one of you had
experience in this, thanks for your help in advance :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ \"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ \


Nov 20 '05 #2
Hello, friends:

I've seen some threads regarding file association and I think that there isn't very much information about it.
But you can find all the information you need in a MSDN chapter beginning at http://msdn.microsoft.com/library/de.../fileassoc.asp .

It is a lot of reading but, at least for me, very interesting.

I hope you find it useful.

Regards.
"Nak" <a@a.com> escribió en el mensaje news:O8******** *****@TK2MSFTNG P11.phx.gbl...
| Hi there,
|
| I am implementing file association from within my application,
| association that occurs after installation. Anyway, I remember a while back
| seeing a key in the registry that was used to store the previous registered
| application to an extension, but I can't for the life of me find out what
| the exact key was called, I *think* it was "Previous" or something like
| this. Anyway, what it means is that my application could restore the
| previous association on "unassociation" .
|
| I would rather use the correct registry key for this rather than making
| up my own, just incase other applications can use it. Anyway, I asked the
| windows newsgroup with not even a single answer after quite a long wait,
| over 2 weeks. So I thought I'd ask here, just incase one of you had
| experience in this, thanks for your help in advance :-)
|
| Nick.
|
| --
| /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| "No matter. Whatever the outcome, you are changed."
|
| Fergus - September 5th 2003
| /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
|
|
Nov 20 '05 #3
Hi José,

Been there, read that.

It <was> interesting. ;-)

Regards,
Fergus
Nov 20 '05 #4
Nak
Hi José,

I shall take a read, it looks very interested. Thanks for your help :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #5
Nak
Hi Fergus,
Been there, read that.

It <was> interesting. ;-)


I wonder if that little ol' MSDN site has info on putting some new items
into the common tasks panel in explorer, such as changing the "View as a
slide show" button so it loads up a different app, now that would be nice,
I'm off to check it out!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #6
Hi Nick,

Did my suggestion help you?
If you have any question on this issue please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #7

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

Similar topics

7
4306
by: steve | last post by:
Hi, I just upgraded my php but ran into a problem. Never seen this before. Somehow it seems I lost php file association. When I do a http://localhost/something.php I get a prompt for dowload of a file. I went to folder options, and changed file associations so that ".php" is associated with php interpreter, but still get the same problem.
6
486
by: Justin F | last post by:
I have set up file association for my application (VB.Net). I'm having problems getting the filename that was double-clicked. On my machine at work, if the filename being passed in to the application has spaces in any of the folder names, they get split up at every space. This happens regardless if I use a Sub Main(ByVal args() as String) or use System.Environment.GetCommandLineArgs(). For example, if I launch a file that's on my...
2
2123
by: Mark | last post by:
I have a windows 2000 PC and it does not know what a hta file is. any ideas. Mark
8
4918
by: L Mehl | last post by:
Hello -- Fairly often, but not always, when I start the app by clicking the mdb or an icon set up to start it, I get the message "Cannot find the file 'c:\path...\dbname.mdb' ...." and then the app starts, as if there were no problem. The mdb is located correctly. I assume that all required libraries are
4
2597
by: Rob | last post by:
I have an Access application that allows users to open up certain files from within Access (.doc files with automation, .pdf's with a pdf viewing form). Other formats, we want to use Internet Explorer to show, using a plug-in). THis works fine as long as they have the plug-in installed. If they don't have the plug-in, when I try to open the file with IE, it gives the old "Would you like to OPEN this file or SAVE it to disk?" and it...
1
4464
by: JerryP | last post by:
Hi Experts, from my program I offer the user to launch different files from a directory (normaly in this directory are .txt files) - but sometimes other files may be in there - so if my program receives the "no program associated" I would like to launch the standard Windows dialogue that pops up when double clicking a file in windows explorer that has no association. Thanks for any hints !
2
2261
by: Peter | last post by:
I have created a Setup project wich includes couple of text file and it also includes file association of .tsrx. After the application is installed if I happen to delete any one of the text files the Setup runs automaticaly and installs those text files back when I double click on the any of the .tsrx files. How can I prevent this from happening, I want the user to have an option of being able to delete these text files.
1
4424
by: Allen | last post by:
I have installed the Updater Application Block, and then I should Deploy the QuickStarts. " Install the QuickStarts After you install the Updater Application Block, you should install the QuickStart applications by using the Deploy QuickStarts option on the QuickStarts submenu. This creates the Web folders required by the QuickStart samples. You can remove the QuickStarts from your computer by using the Uninstall QuickStarts option on...
28
20509
by: Tim Daneliuk | last post by:
I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable that does not resort to all the lowlevel ugliness of os.stat() AND that is portable across Win32 and *nix? Thanks, ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: ...
0
7883
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8263
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8254
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6677
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5842
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5421
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1492
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1226
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.