You are here

Carefull with NSIS..

6 posts / 0 new
Last post
LOGAN-Portable
LOGAN-Portable's picture
Offline
Last seen: 11 years 5 months ago
Developer
Joined: 2007-09-11 12:24
Carefull with NSIS..

I was working on a way to COPY and REMOVE folders in Application Data when I accidentally removed ALL sub folders Application Data while I thought I removed only Application Data\testfolder.

Even my quick launch bar is now gone Sad

Some of NSIS are very sketchy and googling didn't help either. Well I found a 'solution' but that wiped my whole Application Data folder clean. I have no idea how to restore it or what will happen if I reboot...

First I thought it was because I forgot quotes but also after adding quotes it still removed all folders in Application Data instead of only one...

Beware...

MarkoMLM
MarkoMLM's picture
Offline
Last seen: 8 years 8 months ago
DeveloperTranslator
Joined: 2006-01-16 04:08
Not really a big problem ...

... the settings for the quicklaunchbar are normally situated here:
c:\Documents and Settings\[username]\Application Data\Microsoft\Internet Explorer\Quicklaunch.

If You've have only moved this folder, search it an than copy it back to this place and all will be fine Smile

If You don't find the old folder, create a new one and create/copy all wanted links in this folder.

And Yes ... backups before tests with copy/move/delete batches (what kind ever) are a very, very good idea Smile

Regards
Marko

Paid for Software more or less?
What You need is OSS!

LOGAN-Portable
LOGAN-Portable's picture
Offline
Last seen: 11 years 5 months ago
Developer
Joined: 2007-09-11 12:24
I copied quicklaunch back

I copied quicklaunch back from another user.

The real problem is that I cannot find the correct way to delete a single folder with application data and I cannot find the correct help in the NSIS helpfile or online.

Im fiddling for a couple of days to get copy, move and delete working correct. In some instances I ended up copying a folder and when I rerun the exe it copied a folder inside the first folder I copied (??). also ran into a problem of folder and files used no long filenames, so "New Text Document.txt" became "NewTextD.txt", etc.

I don't find the file handling of NSIS very intuitive and wonder if I should switch to autoit to make it.

Anyway, thanks for the suggestion.

Simeon
Simeon's picture
Offline
Last seen: 9 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
what eyactly

was your comand?

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

LOGAN-Portable
LOGAN-Portable's picture
Offline
Last seen: 11 years 5 months ago
Developer
Joined: 2007-09-11 12:24
I found the problem I think.

I found the problem I think. I used:

RMDir /r "$APPDATA\$REMOVEDIR"

Where $REMOVEDIR was accidenty left blank Sad

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 6 months ago
Developer
Joined: 2006-12-06 18:07
That would do it, if it's a

That would do it, if it's a null value, NSIS would just see the $APPDATA and the RMDir /r recursively deletes everything under the directory.

The developer formerly known as ZGitRDun8705

Log in or register to post comments