|
Larry Sater
Posts: 1
Joined: 2023-05-11
|
At work, I was recently forced to have a separate Windows user account for Admin functions.
So, now when I use Visual Studio to run my add-in (it calls Excel), it also tries to "Register" the add-in. It requires Admin privs to do this and so I use my new credentials to do this, but then Excel says, I don't have a license for your Admin account.
If I run Visual Studio as Admin, then my Source Control is all jacked up because I don't develop as the Admin.
Is there a way to debug my add-in code under my developer license? I can't find where when I press F5 it goes through the "registration" process. Can something be done with that?
Hopefully this makes some sense.
Thanks. |
|
|
Andrei Smolin
Add-in Express team
Posts: 19182
Joined: 2006-05-11
|
Hello Larry,
You have three possible ways to register the add-in:
- install the add-in
- register the add-in project in the user account #1
- register the add-in project in the user account #2
Installing the add-in or registering the project registers the add-in's GUID and ProgID so that the corresponding registry entries point to the corresponding location. This possibly also includes different permissions: registering the add-in project from Visual Studio run with administrative permissions, registers the add-in with HKLM, while installing the add-in registers it with HKCU or HKLM depending on the add-in being per user or per machine.
Make sure that in all possible scenarios you only have the add-in registered once; if you register it while it is already registered/installed, this creates a mess in the registry. If you suspect you already have the mess, unregister all projects and unsinstall the add-in, then register the project you need to work with.
Regards from Poland (GMT+1),
Andrei Smolin
Add-in Express Team Leader |
|