-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installer parameters CLOSEAPPLICATIONS/FORCECLOSEAPPLICATIONS do not seem to have any impact #5250
Installer parameters CLOSEAPPLICATIONS/FORCECLOSEAPPLICATIONS do not seem to have any impact #5250
Comments
When `/CLOSEAPPLICATIONS` or `/FORCECLOSEAPPLICATIONS` is passed to InnoSetup, it will handle the closing/terminating of in-use apps, and we do not have to do anything manually. This fixes git-for-windows/git#5250 Signed-off-by: Johannes Schindelin <[email protected]>
This error message is produced here. I guess that this code should be skipped if |
This is the URL for the |
Just managed to test it, same command line. It kind of worked but not the way I'd expect it to. First I installed v2.40.1 and opened Git GUI and Git Bash, then ran the test installer. No foreground apps were force-closed (wish.exe, mintty.exe), however the installer proceeded with the installation and when it was finished i could see that git version was now 2.47.0.2. That's the behavior I'd expect from another install parameter - |
Hmm. I cannot really explain this behavior because this is not actually in Git for Windows' code, it is in InnoSetup's. From what I can tell, the applications to close are registered here, and it looks straight-forward. So I have no idea why they are not force-closed. However, I do see that there is plenty of logging going on. Have you tried to log to a file with |
Yes, I'm using /LOG as mentioned in the first post. However after running the test installer you provided I'm not able to find in the log any of the strings you linked. Furthermore there's no single mention of "RestartManager" at all. For testing I first installed Git 2.40.1 x64 and opened "Git Bash", then ran the test installer with parameters Here are the files that the installer wasn't able to handle:
So |
In the end we decided against trying to force-close any open Git processes as users may have important activities going on at the time when Git update gets triggered. We use PSADT framework as a wrapper which can present users a popup with a countdown asking to close certain offending apps/processes before executing the actual installer, and that's what we're going to do with Git. There's only one problem - in some cases Git installer (with same install parameters as above) throws the following message and refuses to continue:
There are no applications in the list and it's not clear why that message was triggered. I wasn't able to reproduce such behavior myself. What's going on here? What am i missing? |
Setup
Details
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Expect the installer to force-close any open git-related apps and proceed with the installation
If I run the above command as an administrative user, I receive a popup
If the installer gets executed via device management software, like SCCM or Intune (that is as SYSTEM account), the exact same message gets written into the log and the installer process is just hanging there indefinitely.
The text was updated successfully, but these errors were encountered: