void (int majorVersion, int minorVersion, int bugfixVersion) { int mostSignificantVersion = majorVersion << 16 | minorVersion; int leastSignificantVersion = bugfixVersion << 16; myVersionInfo.getFixedFileInfo().setFileVersion(mostSignificantVersion, leastSignificantVersion); myVersionInfo.getFixedFileInfo().setProductVersion(mostSignificantVersion, leastSignificantVersion); }