Quote:
Originally Posted by Simorq
Error

|
You are using an Enhanced Edition version of Inno Setup.
The Inno Setup Enhanced Edition already has the TMsg type.
To fix this error simply delete this part (This 9 lines). The Standard version of Inno Setup needs this part.
Code:
type
TMsg = record
hWnd: HWND;
message: Word;
wParam: Word;
lParam: LongWord;
Time: TFileTime;
pt: TPoint;
end;
Script to be compatible with both versions of Inno Setup (Standard Edition and Enhanced Edition) you can add before the part of the code quoted above "#ifndef IS_ENHANCED" (without quotes) and after this part "#endif" (without quotes).
Like this:
Code:
#ifndef IS_ENHANCED
type
TMsg = record
hWnd: HWND;
message: Word;
wParam: Word;
lParam: LongWord;
Time: TFileTime;
pt: TPoint;
end;
#endif
This will be compatible with both versions of Inno Setup.