I try to walk my first steps in Arduino and purchased a Nano PR2040. I downloaded the IDE 2.0.0-B9 but it looks like there is now reasonable way to run it offline. I found a old threat about this problem for a older version of an IDE. It was mentioned that creating a folder called "portable" will force the Module Manager to store all downloaded files into this folder instead of the typical User - folders. I tried to install the IDE on a laptop with internet access, loaded uncompressed the zip download file and started the board manager, but he ignored this folder and used the user folders.
The idea was to download all packages I need on a different laptop, copy the portable folder or the whole IDE- Program folder to the final targed pc.
Actually this way do not work beause the Manager use the user folders and this is too much work, to copy all related sub folders. Additonally I do not know what is going on with the registry.
Are there any recommendations how I can use the IDE 2.0.0-B9 and the final version later on in a offline mode?
I tried to follow your recommendations.
Let me tell you what I've done finally.
Installed the IDE 2 on the tarted pc without internet access
patched the arduino-cli.yaml file in order to fit the different paths inside the "directories:" structure to my setup.
-> The IDE starts but stuck because of no internet access. There are two error messages diplayed. (Requested loadSketch faild with messages: 2 UNKNOWN downloading bulitin.ctags@..... // 2nd Message: There was an error creating the sketch directory...)
-> The first message is clear, he cannot load the ctags-5.8-arduino11-rpn... package because of the offline situation.
-> the second one is not really clear but could be a result from the first error, I don't know.
Installing IDE2 on a win10 system with internet access
Starting the manager, and loaded all modules I assume are importand for the RP2040.
Moved all data from Arduino15 folder of the pc with internet access to the pc without internet access
Start the IDE2 on the pc without internet access.
-> The IDE opens about 11 tasks in the task manager but is doing nothing, just the waiting symbole is turning the blue dots...
Actually there is no way to start the IDE on a pc without internet access.
-> NOT GOOD !!!!
Have you some more recommendations how I can run the IDE2 in my offline PC?
It's true that an Internet connection is required to download this tool. However, once it has been installed, the IDE should happily start up with no Internet connection. I expected that this tool would have been manually installed by you to your offline PC when you copied the entire data directory over from your Internet connected installation.
I just gave it a try and had no problems. Please check your data directory ( C:\Users\<user name>\AppData\Local\Arduino15 by default, but you might have customized it via arduino-cli.yaml) to see if the file exists at packages\builtin\tools\ctags\5.8-arduino11\ctags.exe.