An elevator installation comprising: a hoisting machine for driving an elevator car in an elevator hoistway; a fixing framework for fixing the hoisting machine to a support structure of the elevator; and wherein the hoisting machine comprises a machine frame, inside which is an electric motor comprising a concentric stator and rotor; which rotor is attached to a rotating shaft, which continues to outside the machine frame from both ends of the machine frame; and on both ends of the rotating shaft are traction sheaves (4A, 4B) for receiving the hoisting roping (5A, 5B) of the elevator; wherein a brake disc is attached to the rotating shaft of the hoisting machine; and wherein the hoisting machine comprises a machinery brake, which comprises a frame part and an armature part movably supported on the frame part; wherein the machinery brake is fitted into connection with the brake disc in such a way that the armature part is adapted to optionally engage with the aforementioned brake disc for braking the elevator car and also to release the aforementioned brake disc for moving the elevator car; characterized in that the rotor comprises permanent magnets, the magnetic flux produced by which crosses the air gap between the rotor and the stator in essentially the radial direction; and in that the rotating shaft is a telescopic shaft, the length of which is adjustable; and in that the length of the rotating shaft is adapted to be adjustable only on the one side of the machine frame, and in that the machinery brake and also the brake disc are disposed on the rotating shaft of the hoisting machine, on the opposite side of the machine frame than the side of the adjustable part of the rotating shaft of the hoisting machine. a hoisting machine for driving an elevator car in an elevator hoistway; a fixing framework for fixing the hoisting machine to a support structure of the elevator; and wherein the hoisting machine comprises a machine frame, inside which is an electric motor comprising a concentric stator and rotor; which rotor is attached to a rotating shaft, which continues to outside the machine frame from both ends of the machine frame; and on both ends of the rotating shaft are traction sheaves (4A, 4B) for receiving the hoisting roping (5A, 5B) of the elevator; wherein a brake disc is attached to the rotating shaft of the hoisting machine; and wherein the hoisting machine comprises a machinery brake, which comprises a frame part and an armature part movably supported on the frame part; wherein the machinery brake is fitted into connection with the brake disc in such a way that the armature part is adapted to optionally engage with the aforementioned brake disc for braking the elevator car and also to release the aforementioned brake disc for moving the elevator car; characterized in that the rotor comprises permanent magnets, the magnetic flux produced by which crosses the air gap between the rotor and the stator in essentially the radial direction; and in that the rotating shaft is a telescopic shaft, the length of which is adjustable; and in that the length of the rotating shaft is adapted to be adjustable only on the one side of the machine frame, and in that the machinery brake and also the brake disc are disposed on the rotating shaft of the hoisting machine, on the opposite side of the machine frame than the side of the adjustable part of the rotating shaft of the hoisting machine.