PortableApps.com Platform and Suite 1.6 have been released.

FAR Manager Portable

VAPOR's picture
Submitted by VAPOR on September 12, 2009 - 10:44am

Anyone wants FAR portable? It's cool "Norton commander"-like file manager. Was shareware but now is open source. It's not bad, because supports plugins. Please go http://www.farmanager.com/index.php?l=en

P.S. Sorry my bad english... Hello from ukraine! Smiling


( categories: )

yes nice

I have it for some zime on some of my sticks. Seems to work well , thought it is not in paf format so far, but does the job from the stick.

Otto Sykora
Basel, Switzerland

Maybe someone likes to make

Maybe someone likes to make portable version. As for me, it's good candidate to be portabled! Smiling

should be portable

on it sown.
I have to admit , I di dnot run the regshot on this one, but it is otherwise portable as it is. I have it on my stick, all works fine.

Just copy it to your stick and run it.

Otto Sykora
Basel, Switzerland

Registry load/save + example NSIS script

FAR Manager, in it's current format, unfortunately not portable by nature - almost all of it's settings written to the registry. If you check out the latest stable release (http://www.farmanager.com/files/Far20b1263.x86.20091204.7z), you may notice the two batch files (SaveSettings.cmd, RestoreSettings.cmd).

Using these batch files, FAR Manager can be run in portable mode, however, additional plugins may or may not using the registry, for example as the Colorer does.

Or, feel free to use this example script (basically it's the NSIS rewrite of the batch files mentioned above, except that preserves the settings of the installed Far (if any)):

;FarPortable.nsi

;the name of the launcher
!define APPNAME "FarPortable"

;registry paths
!define REGPATHCU "HKEY_CURRENT_USER\Software\Far2"
!define REGPATHLM "HKEY_LOCAL_MACHINE\Software\Far2"
!define REGPATHPC "HKEY_CURRENT_USER\Software\Far2\PluginsCache"

;registry files
!define REGSAVECU "FarSaveCU.reg"
!define REGSAVELM "FarSaveLM.reg"

;including the registry macros
!include "Registry.nsh"

;application settings
Caption "${APPNAME}"
Icon "${APPNAME}.ico"
Name "${APPNAME}"
OutFile "${APPNAME}.exe"
RequestExecutionLevel user
SilentInstall silent

;a variable indicates an existing Far installation
Var FarInstalled

;the main section
Section

;saving the original settings
${registry::KeyExists} "${REGPATHCU}" "$FarInstalled"
StrCmp "$FarInstalled" "0" SaveOriginal SaveOriginalEnd
SaveOriginal:
 ${registry::MoveKey} "${REGPATHCU}" "${REGPATHCU}_" "$0"
 ${registry::MoveKey} "${REGPATHLM}" "${REGPATHLM}_" "$0"
SaveOriginalEnd:

;restoring the settings
IfFileExists "${REGSAVECU}" RestoreSettings RestoreSettingsEnd
RestoreSettings:
 ${registry::RestoreKey} "${REGSAVECU}" $0
 ${registry::RestoreKey} "${REGSAVELM}" $0
RestoreSettingsEnd:

;executing Far
ExecWait "Far.exe"

;saving the settings
${registry::SaveKey} "${REGPATHCU}" "${REGSAVECU}" "" "$0"
${registry::SaveKey} "${REGPATHLM}" "${REGSAVELM}" "" "$0"

;restoring the original settings
StrCmp "$FarInstalled" "0" RestoreOriginal +1
 ${registry::DeleteKey} "${REGPATHCU}" "$0"
 ${registry::DeleteKey} "${REGPATHLM}" "$0"
 Goto RestoreOriginalEnd
RestoreOriginal:
 ${registry::MoveKey} "${REGPATHCU}_" "${REGPATHCU}" "$0"
 ${registry::MoveKey} "${REGPATHLM}_" "${REGPATHLM}" "$0"
 ${registry::DeleteKey} "${REGPATHPC}" "$0"
RestoreOriginalEnd:

;unloading the registry plugin
${registry::Unload}

;end of the main section
SectionEnd

;EOF

I've tested this on my system (winxpsp2), seems fine (the LOCAL MACHINE hive might be unused).