In construction, windows are installed before the siding. While replacement windows can be installed after construction, it is preferable to replace windows before installing the new siding for maximum sealing.