A method for installing an offshore installation, the method comprising the steps of: a) providing a pipe for connecting the offshore installation with another offshore installation or an onshore installation, b) arranging an electrical cable inside the pipe, c) determining a level at or above the seabed, wherein the pipe comprises a first portion arranged below the determined level and a second portion arranged above the determined level, and wherein the electrical cable is arranged inside the pipe so as to form a gap with an inner wall of the pipe along the first and second portion (23, 24), d) determining an amount of cooling liquid such that, when the cooling liquid has a first temperature, the cooling liquid fills the gap along the first portion of the pipe, wherein the second portion of the pipe is free of the cooling liquid, and when the cooling liquid cools the electrical cable and, therefore, has a second temperature higher than the first temperature, it is expanded from the first portion into the second portion, filling the gap along the first and second portion (23, 24) of the pipe, and e) providing the determined amount of the cooling liquid inside the pipe and wherein the level is a sea level at the offshore installation, a level of the seabed below the offshore installation or a level between the sea level and the seabed level;and wherein the cooling liquid has the first temperature during a state in which no power is transmitted through the electrical cable. a) providing a pipe for connecting the offshore installation with another offshore installation or an onshore installation, b) arranging an electrical cable inside the pipe, c) determining a level at or above the seabed, wherein the pipe comprises a first portion arranged below the determined level and a second portion arranged above the determined level, and wherein the electrical cable is arranged inside the pipe so as to form a gap with an inner wall of the pipe along the first and second portion (23, 24), d) determining an amount of cooling liquid such that, when the cooling liquid has a first temperature, the cooling liquid fills the gap along the first portion of the pipe, wherein the second portion of the pipe is free of the cooling liquid, and when the cooling liquid cools the electrical cable and, therefore, has a second temperature higher than the first temperature, it is expanded from the first portion into the second portion, filling the gap along the first and second portion (23, 24) of the pipe, and when the cooling liquid has a first temperature, the cooling liquid fills the gap along the first portion of the pipe, wherein the second portion of the pipe is free of the cooling liquid, and when the cooling liquid cools the electrical cable and, therefore, has a second temperature higher than the first temperature, it is expanded from the first portion into the second portion, filling the gap along the first and second portion (23, 24) of the pipe, and e) providing the determined amount of the cooling liquid inside the pipe and wherein the level is a sea level at the offshore installation, a level of the seabed below the offshore installation or a level between the sea level and the seabed level;and wherein the cooling liquid has the first temperature during a state in which no power is transmitted through the electrical cable. wherein the level is a sea level at the offshore installation, a level of the seabed below the offshore installation or a level between the sea level and the seabed level;and wherein the cooling liquid has the first temperature during a state in which no power is transmitted through the electrical cable.