You are here

Need help making KVIrc portable

7 posts / 0 new
Last post
MasterGoodheart
Offline
Last seen: 16 years 11 months ago
Joined: 2007-02-20 23:52
Need help making KVIrc portable

I've been trying to make a launcher for KVIrc (its an open-source IRC client), but having problems. Firstly, so everyone knows what I did, I installed the program first onto my computer, made a copy of the program folder, then uninstalled it. When you run it for the first time it comes up with a Config wizard in which you select a IRC nickname (which can be changed later), the places you want to put its config files and downloads, and some other things. After that whenever it runs, it looks for its .ini file in your Windows folder which which stores the location of your config files. In fact if it can't find that ini file it comes up with the wizard again.

Now I had a look on the forum and found the handy PAT. After setting up my portable NSIS (which I have no knowledge in) I had a go at editting the template to do everything, but I didn't know how to make it look somewhere else for that ini file or how to make it go into the windows folder and remove it if required. As far as I got was making a launcher that just opened the progam's exe and nothing else. Also if I could store that somehow on my flash drive, I don't know how to make it look for a relative directory.

Sorry for my questions (and I'm a bit tired so it might not make perfect sence), I just have run out of ideas of how to fix this (I've been trying for a few hours).

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
.

I've posted some example code at the PortableApps Pastebin.
If you want to change the location, you will have to find out how to do that in the KVIrc docs.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

MasterGoodheart
Offline
Last seen: 16 years 11 months ago
Joined: 2007-02-20 23:52
Thanks

Thanks man, but where should I put this code in PAT 1.4?

EDIT: Oops I meant PAT in this post and in my original topic...

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Wherever you want it

It basically checks if the INI exists then deletes it if it exists. You'd probably want it after the Exec 'Whatever' part.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

cbeck747
Offline
Last seen: 17 years 1 month ago
Joined: 2007-03-05 16:06
I'll help if I can

I'm new to portable apps but not necessarily to programming and I've used Kvirc on linux then windows since about '99.

I, too, would like to see it made portable. Since I've just gotten my digital life portablized Smile I have most of what I want except Kvirc. I'll take a look at it myself but this will be my first attempt.

Let's keep this thread going to share info.

Later, Chris

~It is what it is!~

~It is what it is!~

MasterGoodheart
Offline
Last seen: 16 years 11 months ago
Joined: 2007-02-20 23:52
Hi Chris, I sorta gave up

Hi Chris,

I sorta gave up trying to do this...I really liked KVIrc (including the cool interface) but it seems too complicated to make portable (I still don't know why they don't store the config file in the actual main directory...) although after seeing your reply I had another good look around the official website. I found someone asking in the forum why they don't have the ini file in the program directory, and the latest dev build has a 'portable install' option when the wizard first runs!!

Here is the windows link to it: ftp://ftp.kvirc.net/pub/kvirc/snapshots/win32/KVIrc-3.2.6-dev-20070118.exe

And they have versions already done for various linux distos (and ...mac...):
ftp://ftp.kvirc.net/pub/kvirc/snapshots/

Good luck Biggrin

Inkpot
Offline
Last seen: 16 years 9 months ago
Joined: 2007-07-09 15:16
The version for windows

Nevermind....found it. Blum

Inkpot

Log in or register to post comments