Misleading error message from spregpkg.exe "access denied"

Discussions related to SoftPro Select user interface development.

Moderator: Phil Barton

Post Reply
joe.mag
Posts: 122
Joined: Thu Aug 04, 2011 3:11 pm

Misleading error message from spregpkg.exe "access denied"

Post by joe.mag »

I was just now registering my custom package on a new development system where I'd recently installed the full SoftPro Select 4.X stack. The output from the command
C:\Program Files (x86)\SoftPro\Select>"C:\Program Files (x86)\SoftPro\Select SDK\Tools\spregpkg.exe" /m:register /p:<my package>.dll
was
Access to the registry key 'HKEY_LOCAL_MACHINE\Software\SoftPro\Select\4.0' is denied.
However, when I went to look for that registry hive it didn't exist. I looked on my production server and finally found the registry hive HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SoftPro\Select\4.0. Sure enough, that key was present on my development system but had very restricted permissions. When I relaxed the permissions to allow my user account full control the spregpkg command completed with success.

It appears that while the spregpkg tool is accessing the correct registry hive, it's reporting errors using a hive that would only apply on a 32-bit system.
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Misleading error message from spregpkg.exe "access denie

Post by BobRichards »

Thanks, Joe. I will log a suggestion for this. Glad you figured it out!
Bob Richards, Senior Software Developer, SoftPro
Post Reply