This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Windows Portable Version of Kexi

Tags: None
(comma "," separated)
Stephen Leibowitz
Registered Member
Posts
54
Karma
0

Windows Portable Version of Kexi

Fri Aug 30, 2019 5:21 pm
I have written a batch file to run Kexi from portable storage (a removable drive). It makes portable the AppData\Local folder. The batch file should be on the same drive as Kexi, but does not have to be in the same folder.
Code: Select all
cd /d  %~d0\3.2.0 Preview 2019-04-01 (e2eb6f465)
:: This will set USERPROFILE to the "3.2.0 Preview 2019-04-01 (e2eb6f465)" folder.
:: The program uses this as the parent for the AppData\Local folder.
:: An alternative is to set USERPROFILE to a folder on the same drive,
:: but outside of the "3.2.0 Preview 2019-04-01 (e2eb6f465)" folder.
SetLocal
set USERPROFILE=%CD%
REM set USERPROFILE=%~d0\
START "Kexi"  /D bin  kexi-3.2.exe
The current stable version of Kexi is 3.2.0. The binary files do not come in a 7z archive. I tried extracting the files from the .exe installer using Universal Extractor 2, but it did not perform a complete extraction. So I installed Kexi to the hard disk, copied the installed files/folders to a removable drive, and uninstalled from the hard disk (“install/copy/uninstall”).

When you start a new project, Kexi will propose a location and name for the new project file. It may start with a drive letter, such as H: . Drive letter assignments can change for removable drives. To store to the same removable drive as the Kexi program, the user should delete an explicit drive assignment. In this case, delete H: . To increase the separation from the code, the user can specify a location for the project file that is outside the Kexi program folder.
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
Thanks Stephen!
Moved to a Discussion forum since your idea is pretty completely implemented :)

You mention that we do not offer a zipped files with KEXI. Yes, they are not listed in releases but there are .7z in the snapshots: https://community.kde.org/Kexi/Snapshots#Windows

It may be a good idea to incorporate some portable goodies from you in the zipped version.

Regarding the drive assignments, it applies to any software, not just portable. But since KEXI uses relative paths whenever possible, and the document stores everything in one file (in case of file databases), changing letters is not a problem. With exception of shortcuts (the Welcome screen).

If you see any ideas for improvements feel free to discuss it or share (https://community.kde.org/Kexi/File_a_bug_or_wish).

Best regards!


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]