This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Works perfect
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 08, 2015
03:53 AM
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?
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?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 08, 2015
02:07 PM
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 .
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 09, 2015
08:30 AM
Thank You!