Originally Posted by Afrow UK
There's no code in there to set it back so I will add it when I have time.
Cool - thanks
Originally Posted by Alfaromeo
Is their any option to give search path , instead of individual files. This will ease listing files one by one
Nope - I wouldn't recommend this, either.
Let's say you need to overwrite a few files in 'c:\windows\'... would you honestly want to feed LockedList 'c:\windows\*.*' and have it throw up pretty much every locked file.. even though you might only want to overwrite two of them?
I think your best bet is to create a list of the files you want to overwrite - either by A. hardcoding this in the installer by hand or by a pre-installer build-installer or B. extracting your files to a temporary location and use any of the FindFirst / FindNext / bits and pieces - and feed that to LockedList
The 'B' method could be combined with lockedlist directly.
for each destination path (
extract the files that go to a certain path to a temporary location
loop over the extacted files, and for each file (
add the 'destination path\filename' to LockedList
The temporary location can be re-used with e.g. CopyFiles to get the files to the destination path without having to re-extract them from the installer.