Inno setup: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Complie error: type mismatch ==
== Compile error: type mismatch ==
solution:
solution:
* check the data type which used by the function ex: function [http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_msgbox MsgBox]
* check the data type which used by the function ex: function [http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_msgbox MsgBox]
Line 11: Line 11:
  StatusCode := 123;
  StatusCode := 123;
  MsgBox( ' StatusCode - ' + IntToStr(StatusCode)  , mbInformation, MB_OK)
  MsgBox( ' StatusCode - ' + IntToStr(StatusCode)  , mbInformation, MB_OK)


== Repair the garbled Chinese text in MsgBox (iss file was encoding to UTF-8) ==
== Repair the garbled Chinese text in MsgBox (iss file was encoding to UTF-8) ==
Line 27: Line 25:


Inno setup version: 5.4.2
Inno setup version: 5.4.2
== further reading ==
* [http://stackoverflow.com/questions/tagged/inno-setup Newest 'inno-setup' Questions - Stack Overflow]
[[Category:Software]]

Latest revision as of 13:59, 1 November 2011

Compile error: type mismatch[edit]

solution:

  • check the data type which used by the function ex: function MsgBox

example: before:

StatusCode := 123;
MsgBox( StatusCode  , mbInformation, MB_OK);

after:

StatusCode := 123;
MsgBox( ' StatusCode - ' + IntToStr(StatusCode)  , mbInformation, MB_OK)

Repair the garbled Chinese text in MsgBox (iss file was encoding to UTF-8)[edit]

solution:

  • add Chinese text to [CustomMessages] in the iss file
[CustomMessages]
ChineseText=中文測試文字

[code]
...
MsgBox( CustomMessage('ChineseText')   , mbInformation, MB_OK);

Inno setup version: 5.4.2

further reading[edit]