You are here

Anki 2.1 Portable

7 posts / 0 new
Last post
AirApps
Offline
Last seen: 1 year 11 months ago
Joined: 2019-11-02 04:27
Anki 2.1 Portable

Hello,

Program: Anki 2.1

License: Open Source/GPLv3

Description: Anki is a program which makes remembering things easy. Because it's a lot more efficient than traditional study methods, you can either greatly decrease your time spent studying, or greatly increase the amount you learn. Powerful, intelligent flash cards.

Website: https://apps.ankiweb.net/

Thanks.

Das Plum
Offline
Last seen: 1 week 4 days ago
Joined: 2014-01-25 09:36
It would be nice to have it.

It would be nice to have it.

bhuripanyo
Offline
Last seen: 3 years 8 months ago
Joined: 2021-03-07 20:17
I second that!

I second that! Biggrin

I have just installed PortableApps, specifically in the hope of being able to use this program wherever I go...

Many features of the desktop Anki are not available in AnkiWeb Sad

leondante
Offline
Last seen: 3 years 1 week ago
Joined: 2021-11-14 16:51
Would be amazing.

I did the same that the friend here who expected to have this amazing app but portable. Where I'm going to study is forbidden to take laptops or using devices that are not provided by them, like mobile phones (is a military academy). So I only can use the computers they have there at their library, but not installing apps. I found this thread in reddit about making anki portable and I'm pasting it here, I'm going to test it right now. Hope it works:

Hey guys,

because I couldn't find a good tutorial for using anki in portableapps.com , here a quick tutorial:

1. Create a folder named "Ankiportable" in your PortableApps folder. In it create a subfolder called "App".

2. Download Anki and either unpack the .exe with 7zip or just use your local installation and move it into the "App" folder (I had to use Anki 2.0, the new Anki had issues with "connecting to local port")

3. In the folder "App" create a folder called "AppInfo".

4. In the folder "AppInfo", create a file called "appinfo.ini". Paste this into that file:

[Format]
Type=PortableApps.comFormat
Version=3.5

[Details]
Name=Anki Portable
AppID=AnkiPortable
Publisher=Anki
Category=Education
Description=Flashcard App
Language=Multilingual
InstallType=English

[Version]
PackageVersion=2.0
DisplayVersion=2.0

[Control]
Icons=1
Start=AnkiPortable.exe
BaseAppID=%BASELAUNCHERPATH%\AnkiPortable.exe

5. Create in the folder "AppInfo" a subfolder called "Launcher".

6. In there create a file called "AnkiPortable.ini" and paste this into the file:

[Launch]
ProgramExecutable=anki.exe
CommandLineArguments='-b /PortableApps/Anki/App/Userdata/'

7. Now use the PortableApps.com Launcher and create the Launcher for Anki (use as directory the Ankiportable base dir).

8. Create a subfolder in your "App" folder called "Userdata". That's where Anki will store your userdata. You can copy your userdata there.

9. Have fun using Ankiportable!

SAUCE: https://www.reddit.com/r/Anki/comments/bqs0gd/how_to_make_anki_portable/

leondante
Offline
Last seen: 3 years 1 week ago
Joined: 2021-11-14 16:51
I've made it.

Hello again. I finally made it! Using the previous tutorial I copied/pasted before plus these indications that you can find in the official ankiweb docs. I'm pasting it from there. Hope this helps others to using both of these amazing applications. If you substitute the word in the commands for the "AnkiPortable.exe" file to the "AnkiPortable.bat" file it works perfectly, but you have to manually edit those couple of files in order for it to work:

Running from a Flash Drive
On Windows, Anki can be installed on a USB / flash drive and run as a portable application. The following example assumes your USB drive is drive G.

Copy the \Program Files\Anki folder to the flash drive, so you have a folder like G:\Anki.

Create a text file called G:\anki.bat with the following text:

g:\anki\anki.exe -b g:\ankidata

If you would like to prevent the black command prompt window from remaining open, you can instead use:

start /b g:\anki\anki.exe -b g:\ankidata
Double-clicking on anki.bat should start Anki with the user data stored in G:\ankidata.
The full path including drive letter is required - if you try using \anki\anki.exe instead you will find syncing stops working.

Media syncing with AnkiWeb may not work if your flash drive is formatted as FAT32. Please format the drive as NTFS to ensure media syncs correctly.

SAUCE: https://docs.ankiweb.net/files.html

dzeruel
Offline
Last seen: 1 year 11 months ago
Joined: 2022-12-07 06:11
"installing" Anki without admin rights

Hello!

My solution solves the problem of running Anki 2.1 without installing, without elevated rights on Windows. This solution won't add it to the portable apps launcher or won't repackage it... it just runs it without having to actually install it in a very simple few steps:

  1. Download Anki 2.1, I have downloaded Qt5 version... I haven't tested if this works on Qt6 https://apps.ankiweb.net/

  2. Right click and unpack the installer .exe in my case it's (anki-2.1.54-windows-qt5.exe). I have used 7zip to unpack it to a folder.

  3. If you'd run the anki.exe now it would run into errors therfore we do the following: Press Win + R, type in "cmd", enter, type in the following command:

    echo auto > %APPDATA%\Anki2\gldriver

(Reference: https://docs.ankiweb.net/platform/windows/display-issues.html#qt5)

  1. Now you can run anki.exe, Enjoy!

For me it works well and I was able to sync it with ankiweb and I could even install my plugins. It hasn't crashed yet.

Note: I think we are one step away from packaging it for portable apps launcher, but I don't know how to do it. Mind you this is a very barbaric way of running anki I don't know if you can properly uninstall it, but we'll cross that bridge when we get there... :)

Let me know if you run into errors, maybe I can help.

infinity3
Offline
Last seen: 2 weeks 3 days ago
Joined: 2022-10-01 02:28
Working on Windows 11, Qt6 version.

Making Anki Portable:

1. Download Anki installer (from https://apps.ankiweb.net/) and extract the installer file to a folder (using 7-zip).

2. Run cmd.exe and run the command given in https://docs.ankiweb.net/platform/windows/display-issues.html, corresponding to the Qt version you have downloaded.

For Qt5:
echo auto > %APPDATA%\Anki2\gldriver

For Qt6:
echo software > %APPDATA%\Anki2\gldriver6

3. Now, running Anki.exe will work portably, syncs with ankiweb, addons can be installed and user data will be stored in %Appdata%\Roaming\Anki2\

Optional:

4. If you want to use a custom folder location for user data, first create a shortcut to Anki.exe, right-click on the shortcut, choose Properties, select the Shortcut tab, and add "-b \path\to\data\folder" after the path to the program, which should leave you with something like

"C:\Path\to\anki.exe" -b "C:\Path\to\anki\data\folder"

https://docs.ankiweb.net/files.html#startup-options

5. Now Run the modified Anki shortcut. It will run Anki portably and Anki will store the user data to the path specified in step 4. Don't directly run Anki.exe, it will store user data to %Appdata%.

Log in or register to post comments