You are here

File Association

6 posts / 0 new
Last post
TheOneMrO
Offline
Last seen: 13 years 10 months ago
Joined: 2005-12-09 08:42
File Association

I thought it would be awfully handy if temporary file association would be added to these applications. Implementation would be simple:

1) Write a test registry key, if it fails, skip file association

1.5) Create backups of the registry keys being modified

2) Change the appropriate registry keys in HKCR

3) Use some way to refresh the shell icons (included in FileFunctions.nsh i think)

4) Execute the program using ExecWait

5) Import the registry backups and/or delete all changed keys

6) Refresh shell icons again

If registry write fails, ExecWait is not needed. If keys are for some reason not changed back to the originals, regular .reg files (if exported correctly) can be saved in the Portable App's directory for the user to just double click to import them to the registry and include an NSIS app that could write those keys to the registry if .reg's import was blocked.

Just an amazing little idea i had the other day. I was writing a sample of it on Firefox Portable, but gave up as i don't have the time anymore as college starts in >2 weeks Smile

arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 2 months ago
Joined: 2006-08-10 16:38
File Association

Do you mean something like c.a.f.e.?
---------------
"Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river." -- Cyril Connolly

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 3 months ago
Developer
Joined: 2006-12-06 18:07
Check out C.A.F.E. Mod Beta

Check out C.A.F.E. Mod Beta 3 in the Beta forums

https://portableapps.com/node/8323
_________________________
I don't believe in signatures

The developer formerly known as ZGitRDun8705

malikor
Offline
Last seen: 14 years 8 months ago
Joined: 2009-06-07 08:07
Check this out

A program that will change file associations, temporarily, and runs from a portable device. Here's the gHacks review of the program with a link.
http://www.ghacks.net/2009/06/22/set-file-associations-without-writing-t...

ottosykora
Offline
Last seen: 3 weeks 3 days ago
Joined: 2007-10-11 17:48
is this useful?

Otto Sykora
Basel, Switzerland

qwertymodo
qwertymodo's picture
Offline
Last seen: 11 years 9 months ago
Joined: 2008-03-17 19:08
+1 for PFA, works like a

+1 for PFA, works like a charm Smile

Quamquam omniam nescio, nec nihil scio.

Log in or register to post comments