You are here

Appdata and Portable app Development

6 posts / 0 new
Last post
VizuaaLOG
Offline
Last seen: 11 years 2 months ago
Joined: 2013-06-20 13:03
Appdata and Portable app Development

I am trying to create a portable app for a Open Source code editor called brackets. So far I think I have gotten everything working except the AppData part. The code editor supports extensions so when the program is launched for the first time it creates some folders in AppData below are the folders it creates

AppData/Brackets/

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 1 month 3 weeks ago
DeveloperModerator
Joined: 2008-07-24 18:46
DirectoriesMove

All you need is a DirectoriesMove section in your launcher. See here for details.

You probably want something like

%PAL:DataDir%\Brackets=%APPDATA%\Brackets

VizuaaLOG
Offline
Last seen: 11 years 2 months ago
Joined: 2013-06-20 13:03
RE: DirectoriesMove

Thanks for the reply. That worked brilliantly however when the application is closed it removes the created folder inside appdata which is brilliant but it doesn't copy any new data back into the brackets/data folder. For example i run the program installed a new extension which is now in appdata then when i close the program it deletes the appdata/brackets folder without copying the newly created folder with the extension into brackets/data.

VizuaaLOG
Offline
Last seen: 11 years 2 months ago
Joined: 2013-06-20 13:03
My Launcher.ini

Here is my launcher .ini file

http://pastebin.com/Fy4jfByi

This moves the directory fine however any changes made when it is in appdata is just deleted and not copied back to the data folder.

judeah666
Offline
Last seen: 10 years 6 months ago
Joined: 2009-03-28 15:53
Copy The Created File

Copy The Created File First to %PAL:DataDir%\

"YourAppPortable\Data\"

VizuaaLOG
Offline
Last seen: 11 years 2 months ago
Joined: 2013-06-20 13:03
What do you mean? Sorry but i

What do you mean? Sorry but i don't understand what file to copy first.

Log in or register to post comments