Hi Support Team,

After uninstalling my application the system required to preform reboot (on windows). I didn't rebooted the station and instead re-installed the package. After the installation completed I rebooted the station and some files deleted. I guess that this files were suppose to be deleted from my first installation after I Uninstalled it.

So my question is if there is anyway to prevent new installation in case a reboot was required from previous un-installation operation. Is BITROCK updating some flag/registry key indicating that reboot is required so we can check before we installing again ?

Thanks, Ronen

asked 28 Feb '13, 12:09

Ronen's gravatar image

accept rate: 0%

Currently no flag is set by the installer that a reboot is required.

InstallBuilder stores data in PendingFileRenameOperations key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager to set files to be deleted. Those keys are read at Windows boot time to delete the files and removed.

You can check for existence of this registry key, however, it may be there in other cases as well - so it may be used as a warning at most, and may trigger the warning even if uninstaller for your application was not run.

Usually locked files remain if uninstallation was performed while application was running. It may be a better idea to perform a check if the application is running by doing:

<preUninstallationActionList> <showWarning> <ruleEvaluationLogic>or</ruleEvaluationLogic> <text>Please stop ${project.shortName} before proceeding with the uninstallation.</text> <ruleList> <fileIsLocked> <path>${installdir}/myapp.exe</path> </fileIsLocked> <fileIsLocked> <path>${installdir}/service.exe</path> </fileIsLocked> </ruleList> </showWarning> </preUninstallationActionList>

You can also ask the user if he/she wants to continue with the uninstallation by using <showQuestion> action.


answered 28 Feb '13, 12:39

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 28 Feb '13, 12:09

Seen: 12,055 times

Last updated: 28 Feb '13, 12:39