SteveRussell
6th May 2007 20:56 UTC
overwriting entire folder contents
I thought I was overwriting any previously installed files in my "id" folder, with the code below. However, I just learned that the previously installed files in fact are not being overwritten. Could I get some guidance on this, please?
; ***** definitely overwrite product id file(s) *****
SetOutPath "$INSTDIR\misc\id\"
SetOverwrite on
File /nonfatal /r "c:\myAppfolder\misc install\id\*.*"
Afrow UK
7th May 2007 15:47 UTC
If they are locked by a process than they will not be overwritten indefinitely. In which case, use /rebootok on File so that any files that could not be overwritten at time of installation will be overwritten after a reboot.
Stu
SteveRussell
8th May 2007 00:11 UTC
Thank you very much. After your reply did not seem to indicate that my code was defective, I took a closer look and found that I was running an older installer that did not reflect the code in question here. So I'm ok. Thanks!