Archive: Power User and PendingFileRenameOperations


Power User and PendingFileRenameOperations
When installing with a power user and some files are locked, my installer mark those files for rename on reboot but power user are unable to write in PendingFileRenameOperations registry key. Is there any workaround or should I allow intallation only to administrator?


[scdisc->nsisdisc]


You should allow administrators only.


Can you please post your method of writing to PendingFileRenameOperations? I haven't been able to find documentation on it.


http://msdn.microsoft.com/library/de...movefileex.asp


If your file is in use:

# Get a temp file name
GetTempFileName $0
# Install
SetOutpath $INSTDIR
File /oname=$0 "something.dat"
Rename /REBOOTOK "$INSTDIR\0" "something.dat"

It will add an entry to PendingFileRenameOperations.


Thanks for the help! I should have been able to figure it out, but I was fixated on searching for "PendingFileRenameOperations" in the manual.