Comments (25)
@DarwinJS over here mate.
from chocolatey-packages.
@DarwinJS said:
I hate to ask this :( - is there any chance to change my chocolatey ID from Darwin_CSIWindowscom to DarwinJS ?
It can be changed.
If not, no problem - please add Darwin_CSIWindowscom to chocolatey maintainers and DarwinJS (github) to chocolatey source for relevant git choco packages.
That's really not the idea. It gets fixed in this source and then gets pushed out from here.
from chocolatey-packages.
Rob - could use a few pointers on how to get started - *) choco source, *) whether you want me to update the choco source directly - if not, what is the procedure to follow to submit my source, *) whether you want me to update the choco package directly.
Here is the source, already linked it to the other issue awhile back.
from chocolatey-packages.
@DarwinJS your username has been changed.
from chocolatey-packages.
Thanks!
If I understand correctly you want me to fork the repository on your chocolatey packages, fix and test the package and then do a pull request?
If that's not it - please let me know.
If there is a guide for how to do this with the choco team I would love to see it as I also wanted to contribute to the choco PS1 modules as well.
from chocolatey-packages.
Yep, that's the standard Github contribution workflow. Fork and Pull.
from chocolatey-packages.
Rob,
Apologies for my ignorance here.
The packages under "automatic" are tokenized and I cannot cpack them directly to test.
Is there a way to cpack just that one package or should I just make identical changes to the source from the git.install .nupkg, then test that, then make the changes to automatic folder and do a pull request?
D.
from chocolatey-packages.
@DarwinJS no worries, you are right, this should probably have a guide for that - head over to the _output folder and find git.install.
from chocolatey-packages.
I'm a bug magnet.
So my very first test is on a machine that has an existing git install and I can see by the choco output my command line has been fixed up perfectly.
FAIL. Why? Because HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Git_is1\Inno Setup: Selected Components contains "icons\quicklaunch" from a previous run.
I am very tempted to make this work in all circumstances - including forced reinstall - by removing "icons\quicklaunch" from that key if found. (it's not unlikely that someone standardizing on chocolatey with a management system would run into this exact circumstance and it will hang their management system agent).
Any thoughts or guidance on whether it is a good idea to do that?
from chocolatey-packages.
Haha.
So don't remove it. Just remember that it would not have been there on a good install.
from chocolatey-packages.
Unless you are stating that it was already there even with the failed install.
from chocolatey-packages.
Rob - which file do I change when I submit the pull request to you? Just automatic, just _output or both?
D.
from chocolatey-packages.
both, but if you just want to change the one in _output, consider that the package version will need updated and use our package fix version notation. Man, yes, this needs some documentation on how to submit fixes. :/
from chocolatey-packages.
Rob - it looks like adding innosetup's '/suppressmsgboxes' for all installs with git.install would help prevent these hangs due to a message box being displayed while in SYSTEM context. It would also help in any other headless deployments.
On locked files, it will fail the install (unless changes are made to the innosetup), but I think at least we'll get back an proper exit code to chocolatey rather than an eternal hang.
I strongly recommend adding '/suppressmsgboxes' to all installs. There are automation situations that would still hang - for example: using remoting to run the chocolatey package - still no UI, so a message box will hang.
However, if you wish I could limit it to adding that option when running under SYSTEM.
I am going to add a recommendation to the git team thread to also use the "restartreplace" option on all their entries under [files] as in the below article. The article also discusses '/suppressmessageboxes'
from chocolatey-packages.
We pulled the suppressmessageboxes at one point. It may be a good idea to bring it back. The reason we pulled it is described in more detail in that original thread.
from chocolatey-packages.
OK some follow up stuff here:
[DONE] I figured out all the discussion about ssh-agent preventing the git install was for the copy it has within git's own folders. I now detect if any instances of the specific ssh-agent in the git folder are running and terminate them and put a message to the console. This is for all installs.
[OPPS] I was wrong about the install re-reading the uninstall key - just didn't have my removal of the offending option working correctly.
[QUESTION] I think we should use inno setup's /RESTARTEXITCODE=3010 and then trap for this condition and put a note on the screen and or log that a restart is required. Then if git team takes my recommendation to change the behavior so the installer queues up locked file writes for reboot, the choco package will respond intelligently. OK to do that? If so, can you let me know a choco example of this? I am thinking to NOT put 3010 on valid exit codes then wrap install-chocolateypackage in a try catch and if the code is 3010 give a success and a message? But a code sample of however it needs to happen would save a lot of time. FYI - due to the code added for ssh-agent, this will NOT happen for the very frequent occurrence of ssh-agent locking the install.
from chocolatey-packages.
I was not aware InnoSetup had a restart exit code? https://github.com/chocolatey/choco/blob/master/src/chocolatey/infrastructure.app/domain/InnoSetupInstaller.cs#L29-L44
from chocolatey-packages.
As a package manager, chocolatey does not handle reboots. It effectively blocks them.
from chocolatey-packages.
From the docs it appears you have to pass it the return code you want back if a restart is required - otherwise it does zero even for restart required. Doc'd here: http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline
Yes I understand not to reboot, but was planning to note it on screen and possibly the choco log.
from chocolatey-packages.
Should I skip /RESTARTEXITCODE=3010 for now if there is inno setup specific code in chocolatey then?
from chocolatey-packages.
perhaps file it as a followup issue?
from chocolatey-packages.
I modified both automatic and _output copies with exact same changes.
I created my own sub ..\automatic_output\git.install\2.6.4.20151216 and then realized maybe you didn't intend me to do that because you won't easily be able to see diffs in git. Let me know if you want me to make the changes to .._output\git.install\2.6.4 instead (with my new version in the nuspec of course.
I haven't committed yet - so haven't created any messes... yet ;)
D.
from chocolatey-packages.
Creating the new version is exactly what I'd hoped for.
from chocolatey-packages.
Just did a pull request.
Realized I left an unnecessary -validexitcodes on the call to Install-ChocolateyPackage in the output folder.
from chocolatey-packages.
This is fixed I believe.
from chocolatey-packages.
Related Issues (20)
- Deprecate the pip package
- upgrade to synergy-core 1.9.1 HOT 1
- Meta: purpose of this package repo?
- Update mysql or remove it HOT 2
- Warning in webpicmd choco install
- Jetty package is broken
- Toggl hasn't been pushed in 2 years HOT 4
- keybase package version is outdated HOT 1
- Installing `mysql`, then uninstalling and installing `mysql --version 5.7.18` leads to server not being reachable HOT 2
- SharpKeys 3.9 is avalable HOT 2
- sumatrapdf* new version HOT 2
- any video converter update HOT 1
- 404 webpicmd download urls HOT 3
- Request: FileZilla portable
- Windirstat path update and shortcuts HOT 2
- ruby2.devkit is broken due to bintray sunset HOT 1
- webPIcmd old download URL HOT 4
- (Google Drive) Update to "Drive For Desktop" HOT 1
- kdiff3 is old in chocolatey/is this the right repo HOT 4
- Duplicate SharpKeys with different version? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chocolatey-packages.