You are here

System32 and Fonts Directories

13 posts / 0 new
Last post
dougakins
Offline
Last seen: 4 years 8 months ago
Developer
Joined: 2009-08-17 09:34
System32 and Fonts Directories

I have an old program that I am trying to make portable for personal use. The program installs some files to the system32 directory, the fonts directory and puts an ini in the windows folder.

This is my first time creating a portable app, so forgive me if this is posted somewhere obvious, but how can you handle these issues - how can you redirect the launcher so that it looks for those sys32 files and fonts in the portable directory and not on the computer?

I've been searching for a while and haven't come up with anything - if anyone can point me in the right direction I would appreciate it.

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 7 years 5 months ago
Joined: 2006-11-18 10:26
One trick we used to use to

One trick we used to use to combat DLL Hell back in the older days of Windows 3.11 and Win95 was to put the required DLLs in the same directory as the executable. The .exe would "look" in the directory it was launched from for the DLL files and find and use them (a lot of the time). You could try that for the system32 files and the .ini but not sure it'll work for the font file.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

dougakins
Offline
Last seen: 4 years 8 months ago
Developer
Joined: 2009-08-17 09:34
The INI

My biggest issue is the ini file. The program looks for it in the Windows folder. The dlls and fonts I'm not too concerned about. The dlls will most likely be ok in the app directory.

I guess if worse comes to worse I can just have a quasi-portable app. It's just for personal use anyway.

Devo
Offline
Last seen: 5 months 2 weeks ago
Joined: 2007-09-04 14:55
Write a quick launcher

You could write a launcher to move the ini when you open it and move it back when you close it. Take a look at some of the launchers here for examples.

OliverK
OliverK's picture
Offline
Last seen: 2 years 10 months ago
Developer
Joined: 2007-03-27 15:21
wraithdu made a system for

wraithdu made a system for handling fonts in a local directory. I"m actually considering adding the code into Geany so you can have a custom code font if you'd like and still have it appear on all the computers, but I haven't decided if its worth it or not.

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

wraithdu
Offline
Last seen: 10 years 10 months ago
Developer
Joined: 2007-06-27 20:22
The code is very short and

The code is very short and easy. I wouldn't take 5 minutes to implement Smile

OliverK
OliverK's picture
Offline
Last seen: 2 years 10 months ago
Developer
Joined: 2007-03-27 15:21
yeah, I'm just wondering if

yeah, I'm just wondering if its worth it . . .
What do you think?

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Platform

FYI, it's going into the Platform, possibly in time for 2.0 (as usual, John cares about it having an interface, and also because of that, translations into all our languages) but more likely the next release.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

OliverK
OliverK's picture
Offline
Last seen: 2 years 10 months ago
Developer
Joined: 2007-03-27 15:21
and what if someone launches

and what if someone launches Geany Portable without the menu?
EDIT: I'd like to also point out this comment you made, specifically the part that I copied here:

ChrisMorganThe thing is, we have lots of people who use the Platform, but also lots of people who don't use the Platform and just launch the executables directly, or via PStart, or whatever. We'd lose quite a bit of our market if we made it so that you had to use the Platform to launch the applications.

So, you would lose some function that I would like to have. I myself don't always use the menu. Only when I'm not on my home computer and plan on being at the computer awhile.

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Quite so

Quite so; but in the platform is where it is going according to John. It may also possibly go into the Launcher, but I doubt it.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

OliverK
OliverK's picture
Offline
Last seen: 2 years 10 months ago
Developer
Joined: 2007-03-27 15:21
you're not writing it

you're not writing it (geany's) Wink

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

dougakins
Offline
Last seen: 4 years 8 months ago
Developer
Joined: 2009-08-17 09:34
Agree

I don't use the PortableApps Launcher. I haven't tried the 2.0 Platform yet, but I've been fond of Portable Start Menu - I like the simplicity of it.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Launcher ≠ Platform

The PortableApps.com Launcher is completely different from the PortableApps.com Platform. The Platform is the "start menu" thing. The Launcher is what actually runs the application and makes it portable.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Log in or register to post comments