Quote:
Originally Posted by BlackWhite
Hello peterf1999
About Inno
or
'SOFTWARE\Ubisoft\Assassin's Creed Brotherhood',
'SOFTWARE\Drakensang - Phileasson's Secret'
Give me error because Assasin's and Phileasson's contain '. Like any word with ' in their name.
Do you know how fix this error, please?
Thanks and greeting
|
The characters can be specified by their character value (usually an ASCII code):
Code:
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Ubisoft\Assassin'#39's Creed Brotherhood',
'InstallDir', appath)
or
Code:
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Ubisoft\Assassin'+chr(39)+'s Creed Brotherhood',
'InstallDir', appath)