View Single Post
  #13  
Old 04-06-2017, 13:35
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Simorq View Post
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.

Last edited by Cesar82; 04-06-2017 at 13:37.
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
pakrat2k2 (04-06-2017), Simorq (05-06-2017)