You are here

Suggestion for associating files with PortableApps? eXpresso links seem to be dead

6 posts / 0 new
Last post
Rochey
Offline
Last seen: 5 years 7 months ago
Joined: 2007-08-07 15:48
Suggestion for associating files with PortableApps? eXpresso links seem to be dead

Hi all,

I'm looking for something that will associate the files with the programs on my portableapps devices (only while the platform is running). I think eXpresso 1.3.1 is the latest and greatest but all the links that I can find are dead. I also did hear that file association was going to be integrated with the platform but I can't seem to find any information on whether this has happened or not.

Could anybody point me in the right direction please?

Thanks,
Rochey

ZeroX4
Offline
Last seen: 9 years 6 months ago
Joined: 2013-01-10 21:33
would that help u ?
Rochey
Offline
Last seen: 5 years 7 months ago
Joined: 2007-08-07 15:48
Thanks for the reply ZeroX4

Thanks for the reply ZeroX4 but I was looking for something that was portable to take/work with my USB drive.

ZeroX4
Offline
Last seen: 9 years 6 months ago
Joined: 2013-01-10 21:33
http://portableapps.com/node/

https://portableapps.com/node/15583?page=4

i found this

also with defaultprogramseditor
u can export registry key to reg file and make 1 big file for many file association naming it FILE ASSOCIATION.reg and than just copy it and rename it to DELETE FILE ASSOCIATION.reg right click it choose edit and before every key ad -

this will delete all just made file association problem is you would need to manually click this files

or create bat file which could be turn in to exe file with changeable icon

why bat file ? there is command for bat file to run multiple files so you could set it to run FILE ASSOCIATION.reg on start and DELETE FILE ASSOCIATION.reg on exiting program

for example u can set it to run association reg key when u launch pap and to run delete association at exit of pap

or make individual reg association and dlete association for each program and than bat to exe them

i can tell u all i know but 1st tell me if u care to try cause its allot of explaining

this way i made sumatrapdf INSTALLATION VERSION portable without loosing pdf file association

errantkkn
Offline
Last seen: 11 years 2 weeks ago
Joined: 2014-01-22 18:39
please make tutorial

Could you show detail of your way, plz? I think it'll be very good solution for association and context menu with portable apps.

I'd tried to use Defaultprogrameditor but can't find the backup reg file.

And I don't know how to get the default context menu of a program, for backup. Do I need to install the app to get context menu, then backup and uninstall app?

Plz show me, thanks.

ZeroX4
Offline
Last seen: 9 years 6 months ago
Joined: 2013-01-10 21:33
ok so before we start keep in

ok so before we start keep in mind i know like !% of what you can do with bat files and how DPE works

===================================================================
AND THERE IS 1 BIG PROBLEM CAUSE U WILL BE ABLE TO ASSOCIATE FILES TO UR PROGRAMS AND REMOVE ASSOCIATION BUUUUUUUT YOU WONT BE ABLE TO RETURN FILES TO THEIR ORIGINAL ASSOCIATION

OR THERE IS in DEFAULT PROGRAM EDITOR OPTION FOR THAT
I JUST NOTICED IT WHILE FINISHG THE POST
open DPE and on bottom click create or restore backup of registry

I DID NOT AND CANT RIGHT NOW TEST IT SO I DONT KNOW IF IT WORKS OR NOT
====================================================================

DPE steps we just make to get reg files so you will need to do them only once

here is set of 8 images i explain to you step by step what to do

http://imgur.com/a/GR1Gp#0

1. select file type settings
2. select context menu
3. select ur extensions (you can use search feature) than hit next
4. hit add (delete others if u need)
5. select program which should open that extension hit open and hit next
6. in command name u need to type "Open" and hit next
7. hit arrow on right side of "save context menu" button and chose save to reg file
8. right click reg file and choose edit to view its content

what i did with .a extensions is deleted "izarc" association and added "audacity" association

you need to 1st to associate file with any program otherwise it wont be displayed in DPE extension list

anyway

this is explanation of what was in reg file

===============================================================

THIS PART IS ABOUT WHAT PROGRAM WAS THAT FILE ASSOCIATED
IT WAS ASSOCIATED TO IT AFTER IZARC INSTALLATION

; Add Verb
[HKEY_CURRENT_USER\Software\Classes\IZArcA\shell\Open]
@="Open"
===============================================================

===============================================================

THIS IS LOCATION OF PROGRAM TO WHICH I JUST ADDED ASSOCIATION TO

[HKEY_CURRENT_USER\Software\Classes\IZArcA\shell\Open\command]
@="\"C:\\Programy\\Audacity\\audacity.exe\" \"%1\""

===============================================================

===============================================================

THIS PART DELETES OLD ASSOCIATION NOTE THE - MINUS ON BEGINNIG OF
KEY LINE

; Delete Verb
[-HKEY_LOCAL_MACHINE\Software\Classes\IZArcA\shell\Open]
===============================================================

that is all i know and understand about DPE and reg files

now there is problem that reg file asks if you really want add that key to registry

but you can add reg key in silent mode with bat file

send it silently
start /s "%CD%" data\my.reg

how to make bat file
http://www.wikihow.com/Write-a-Batch-File

1st of all i did not test it with 1 folder so i will explain how i make it with 2 folder

1st folder is the main folder containing everything and 2nd folder i call it DATA folder contains anything it should

problem with bat files is that u need to specify path to everything
so it knows where to start
but there is trick which works as (start from here)

normally to lets say start winamp with simple bat command it should look like this (assuming you have winamp in c:\winamp)

start c:\winamp\winamp.exe

this means you would always have winamp in that folder BUT

if in c:\winamp folder you create folder called data and move there ALL files from winamp folder
than you could do put to bat this

start "%CD%" data\winamp.exe

this way folder can be moved or launched from usb and still work
cause "%CD%" means that start from folder where i launched bat

now lets say you have reg file named my.reg
now in bat file you type

start /s "%CD%" data\my.reg

but the problem is i think you cant have "%CD%" in reg file so you would need to copy all ur reg files and edit them and set different drive letter

so like reg files named differently would respond to different drives

Imy.reg
[HKEY_CURRENT_USER\Software\Classes\IZArcA\shell\Open\command]
@="\"I:\\Winamp\\winamp.exe\" \"%1\""

Fmy.reg
[HKEY_CURRENT_USER\Software\Classes\IZArcA\shell\Open\command]
@="\"F:\\Winamp\\winamp.exe\" \"%1\""

Gmy.reg
[HKEY_CURRENT_USER\Software\Classes\IZArcA\shell\Open\command]
@="\"G:\\Winamp\\winamp.exe\" \"%1\""

BUT

there is 1 more way to add association to files via bat file

PROGRAMNAME -register-for-EXTENSION

lets say you want to associate winamp with mp3
u have winamp in C:\winamp\data
and in C:\winamp is your bat file
than ur bat should have inside

start "%cd%" data\winamp.exe -register-for-mp3

(remember after ur bat file have command lines that work you can change its name and convert to exe and change icon)

BUUUUT I DONT KNOW HOW TO EASY REMOVE ASSOCIATION FROM THIS METHOD!!!!!!!!

BUUUUT default program editor when u launch it on the bottom have option to create or restore registry backup so that could resoter original file associations

and this is basically all i know

last 1 thing is to download bat to exe from here
http://www.f2ko.de/programs.php?lang=en&pid=b2e

well i would explain you how it work but i think if you cant understand that program than nothing can help you

ill just say on 1 bookmark in bat to exe you can change icon

from this site i learned how to launch multiple files via bat files also i learned some commands

http://www.watchingthenet.com/windows-tip-use-batch-file-to-open-multipl...

my comments are at the bottom

i started this reply at 2 am now its 5:30 am here so there for sure are many mistakes in it

i just hope it help u a bit Smile

if you still dont get something i could show you on skype via screen sharing or something if u care so much

Log in or register to post comments