Inno setup: Difference between revisions

Jump to navigation Jump to search
504 bytes added ,  1 November 2011
m
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== complier error: type mismatch ==
== Compile error: type mismatch ==
solution:
* check the data type which used by the function ex: function [http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_msgbox MsgBox]


example:
before:
before:
  StatusCode := 123;
  StatusCode := 123;
Line 9: Line 12:
  MsgBox( ' StatusCode - ' + IntToStr(StatusCode)  , mbInformation, MB_OK)
  MsgBox( ' StatusCode - ' + IntToStr(StatusCode)  , mbInformation, MB_OK)


function [http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_msgbox MsgBox]
== Repair the garbled Chinese text in MsgBox (iss file was encoding to UTF-8) ==
solution:
* add Chinese text to [CustomMessages] in the iss file
<pre>
[CustomMessages]
ChineseText=中文測試文字
 
[code]
...
MsgBox( CustomMessage('ChineseText')  , mbInformation, MB_OK);
</pre>


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]]

Navigation menu