You are here

MoveFiles.nsh

5 posts / 0 new
Last post
vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 1 month ago
Developer
Joined: 2010-02-13 17:10
MoveFiles.nsh

I am a bit confused. If I want to use this in the installer is it already there or do I hav to call it from the installer? Also if the file sin the directory I wish to move them to already exist does it crash? I do not want to overwrite current file rather merge/update the files in the directory into a different possibly already created directory before the install of an update takes place.

I hope this makes sense?

OliverK
OliverK's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2007-03-27 15:21
Can't you just do Rename

Can't you just do Rename $Exedir\Data\settings\*.* $ExeDir\App\Program\config?

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

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 1 month ago
Developer
Joined: 2010-02-13 17:10
Can I?

Will that basically accomplish a move / copy of a directory and possible merge into another directory? I am looking at doing this within PA i.e. I just updated RedNotebook, and with the update users will manually need to move a directory. So basically I was going to try to include this in the install, however if there are already files there by their doings I do not want to verwrite them...follow me?

Also while you are around I need to speak with ya about PNotes.

“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

OliverK
OliverK's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2007-03-27 15:21
I'll be on IRC tomorrow night

I'll be on IRC tomorrow night I think.

It should move the files for you. If you try to merge it though, the files will get overwritten. You should try to do this with the INI for the installer. You should have a preserve directory option. I'm not sure how exactly it works, but try it Smile

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

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 1 month ago
Developer
Joined: 2010-02-13 17:10
OK

Great as I have an idea to throw at you and since you are the Guru of PNotes want your approval first Smile I have done the preserve thing, see in the first release data was saved to app\user Now to conform with PA I have it going to Data\AppName\user. So after the second release things should be ok but in case people decide to save back to app\user I wanted to be able to merge them into the correct place....oh well hopefully the warning I placed in the update will be read.

Thanks and oh BTW nice homepage Wink

“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

Log in or register to post comments