(00)/ Question...

sergentsiler's picture
Submitted by sergentsiler on May 5, 2008 - 4:03pm

I was just looking over the source code that I was modding that came from Notepad++ and noticed that this line of code made no sense:

Delete "$INSTDIR\App\DefaultData\whatever folders after\”

I put the whatever folders thing but I was under the impression that nsis would compile this as “Take the files from "$INSTDIR\App\DefaultData\whatever folders after” and install them in the same place on the portable” at least when the installer was being created, but then I noticed the Delete in front of it and was wondering what that does, does it actually delete the files that are in the following directory or what?


( categories: )

no, to delete the files in

no, to delete the files in a directory it would need to be

Delete "$INSTDIR\App\DefaultData\whatever folders after\*.*”

or

RMDir /r "$INSTDIR\App\DefaultData\whatever folders after”

Yes, it actually, deletes

Yes, it actually deletes the files. That would be from the installer.

Good gracious! There goes a kangaroo. I must have a practice with me boomerang- Now then, slowly back
If you throw that thing at me, I'll jump right on your head.
Innit marvellous? Got a land full of kangaroos and I had to pick that one.

so ...

that line of code would delete the files in that directory when i would compile the installer if i had it say on my desktop and set to delete everything in a folder called "QWERTY"? i.e., if i checked after compiling the installer, there would be nothing in the folder?

or does that line mean it will delete everything in that folder in the destination directory? i.e., if i ran the installer after compiling it, and i had a folder in that path, it would delete as i installed, anything that happened to be in its way?

What Now!! ©Silerx / ©sergentsiler - I AM THE COMPUTER LORD! - Voodo PC aint got Nothin' on me!