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
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...
... 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
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
Regards
Marko
Paid for Software more or less?
What You need is OSS!
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.
was your comand?
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
I found the problem I think. I used:
RMDir /r "$APPDATA\$REMOVEDIR"
Where $REMOVEDIR was accidenty left blank
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