Reference: http://evely.blog.51cto.com/1089422/1400965
Regdbgetkeyvalueex function:
Installsheild Script Code
1 2 3 4 5 6 |
|
STRING Szkey, SzName, Svvalue; Number nvsize; Regdbsetdefaultroot (HKEY_LOCAL_MACHINE); Szkey = "\\SOFTWARE\\Wow6432Node\\Office\\" + ifx_product_version; SzName = "Word"; Regdbgetkeyvalueex (Szkey, SzName, regdb_string, Svvalue, nvsize); |
Compile error:
Error 1 numeric value required
For regdb_string cannot be written directly in the Regdbgetkeyvalueex function, a variable is required instead of the regdb_string
Modified to:
Installsheild Script Code
1 2 3 4 5 6 7 8 |
  |
string szkey, szname, svvalue; number nvsize,nvtype; Regdbsetdefaultroot (HKEY_LOCAL_MACHINE); Szkey = "\\SOFTWARE\\Wow6432Node\\Office\\" + ifx_product_version; szname = "Word" ; Nvtype = regdb_string ; REGDBGETKEYVALUEEX  ( szKey, szName, nvType, svValue, nvSize ); |
Regdbgetkeyvalueex function uses error error 1 numeric value required