-
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 - Allow /CloseApplications to do what it needs to ensure that silent install/upgrades complete successfully #312
Comments
Thanks for following up. I agree with the reasoning. @ferventcoder have you managed to build an installer using the new Git for Windows SDK yet? If so, could you just patch in the relevant |
I'm good to help out, I haven't attempted to build with the new SDK yet. :) |
@ferventcoder could you do that? I'll need you to test things with the new SDK anyway... |
@ferventcoder once you installed the Git for Windows SDK, you can make an installer using the If that manages to find the |
Will do. Hopefully today. |
I think a reboot may be necessary.
|
That is correct, But does it resolve, that is the question... If in doubt, you could either switch to Google's DNS (8.8.8.8) or put the entry "5.153.24.114 dl.bintray.com" into your Or maybe just restarting the SDK installer will work around that problem? |
Gave it a couple of shots. I decided on a reboot to see if that clears things out. The next step is to flush the dns cache, as that was not the IP address that the machine in question attempting to ping. :/ Usually use Google's DNS, but I'll check for sure. I believe it is a local machine issue. |
Do you think the issue is possibly a permission-related issue with regards to bintray? These items don't show up, but that doesn't mean they won't work. These don't have any public direct downloads: |
No, that's not the issue. If I keep trying enough times, it works. :/ Definitely something with my machine. |
Okay, got something built, will test in a little while and give you a heads up. :) |
Thanks! |
Darn. Will have a look tomorrow. |
@dscho I wonder if the uninstall was coming from the OLDer git that was installed? Perhaps I should generate two installers and try this. One to install and run, and the next for upgrade? |
Oh my, you are absolutely correct!
Actually, one and the same installer should be enough. You can reinstall one and the same version, e.g. to reinitialize messed-up installations or to change the settings in the wizard pages. So maybe you can install it once (without a running ssh-agent), then start the ssh-agent, and then try the silent installation again? Thank you so much! |
Will do. |
Thank you! |
@ferventcoder @dscho I am also a users that is installing/upgrading silently, does this mean that there is a The github support person, Scott Sanicki, that I asked this question via email pointed me to the What cpomes first? This quote from email from "Scott Sanicki (Github staff)"
PS: I also just noticed that |
@TheBigBear please note that GitHub for Windows and Git for Windows are different projects. It is true that GitHub for Windows bundles a portable version of Git for Windows, but that does not include the installer that this ticket is about. |
@dscho so this one relates to 'git-for-windows' (dooh read the URL!) ;-) aka the friendly fork of msysgit which has just come out as the first windows version of a windows cmd line Ah, I see, sorry for the confusion, my bad. I hadn't noticed the issues of the silent install and uninstalls hanging under certain conditions. (Note to self - more testing!) Thanks @ferventcoder for coming to the resuce (once again), your efforts are really much appreciated. |
@TheBigBear To answer the question about Squirrel for Windows, it already has a silent switch - |
@ferventcoder yes, thanks, I know and like that part of it. But Squirel.Windows installer is ATM it only has the "ugly" "ugly" MS ClickOnce installer which can't be kept quiet or free of user interaction. (ugly not from aestehics or visual point of view, but from angle of IT admin seeking backgound silent mass deployment) Rob sure you remember choco had to resort to using autohotkey macros - to get it installed quietly, and uninstall in a quiet way is near impssoible as there can be soo many reasons why it doesn't want to do it without interaction. Sorry for using the 'bandwidth' in this (almost) totally un-related topic, for this long rant. |
@dscho It's never as easy as we'd hope. :/
I wonder if InnoSetup has the concept of running arbitrary commands? Here's what I would see it do, not even sure it is legal yet though:
|
Bummer!
We have to be a little careful here because people might have another ssh-agent running, too, and we must not kill any ssh-agent that did not originate from Git for Windows... |
Oh, wait a minute... Why is your |
Looks like it is possible - http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_exec
How do we know the difference? Or is that where the problem lies? So two questions -
|
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
Fix problem where clone adds core.worktree due to path case differences
As a user installing/upgrading silently, if something like ssh-agent is running, it can cause the process to hang or fail. It would be nice to be able to pass something like
/CLOSEAPPLICATIONS
to signify that "Yes, I am sure I would like everything closed so the install/upgrade can continue".For a GUI based installer, I agree with @sschuberth on "it simply does not feel right to kill ssh-agent without asking the user first." However, for a silent install, a user should be able to pass something that signifies that they are okay with moving forward with whatever is necessary to make the install/upgrade happen successfully.
The relevant code blocks look to have moved over to https://github.com/git-for-windows/build-extra/blob/9f0c810c3872e335218833157272cde7d9f6b7a8/installer/install.iss.in#L349-L418
Follow up from msysgit/msysgit#249.
The text was updated successfully, but these errors were encountered: