cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No permission to access registry in Custom Action

I try to put a license key into the registry during installation in Install Shield Express. This is a legacy application, that I ported from Install Shield 6.3, so I tried to keep the path HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\.
I put a dll that computes the license key into [INSTALLDIR] and call a function in "Custom Actions During Installation/After Register Product". However RegCreateKeyEx fails in this function with "No Permissions".

What am I doing wrong?
Labels (1)
0 Kudos
2 Replies
hidenori
Pilgrim

Re: No permission to access registry in Custom Action

Make sure that you set the In-Script Execution setting to "Deferred Execution in System Context" so that your custom action will execute with elevated privileges .
0 Kudos

Works perfect

Thank You!
0 Kudos