smatte
25th November 2005 16:27 UTC
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?
CraigF
25th November 2005 17:05 UTC
[scdisc->nsisdisc]
kichik
26th November 2005 12:04 UTC
You should allow administrators only.
dienjd
28th November 2005 22:43 UTC
Can you please post your method of writing to PendingFileRenameOperations? I haven't been able to find documentation on it.
smatte
29th November 2005 00:59 UTC
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.
dienjd
29th November 2005 18:00 UTC
Thanks for the help! I should have been able to figure it out, but I was fixated on searching for "PendingFileRenameOperations" in the manual.