RegDBKeyExists function fails to read in Installshield -


  have developed msi package in installshiled 2008 premier edition , project type installscript msi, bought 2011 , upgrdaded our project 2011. 

in earlier version used check registry entries microsoft sql express , path

**hkey_local_machine\software\microsoft\microsoft sql server\instance names\sql** 

now new require came create package 64 bit o.s., since o.s. 64-bit registry path sql express in 64 bit is

**hkey_local_machine\software\wow6432node\microsoft\microsoft sql server\instance names\sql** 

the registry function regdbkeyexists check sql registry's presence, function returning negative number -2147483646 , fails read.

setting option regdb_options = regdb_options | regdb_option_wow64_64key not because not reading 64 bit related registry hive.

please help.

thanks

don't worry much; registry reflection makes right thing without code. when 32-bit app accesses hkey_local_machine\software\microsoft\microsoft sql server\instance names\sql on 64-bit machine redirected , see hkey_local_machine\software\wow6432node\microsoft\microsoft sql server\instance names\sql (unless passes key_wow64_64key - equivalent regdb_option_wow64_64key).

if hardcode wow6432node key query, scenario tend see keys under path including hklm\software\wow6432node\wow6432node\... , unable find key meant find.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -