You are here

directory move not happening when i change location--?

9 posts / 0 new
Last post
sanji765
Offline
Last seen: 10 years 10 months ago
Joined: 2013-05-10 14:31
directory move not happening when i change location--?

hai,i am creating portable apps,i created 3 so far,but if i copy it to a new directory,then run it,the directorymove dosnt happen,instead,the main app recreates its settings on startup,so why this beahviour,if i run it from the same location,it works flawelessely.(it moves the data to and fro correctly)

outline=directory move gets broken if i change path(i.e the app is not portable)

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 1 hour 38 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
We can't really help you

We can't really help you unless you post the [DirectoriesMove] section that isn't working (better yet, post the whole contents of AppInfo\Launcher\AppNamePortable.ini.

It would also be worth moving this post to the Portable App Development section so it gets the correct attention it needs.

sanji765
Offline
Last seen: 10 years 10 months ago
Joined: 2013-05-10 14:31
thanks for helping,as always here is the code

[Launch]
ProgramExecutable=yowindow\yowindow.exe
DirectoryMoveOK=yes
SupportsUNC=yes
WorkingDirectory=%PAL:AppDir%\yowindow

[DirectoriesMove]
roaming\YoWindow=%APPDATA%\YoWindow
programdata\YoWindow=%ALLUSERSPROFILE%\YoWindow

[Activate]
Registry=false

[RegistryKeys]
yowindow=HKCU\Software\Seifert\WinDirStat

[RegistryCleanupIfEmpty]
1=HKCU\Software\Seifert

--this file is a modified version of another file,thats why you see all the unrelated registery stuff

if i change the code to
[DirectoriesMove]
-=%APPDATA%\YoWindow
-=%ALLUSERSPROFILE%\YoWindow

it preserves my copy in the datadir,but still dosnt copy the datadir to the host p.c,it seem to copy empty directories,and when i exit,clean the host pc

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 1 hour 38 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
Can't see anything obviously

Can't see anything obviously wrong there, so I'm not sure what is happening.

Regarding the -= form of [DirectoriesMove] that is the way it is meant to work. It will never copy anything to or from the host PC, it will only backup what is already on the host PC, then delete those directories when closing and restore what was previously backed up.

sanji765
Offline
Last seen: 10 years 10 months ago
Joined: 2013-05-10 14:31
i am uploading a tiny app for bug identificaton

i am uploading an app,that i made portable called digital janitor=
https://www.dropbox.com/s/tgx9zw2qr2hkt3k/digitl%20janitor.7z?v=0rc-s

(its less than an mb,its a app that sorts directories)

run the program,go to %appdata%,check for a folder called digital janitor,and if that file contains a text file named "yesmove.txt",then the directory move was sucessfull,otherwie try to identify whats going wrong here,all the apps i created exhibits this problem,so clearly i am doing something wrong

sanji765
Offline
Last seen: 10 years 10 months ago
Joined: 2013-05-10 14:31
i have found solution

i have moved my application development to "spoon studio",now can make an app portable in an hour,without any bugs,and i can save the app data to the program folder itself,i have extensively tried all the platforms and spoon-studio is the best,the only downside is it costs 6000$ ,LOL

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 1 hour 38 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
Just be aware that (apart

Just be aware that (apart from the extreme cost) solutions like that do have other drawbacks too.

For starters, automated virtualization tools like Spoon, ThinApp, Cameyo etc. are very hit & miss as to whether the end product actually works.

Also it is usually illegal to redistribute almost anything made with those virtualization tools unless you pay even more money. For Spoon the cheapest licence ($4800) includes unlimited end-user distribution, but you have to be the owner/developer of the base app, otherwise it is $6000 and limited to 25 people who can use the app.

It is nice to see that they provide a free solution for open source developers, though.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
Curious

Is this or the yowindow program that displays the weather on your taskbar? If so are you only making it for you? as it is a commercial product.

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

sanji765
Offline
Last seen: 10 years 10 months ago
Joined: 2013-05-10 14:31
have removed link

yes,its for personal use,yes its the weather app

Log in or register to post comments