The calculated distance (air line) between Windsor and Pakenham is approximately 30 miles respectively 49 kilometers.
By car or train, the actual journey to Pakenham is certainly longer, as only the direct route (as the crow flies) between Windsor and Pakenham has been calculated here.