You are here

How to make app portable?

13 posts / 0 new
Last post
tony200910041
Offline
Last seen: 10 years 3 months ago
Joined: 2013-04-02 07:44
How to make app portable?

Sorry it seems that this question is a bit redundant but I really get troubled.
I read so many similar topics and the beginner manual, but there is still a problem:
how to redirect the settings into the portable directory instead of leaving them in the system?
I tried making apps in PortableApps format and replaced the files in other apps with my app, or build a directory with the portable directory structure, but they are still useless.
Please help. Thanks.

PS sorry for my poor English. I hope someone will understand and help me. Thanks.

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Depends

This depends on the app. Some use environment variables, some commandline switches. Some have forced places they put their stuff and you have to copy it to the usb drive.

What app are you talking about?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tony200910041
Offline
Last seen: 10 years 3 months ago
Joined: 2013-04-02 07:44
For example,if the app puts

For example,
if the app puts the data into %AppData% and %LocalAppData%, what should I do to redirect those files into my directory? (What I exactly need to edit?)

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 1 week 6 days ago
DeveloperModerator
Joined: 2008-07-24 18:46
Manual

Read the launcher manual, paying particular attention to the FileWrite section.

tony200910041
Offline
Last seen: 10 years 3 months ago
Joined: 2013-04-02 07:44
It seems that I neglected the

It seems that I neglected the part of FileWriteN.
So what should I exactly need to change? Or which INI file should be changed? I still get confused. Thanks for help.

This time I am making an app called Greenshot. The data will be saved into %AppData% and %LocalAppData%.
So what should be different from other apps? (What should I exactly add to redirect the files?)

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
as stated,

that depends on what the app you want to make portable uses. To find out what the app uses, you can use the process explorer app from here.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tony200910041
Offline
Last seen: 10 years 3 months ago
Joined: 2013-04-02 07:44
I am sorry that I still don't

I am sorry that I still don't understand.
Now I am dealing with an application called CoffeeZip.
It stores its settings in %AppData%.

After I read the manual, I still get confused with the [FileWriteN] part.

So I put CoffeeZipPortable.ini in \App\AppInfo\Launcher.

I type:
[Launch]
AppName=CoffeeZip
ProgramExecutable=\CoffeeZip\CoffeeZip.exe
SingleAppInstance=true
DirectoryMoveOK=yes

[Activate]
Registry=true

, then what else should I enter? Please help.

tony200910041
Offline
Last seen: 10 years 3 months ago
Joined: 2013-04-02 07:44
Please help. I really get

Please help. I really get stuck here. Thanks.

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 10 months ago
Developer
Joined: 2008-09-30 19:18
Don't redirect, just move directories

Look at the DirectoriesMove section in the manual.

tony200910041
Offline
Last seen: 10 years 3 months ago
Joined: 2013-04-02 07:44
so I should

so I should enter:
[Launch]
AppName=CoffeeZipPortable
ProgramExecutable=CoffeeZip\CoffeeZip.exe
SingleAppInstance=true
DirectoryMoveOK=yes

[Activate]
Registry=true

[DirectoriesMove]
CoffeeZip=%AppData%\CoffeeZip

and that's all? Thanks for your reply.

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 10 months ago
Developer
Joined: 2008-09-30 19:18
Mostly

It looks like DirectoriesMove is good, but I don't see any registry handling. Did you forget to include it? You should delete the [Activate]Registry=true lines if you're not doing anything in there.

tony200910041
Offline
Last seen: 10 years 3 months ago
Joined: 2013-04-02 07:44
In fact no registry. I think

In fact no registry. I think it is better to delete it.

RobertMiles
Offline
Last seen: 2 months 1 week ago
Joined: 2012-12-27 07:27
as for video tutorial?

I think the easiest way to learn how to create portable applications - it is tutorial. On portableapps uou can find many descriptions, techniques, etc.
As for me, at first, Im looking for video tutorials. Then I can understand how works the application.
I can advise to look for lessons about portableapps, thinapp, boxedapp, cameyo and other popular tools

Log in or register to post comments