restartmanager

Use RestartManager during Uninstall (Inno Setup)

北城以北 提交于 2020-03-15 07:18:06
问题 In Inno Setup, one can use CloseApplication to enable the Windows restart manager, and check for running instances. This, however, does not apply to the uninstallation. The setup removes all files that are not in use, and shows a message along the lines of "not all files could be removed, please remove them manually". The only way to check for running instances that seems to work during uninstall runs, is to use AppMutex. Is there a way to enable the restart manager during the uninstallation

RestartManager causes worker role to restart

依然范特西╮ 提交于 2020-01-30 07:53:05
问题 lately we encountered the problem that our Azure Worker Role service restarts almost every day. This is a huge problem for us, since our service needs around 20 minutes to initialize and these restarts can cause downtimes. I logged in to the instances via RDP and looked in the event logs to figure out what was causing these seemingly random restarts. I came accross a few entries that always preceded a restart: The service installed by the MsiInstaller is "Windows Azure Remote Forwarder". I

RmGetList() API fails when file is locked using Ez file locker but works with another file locking utility

回眸只為那壹抹淺笑 提交于 2019-12-29 01:42:06
问题 I am experiencing a strange issue with the Restart Manager API: RmGetlist(). To simulate a file locking scenario, i am making use of the following 3rd party file locking utilities: Ez file locker -http://www.xoslab.com/efl.html - File locker http://www.jensscheffler.de/filelocker The strange issue here is that, both these utilities lock a certain file, however, RMGetList() fails with an Access denied error(5) with the first file locking utility(Ez File lock) whereas it works with the second

How does Windows Installer close an application during uninstall?

試著忘記壹切 提交于 2019-12-08 07:21:12
问题 When uninstalling my application, it attempts to stop it if it's running: Sadly, the automatically closing doesn't really work and it displays this error: My applications disappear, the windows, the tray bar icon, they are all gone. But I can still see them in the process list. I'm guessing Windows sends a signal to the applications to exit gracefully and the UI does so, but there's some lingering thread preventing the processes from terminating. How does Windows Installer close an

Restart Manager behavior with windows installer

自闭症网瘾萝莉.ら 提交于 2019-12-04 05:26:34
问题 With Windows installer 4.0 and Restart Manager, would it be safe to assume that "Restart Manager" would take care of shutting down applications and hence there is no need for any sort of custom actions to handle shutdown of processes holding files, meant to be updated? Are there any exceptions where "Restart Manager" might not shut down applications? Ofcourse, i understand that when a policy such as DisableAutomaticApplicationShutdown is enforced, Restart Manager is disabled. Does the process

Restart Manager behavior with windows installer

我的未来我决定 提交于 2019-12-02 04:39:33
With Windows installer 4.0 and Restart Manager, would it be safe to assume that "Restart Manager" would take care of shutting down applications and hence there is no need for any sort of custom actions to handle shutdown of processes holding files, meant to be updated? Are there any exceptions where "Restart Manager" might not shut down applications? Ofcourse, i understand that when a policy such as DisableAutomaticApplicationShutdown is enforced, Restart Manager is disabled. Does the process to be shutdown have to satisfy some criteria to be able to be shutdown by Restart Manager? I am

RmGetList() API fails when file is locked using Ez file locker but works with another file locking utility

…衆ロ難τιáo~ 提交于 2019-11-28 14:06:16
I am experiencing a strange issue with the Restart Manager API: RmGetlist(). To simulate a file locking scenario, i am making use of the following 3rd party file locking utilities: Ez file locker - http://www.xoslab.com/efl.html - File locker http://www.jensscheffler.de/filelocker The strange issue here is that, both these utilities lock a certain file, however, RMGetList() fails with an Access denied error(5) with the first file locking utility(Ez File lock) whereas it works with the second file locking utility. What could possibly be wrong here? Why would RmGetList() fail with one file

Wix stop service on uninstall/upgrade: prevent “restart popup” (file-in-use situation)

倾然丶 夕夏残阳落幕 提交于 2019-11-28 12:42:36
I've got the issue, that when uninstalling (or upgrading) the Restart Manager is complaining about a file in use situation, and so is forcing a reboot: RESTART MANAGER: Detected that application with id 7000, friendly name 'javaw.exe', of type RmCritical and status 1 holds file[s] in use. RESTART MANAGER: Did detect that a critical application holds file[s] in use, so a reboot will be necessary. The service that RESTART MANAGER is complainig about, is a java-based service. The service (here called myservice.exe) is recursively starting java child processes: myservice.exe --run ↳ javaw.exe -

Wix stop service on uninstall/upgrade: prevent “restart popup” (file-in-use situation)

谁说胖子不能爱 提交于 2019-11-27 06:20:07
问题 I've got the issue, that when uninstalling (or upgrading) the Restart Manager is complaining about a file in use situation, and so is forcing a reboot: RESTART MANAGER: Detected that application with id 7000, friendly name 'javaw.exe', of type RmCritical and status 1 holds file[s] in use. RESTART MANAGER: Did detect that a critical application holds file[s] in use, so a reboot will be necessary. The service that RESTART MANAGER is complainig about, is a java-based service. The service (here

Windows Installer-Avoid FileinUse dialog box when Installing a package

空扰寡人 提交于 2019-11-26 15:33:06
When ever there is an update patch of files that have to be replaced with the existing files and if one of the files is being used by any of the processes, then a file in use dialog box pops-up.I wanna avoid that dialog box and get that file queued up for installation so that it can be installed at the time of system reboot. I have read that the queuing the files for update at the time of reboot is the inbuilt functionality of windows installer. Can someone suggest me the way to remove that FileInUse Dialog box. I tried setting up the "MsiRMFilesInUse" property to "0" but it didn't work.