Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Lock files


1 reply to this topic

YaI

YaI
  • Full Members
  • 13 posts

Posted 22 February 2007 - 06:35

How do I lock a file in a basic MSI project? An error message should pop up if the file is use during uninstallation. How do i do this?

Edited by YaI, 22 February 2007 - 06:35.


Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 22 February 2007 - 14:07

The file should be marked for deletion and removed at the next reboot even if it is in use I believe. Still, you could write an Installscript or another form of script and have it check the status of the file and trigger an appropriate message. Please remember that there are 4 different UI levels in MSI - don't create a message that pops up when the setup is run silently.
Regards
-Stein Åsmul