Match upgrade code to exe.