Am on Windows 11. Once in a while, winget, the Windows Package manager, suddenly begins installing Postgres v14 without my consent as seen in this screenshot. I already have Postgres 12 and do not want an automatic install of v14. How do I prevent it from doing so?
The Windows Package Manager (a.k.a. WinGet) is a command line tool. It doesn't take action without a user running a command. There are several open-source utilities that leverage WinGet and one of those may have automatic processes.
I suggest looking to see if you have something else installed that is calling WinGet programmatically.
Related
I'm probably trying to do something stupid, but I have been writing roles to install applications via WinGet (Windows package manager) and via ansible.windows.win_command. I am on WSL2 (Ubuntu) connecting to Windows 10 on the same computer. This is working for the most part, but some roles are returning error which I think I have fixed with ignore_errors: yes.
However, I think some are launching error dialogs even when running WinGet in silent mode and as the application installer is waiting on user input, the task never completes. Should I use async and poll or what can I do? I am mostly interested in having as many applications installed via WinGet via Ansible until there is WinGet support. If a role fails I can install via WinGet manually, but I want the playbook with all the roles to run to the end at least.
You may be getting hit by the dialog to accept source agreements or package agreements.
You can either pass the flags as suggested or you could try the EXPECT module.
From Windows installation - Operations Manual:
Neo4j can also be run as a Windows service. Install the service with bin\neo4j install-service, and start it with bin\neo4j start.
But where is the service installed? Googling with the query where is neo4j service installed doesn't give any meaningful result.
This question is about installing Neo4j as windows service in Windows OS. What you missed is the first step in installing Neo4j. In step 3 of topic 1 of Windows Installation, it says;
Right-click the downloaded file, click Extract All.
So when you do that step, it will prompt you where you would want the installation will be. It is not that clear where the location of the installation because you have to go thru the entire installation process to see it.
There is a hotfix version of Tortoise Git and my PC refuses to install it. It keeps saying Windows Explorer is running, even when it is not showing the Task Manager.
Is there any other way I can get this upgrade to install?
Update
I decided to start Windows 10 in Safe Mode so we can be sure that nothing is running. Yet it still would not perform the upgrade (with Administrator privileges):
I used Task Manager and I could not see gitdll.dll in the list of running processes.
1.download hotfixes
2.restart windows (don't open any apps after restart)
3.run Task Manager (from windows bar)
4.run hotfix from menu of Task Manager -- File -- Run new task
I have the same issue; I solved it by running:
listdlls64 -d "c:\Program Files\TortoiseGit\bin\gitdll.dll"
and used task manager to manually kill all processes that were using the dll, including explorer.exe. This seems entirely unnecessary but it's what worked for me.
Why so many processes (including LogonUI.exe, OpenWith.exe, splwow64.exe, etc.) attached to gitdll.dll, is unknown, and seems like an issue that can be solved. We know that explorer uses that dll, but you would think the installer/updater would expect that and be able to work around it.
In 2.10.x hotfixes there was a bug in the hotfix updater which was unable to offer a restart for replacing gitdll.dll during a restart cycle. A failure to replace this file caused lots of crashes (cf. https://tortoisegit.org/issue/3599).
Please download the full installer for TortoiseGit and install it (https://tortoisegit.org/download/; there might be a warning regarding a possible downgrade, this can be ignored).
Generally
The .MSI installer and newer hotfixes offer two options when installing:
Try to restart open processes - this might fail as described in https://stackoverflow.com/a/61026137/3906760 based on some third-party software.
Requiring no closing/restart of open programs but the replace the file on reboot. This should work in any case because the file is replaced before starting any programs using it.
I tried both types of installer:
Hotfix
Full
And both were refusing to work. I then occurred to me that all the icons were flashing on my desktop and it was stuck. This was consistent behaviour.
So I decided to switch of my Star Dock Fences:
Right-click Desktop and select Configure Fences:
Scroll-down to the bottom of the pop-up window and un-tick Enable Fences:
Close the window.
Now I was able to install the hot-fix. Interestingly the installer was only complaining about the Windows Explorer still running and did not list Fences.
I hope this helps any others who have struggles upgrading TortoiseGit.
I have successfully installed disabling AVIR and allowing the installer to close as much as it wants
I use this script:
UsoClient.exe StartScan
UsoClient.exe StartDownload
UsoClient.exe StartInstall
I opened the windows update window before I run the code to see what will be do.
It starts scan about 1ms and write out, No new updates available at the moment.
If I manually start san to press the start now button it founds some updates and installs it.
Why? What is the wrong with the code?
I would highly recommend using this method instead. It is a PowerShell Windows Update module that is specifically made for this task. Intructions/code is below.
1) Verify that you have PowerShell 5 or newer, this is required
$PSVersionTable.PSVersion
2) Run PowerShell as admin and run the following
Install-Module PSWindowsUpdate
3) Register to use the Microsoft Update Service instead of the standard Windows Update Service
Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d
4) You should now be able to run the following command, which (by the parameters) will go searching for windows updates and install all of them that are available. I recommend looking at the help for Get-WUInstall to view what options are available to use and reboot the machine if necessary.
Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot
control update
usoclient StartInteractiveScan
I've been following the documentation on the official RabbitMQ site to install it on my Windows 7 computer. Installing Erlang and setting the environment variables has been trouble-free, but using the RabbitMQ installer has not worked out.
I have tried downloading the installer from both the GitHub and Bintray links as a regular user and administrator, but it does not seem to change the following problem: each time I double-click or right-click->Run as Administrator the installer it removes itself from the computer.
I've tried looking at processes in Task Manager, the Trash Bin, All Programs, and even in Control Panel\Programs\Programs and Features, but there is no sign that the installer has done it's job.
I ended up using Docker and Kitematic to run RabbitMQ image 3.6-management. The image works without any issues and appears to be a preferred option among my co-workers.