Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to install Qt 5.12.7 with an offline installer onto a remote machine with no internet access



  • I am trying to do an offline (opensource) installation of Qt 5.12.7 with the installer qt-opensource-windows-x86-5.12.7.exe taken from http://download.qt.io/official_releases/qt/5.12/5.12.7/qt-opensource-windows-x86-5.12.7.exe onto a headless vm where I have rdp access to. No physical access is possible to that machine. That machine also has literally no internet acccess at all and won't get it.

    When I execute the offline installer, it still tries to connect to the internet on startup and won't let me skip anything.

    I read from the docs that

    Installer does not understand if there is a network connection but not a real internet access, you need to either provide internet access or no network connection at all.

    However, as I am connected via RDP to that VM, I won't be able to cut the network connection there without fully losing the access to it.

    What could I do to solve this?


  • Lifetime Qt Champion

    Hi,

    @devjb said in How to install Qt 5.12.7 with an offline installer onto a remote machine with no internet access:

    Yes, it has been announced through the mailing list, yesterday. But this has nothing to do with my Issue at all. Did you read my question?

    Please have some patience, since yesterday there has been literally a dozen different threads opened related to the exact same networking issue that is indeed not related to yours but the wording is starting to trigger "automatic answers".

    Now back to your issue, how do you get the installer to that remote machine ?
    Depending on that, one possible way to do things could be to "clone" that machine in a virtual one on the one you are using, do the standard installation there and then copy the installation folder back to your remote machine. Not ideal but could do the trick.





  • Yes, it has been announced through the mailing list, yesterday. But this has nothing to do with my Issue at all. Did you read my question?


  • Lifetime Qt Champion

    Hi,

    @devjb said in How to install Qt 5.12.7 with an offline installer onto a remote machine with no internet access:

    Yes, it has been announced through the mailing list, yesterday. But this has nothing to do with my Issue at all. Did you read my question?

    Please have some patience, since yesterday there has been literally a dozen different threads opened related to the exact same networking issue that is indeed not related to yours but the wording is starting to trigger "automatic answers".

    Now back to your issue, how do you get the installer to that remote machine ?
    Depending on that, one possible way to do things could be to "clone" that machine in a virtual one on the one you are using, do the standard installation there and then copy the installation folder back to your remote machine. Not ideal but could do the trick.



  • @SGaist said in How to install Qt 5.12.7 with an offline installer onto a remote machine with no internet access:

    Depending on that, one possible way to do things could be to "clone" that machine in a virtual one on the one you are using, do the standard installation there and then copy the installation folder back to your remote machine. Not ideal but could do the trick.

    Well, so dead simple, indeed, that I did not even think about.... :-/
    I simply copied things over from my local development machine and adjusted the $PATH on the target machine. Fixed.

    Thank you so much
    I wonder why I was so blind :-D



  • @devjb said in How to install Qt 5.12.7 with an offline installer onto a remote machine with no internet access:

    Did you read my question?

    Yes I did, but AFAIK, Qt Maintenance tools (open source version) always needs to connect to download.qt.io.
    Here what Tuukka Turunen write at Qt blog:

    he problem with online installer is that without the 'master' the installer can not determine the mirror to use. Similarly without the 'download' frontend, user needs to know what mirror to use for offline packages. Building from source code repository of course works as well.



  • @KroMignon said in How to install Qt 5.12.7 with an offline installer onto a remote machine with no internet access:

    Yes I did, but AFAIK, Qt Maintenance tools (open source version) always needs to connect to download.qt.io.
    Here what Tuukka Turunen write at Qt blog:

    he problem with online installer is that without the 'master' the installer can not determine the mirror to use. Similarly without the 'download' frontend, user needs to know what mirror to use for offline packages. Building from source code repository of course works as well.

    This is not the case for offline installers. I verified it from a local vm where I cut the network connection. The installer was perfectly able to install entirely offline. Tuukka was refering to the online installer, not the offline one.

    Nevertheless, copying a local installation over to the machine in question and adjusting the environment was successful. That is all I need.


Log in to reply