You are here

(00)/ Question...

4 posts / 0 new
Last post
sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 4 months ago
Joined: 2007-02-28 11:37
(00)/ Question...

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?

Travis Carrico
Offline
Last seen: 15 years 7 months ago
Developer
Joined: 2006-10-22 00:30
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”

OliverK
OliverK's picture
Offline
Last seen: 3 years 1 month ago
Developer
Joined: 2007-03-27 15:21
Yes, it actually, deletes

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

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

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 4 months ago
Joined: 2007-02-28 11:37
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?

Zoop

Log in or register to post comments