View Single Post
  #912  
Old 12-02-2014, 07:22
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
Thanks altef_4, problem solved.. and the detect install and offer unninstall too. :d Thanks for your help, man.

P.D. if i #define x64.. its the same than iswin64?....
no, its not, if you use any pre processor directive e.g. #define, #include and others, its only works in compilation stage.
example how to use iswin64 with registry:

if iswin64 then
RegWriteStringValue(HKLM,'SOFTWARE\Wow6432Node\Mic rosoft\Windows\CurrentVersion\Uninstall\' + GameName('') + '_is1','UninstallString','"'+ExpandConstant('{unin stallexe}')+'" /Silent')
else
RegWriteStringValue(HKCU,'Software\Microsoft\Windo ws\CurrentVersion\Uninstall\' + GameName('') + '_is1','UninstallString','"'+ExpandConstant('{unin stallexe}')+'" /Silent');
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
Logrim (12-02-2014)