0

Installerc created using Installshield 2015 is not able to create a registry key under HKEY_LOCAL_MACHINE hive. The script is given below. I verified that installer is running with admin priviliges.

function RegisterPlugin(hWnd)

STRING szKey, szClass;

begin

 

if (RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE) < 0) then

 

    MessageBox ("First call to RegDBSetDefaultRoot failed.", SEVERE);

 

  else

 

    MessageBox ("Root key successfully set to HKEY_LOCAL_MACHINE.", INFORMATION);

 

  endif;


szKey   = "SOFTWARE\\Autodesk\\AutoCAD\\R25.0\\ACAD-8101:409\\Applications\\MyPlugin";


 

  szClass  = "";

   

   

  

 

  REGDB_OPTIONS = REGDB_OPTION_WOW64_64KEY;

 

 

 

if (RegDBCreateKeyEx(szKey, szClass) < 0) then

 

    MessageBox ("First call to RegDBCreateKeyEx failed.", SEVERE);

 

    abort;

 

  else

 

    SprintfBox (INFORMATION, "Youo", "Successfully created: %s", szKey);

 

endif; 

 

end;

Please help.

3
  • What is in the install log after the install? This is installscript, what type of install are you building, MSI or strict InstallScript?docs.revenera.com/installshield22helplib/helplibrary/… Commented Apr 2 at 22:26
  • An MSI. It can create in all other hive but not in HKEY_LOCAL_MACHINE Commented Apr 3 at 4:03
  • 1
    What does the install log say right around where this script is running? Commented Apr 3 at 11:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.