How to prevent iTunes from automatically opening when your iPhone is connected to a computer
https://newsstechh.blogspot.com/2019/10/how-to-prevent-itunes-from.html
How to prevent iTunes from automatically opening when your iPhone is connected to a computer
As a general rule, iTunes opens automatically when you connect your device to your computer. If you're using a Mac, some apps will automatically open as soon as your iPhone or tablet is connected, which can lead to undesirable consequences such as a computer shutdown. Luckily, disabling iTunes autorun is no problem. Just follow a few simple steps to learn how to prevent iTunes from automatically opening when you connect your device to a computer or laptop.
Mac OS
To automatically stop iTunes from downloading when you connect your device, it's important to connect your iPhone or anything you want to connect to your computer.
2. iTunes will open as soon as the device is connected. At the top right of your page, you'll see an iPhone icon that you must click to change settings.
3. Next, go to Preferences. You can either use the "Command-comma" keyboard shortcut or simply iTunes> Preferences. Next, select "Devices" and make sure the "Prevent iPod, iPhone and iPads from syncing automatically" box is checked.
Going forward, iTunes won't start automatically when you connect your iPhone or iPod. You have successfully disabled iTunes autorun.
However, if you still want to sync automatically without the need for the software to appear, you'll need to use the "Sync with iPhone via Wi-Fi" option. By doing this, you’ll automatically sync your device when both the Mac and the gadget you want to connect are connected to the same Wi-Fi network.
How to prevent Photos from opening automatically
If the annoying app appears when you connect your iPhone, you're free to take action to turn off autoplay on your Mac.
The first thing you need to do is connect your device to your computer via a charging cable from Lighting to USB. Once you've opened your photos, you'll need to make the sidebar visible to you by selecting "View" and then "Show Sidebar." Once you're done, you'll need to select the "Import" option at the top of the screen. Next, select your device name and in the sidebar. In the upper left corner, you'll see the option that says "Open images for this device". All you have to do is disable and deselect the selected option.
From now on, it will be necessary to manually open the Photos app when you connect your device
Windows
Every time you get iTunes installed, you get a small app, iTunesHelper, that is installed with it. The selected software checks for things in the background and prompts iTunes to connect to it every time it detects an iOS device. By disabling iTunesHelper, you make iTunes inactive until you decide to launch it manually.
1. To disable the program, you will need to go to "Task Manager" and select the "Startup" tab.
2- There, you'll find iTunesHelper. Right-click the program and choose Disable.
3. After that, it will be necessary to restart the computer. When you're done, you'll see annoying iTunes no longer open automatically when you connect your iPhone or iPad.