Questions tagged [restartmanager]

21 questions
5
votes
0 answers

Windows Restart Manager doesn't see folders opened by the command prompt as in use

When using the Restart Manager, if I add a path to RmRegisterResources that is currently opened as the current working directory in a command prompt window, RmGetList doesn't return it, but instead returns info about other locked files (e.g., an…
MAD
  • 1,549
  • 1
  • 9
  • 5
5
votes
2 answers

Windows Restart Manager's RmGetList returns ERROR_ACCESS_DENIED, why?

I have code that starts a Restart Manager session, then calls RmRegisterResources with a few files, and when it calls RmGetList, ERROR_ACCESS_DENIED (5) is returned... But if I add a Sleep for 50ms and then try again... It works... How come? Any…
MAD
  • 1,549
  • 1
  • 9
  • 5
4
votes
1 answer

wix Restart Manager successfully shuts down application but says it couldn't

In my wix project, I have a file "connect.exe" that will usually be running during uninstall or update. During uninstallation and major update Wix will prompt before closing with the usual "The following applications should be closed before…
4
votes
3 answers

Windows Installer-Avoid FileinUse dialog box when Installing a package

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…
teja
  • 69
  • 1
  • 10
4
votes
1 answer

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

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…
Kiran Hegde
  • 680
  • 4
  • 14
4
votes
2 answers

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

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…
Semonit
  • 379
  • 3
  • 14
3
votes
2 answers

Under what conditions does RmGetList return 2 for the lpdwRebootReasons output parameter?

Background I am designing an Inno Setup installer to install a Cygwin service, and I am puzzled by the behavior I'm seeing from the Windows Restart Manager APIs. Specifically, when the service is running (started using the cygrunsrv utility), the…
3
votes
0 answers

Could it be that there's a bug in the Windows Restart Manager callback API?

As I was investigating a weird crash that I could only reproduce on Windows 8, I found that the EBX register was not restored from calls to either RmShutdown or RmRestart. The first difference I found with running on Windows 8, is that it's using…
MAD
  • 1,549
  • 1
  • 9
  • 5
2
votes
1 answer

How does Windows Installer close an application during uninstall?

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…
2
votes
1 answer

RestartManager causes worker role to restart

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…
Memorex42
  • 131
  • 1
  • 9
1
vote
1 answer

How to disable the "do not close application" option in MSI Installshield restart manager dialog

How to disable the "Do not close application" option in MSI installshield restart manager dialog so that the user is forced to select the first option - automatically close and attempt to restart applications so that the user does not have to…
TrustyCoder
  • 4,749
  • 10
  • 66
  • 119
1
vote
1 answer

Use RestartManager during Uninstall (Inno Setup)

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…
1
vote
1 answer

Restart Manager behavior with Windows installer

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,…
0
votes
0 answers

Using C#, how does one figure out what process locked a folder?

I am working with some locked files and folders which should be removed. Currently I am using this code with Restart Manager to check what process locks a file below, however it would throw an error when I set the file path as a folder path. May I…
SuperBerry
  • 1,193
  • 1
  • 12
  • 28
0
votes
0 answers

Inno Setup does not restart services if there is a pending Windows reboot

We created an Inno Setup script to install and update a Windows service. The same installer can be used manually or from an automatic installation/update solution. When using the installer to update an existing installation, the setup correctly…
Alex B.
  • 43
  • 1
  • 5
1
2