I made
Geany IDE into yaP
Download the
FULL Installer from
HERE and install to e.g. C:\Geany - it (Un)Installs from the registry cleanly and only leaves the folders mention below, which are easlily removed.
Skip the 'shortcuts' and 'Language' files (
etc\locale ~ 25 MB) and your left with ~16 MB.
Copy the entire 'Geany' directory to another location and then uninstall. You can exclude the 'Geany.lnk' and uninstaller from copy.
Delete the folders/directories
%APPDATA%\gtk-2.0 and
%APPDATA%\geany also the file
%USERPROFILE%\.recently-used.xbel
The 'geany' config folder will be (re)created (as 'store') in the root of the portable Geany via a commandline arg (-c) which defines the current config location as opposed to 'Global' and is relative to Geany's root.
Place the yaP exe and ini at the root of the Geany directory.
That's about it, from this point on yaP handles the copying/moving around of the files/dirs.
Properties used:
Code: Select all
[GENERAL]
; general launcher settings
application=bin\Geany.exe
applicationX64=
; main app to run (absolute/relative path). REQUIRED.
; "App\MyApp.exe", "..\MyApp.exe", "%PROGRAMFILES%\MyApp.exe", "C:\MyApp.exe"
commandline=-c store
; command line parameters to pass to the main app. Example: "/nosplash"
[DIRECTORIES]
; main app's settings directory to backup/restore (absolute path)
store\gtk-2.0=%APPDATA%\gtk-2.0
[FILES]
; main app's setting files to backup/restore (absolute path)
store=%USERPROFILE%\.recently-used.xbel
The files/dirs are copied/moved back/forth to/from the 'store' sub-directory.
I had 1 issue where I couldn't set/define the path variable (without a batch) as is needed for MinGW:
e.g.
Code: Select all
PATH=%~d0\Devel\MinGW\bin;%PATH%
or
PATH=%~dp0..\..\MinGW\bin;%PATH%
Either/Both will work, however I couldn't figure out a way in the yaP.ini (am i missing something).
Here's an example of the batch script I've used; which handles all the copying/(re)moving of files/dirs AND the path variable:
Code: Select all
@echo off
cd /d %~dp0
PATH=%~d0\Devel\MinGW\bin;%PATH%
if exist %APPDATA%\gtk-2.0 (
move %APPDATA%\gtk-2.0 %APPDATA%\gtk-2.0.bak
)
if exist %USERPROFILE%\.recently-used.xbel (
move %USERPROFILE%\.recently-used.xbel %USERPROFILE%\.recently-used.xbel.bak
)
xcopy /iy %~d0\Devel\Geany\store\gtk-2.0 %APPDATA%\gtk-2.0
copy /y %~d0\Devel\Geany\store\.recently-used.xbel %USERPROFILE%\.recently-used.xbel
start /wait Geany.exe -c store
xcopy /iy %APPDATA%\gtk-2.0 %~d0\Devel\Geany\store\gtk-2.0
rd /s /q %APPDATA%\gtk-2.0
REM ~ del /f /q %USERPROFILE%\.recently-used.xbel
move /y %USERPROFILE%\.recently-used.xbel %~d0\Devel\Geany\store\.recently-used.xbel
move /y %APPDATA%\gtk-2.0.bak %APPDATA%\gtk-2.0
move /y %USERPROFILE%\.recently-used.xbel.bak %USERPROFILE%\.recently-used.xbel
This batch is actually a modified version (more users aware) of what I use as I don't copy the files back/forth but rather remove them.
Thanks
tproli for your work on the yaP project; it's a little jewel of an app.
~Ruby