public static void CreateDelta(string originalFile, string newFile, string deltaFile, bool isExecutable)
{
DELTA_INPUT options = new DELTA_INPUT();
long fileType = isExecutable ? NativeConstants.DELTA_FILE_TYPE_SET_EXECUTABLES : NativeConstants.DELTA_FILE_TYPE_RAW;
NativeMethods.CreateDeltaW(
NativeConstants.DELTA_FILE_TYPE_SET_EXECUTABLES,
NativeConstants.DELTA_FLAG_NONE,
NativeConstants.DELTA_FLAG_NONE,
originalFile,
newFile,
null,
null,
options,
IntPtr.Zero,
0,
deltaFile);
}