Loadbehavior is set in HKLU

Add-in Express™ Support Service
That's what is more important than anything else

Loadbehavior is set in HKLU
 
Thomas Vi?er




Posts: 21
Joined: 2012-12-17
Hello,

I am using following manifest to install the addin:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<assemblyIdentity name="My.AddIn, PublicKeyToken=78674a21f8e407f1" imageRuntimeVersion="v4.0.30319">
<addinName>my addin</addinName>
<supportedApps>15</supportedApps>
<displayAlerts>true</displayAlerts>
<loadBehavior>3</loadBehavior>
</assemblyIdentity>
<loaderSettings generateLogFile="true" shadowCopyEnabled="false" privileges="administrator" />
</configuration>

SupportedApps ist set with a custom action before the addin-Action. After installation the Loadbehavior ist set in HKLM and HKLU.
Is that correct?
The registry keys in the adxregistrator.log are all in HKLM.
When will the keys be created in HKLU?

Regards
Thomas Vi?er
Regards

Thomas Vi?er
Senior DevOps Engineer
Posted 19 Feb, 2018 10:31:17 Top
Thomas Vi?er




Posts: 21
Joined: 2012-12-17
RegisterForAllUsers ist set to "true"
Regards

Thomas Vi?er
Senior DevOps Engineer
Posted 19 Feb, 2018 10:35:25 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Thomas,

LoadBehavior is set only in HKCU or HKLM depending on the settings chosen. Can it be that you have this add-in (or an older version of it) installed both per machine and per user?


Andrei Smolin
Add-in Express Team Leader
Posted 20 Feb, 2018 03:59:13 Top
Thomas Vi?er




Posts: 21
Joined: 2012-12-17
Hello Andrei,

no, it is installed only per machine, no older versions are installed. I have the same problem with a new project and a new generated setup with the changed manifest.

Regards
Thomas
Regards

Thomas Vi?er
Senior DevOps Engineer
Posted 20 Feb, 2018 04:38:40 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Thomas,

Please send me the new project with setup and changed manifest.


Andrei Smolin
Add-in Express Team Leader
Posted 20 Feb, 2018 04:40:27 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Thomas,

Thank you for sending me the project.

The issue is seemingly caused by your environment: you don't have an SDK installed; this ends with no setup.exe generated.

To solve this issue, make sure you have the following folder: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\SDK\BootStrapper. It must contain three folder: Engine, Packages, and Schemas. I suppose the folder gets created when you install Visual Studio.


Andrei Smolin
Add-in Express Team Leader
Posted 20 Feb, 2018 06:45:33 Top
Thomas Vi?er




Posts: 21
Joined: 2012-12-17
Hello Andrei,

The wix-Setup generates a msi-file. If it is startet with Administrator privileges the addin is installed.
The registry keys will be added in HKLM and HKLU.

The sdk is installed on the environment - a setup.exe is not generated
Regards

Thomas Vi?er
Senior DevOps Engineer
Posted 20 Feb, 2018 08:37:36 Top
Thomas Vi?er




Posts: 21
Joined: 2012-12-17
Hello Andrei,

Setup.exe is now generated - AfterBuild in the project file was not enabled.

With the setup.exe (with Admin-Prompt) same result. The Registry Keys are created in HKLM and HKLU.
Regards

Thomas Vi?er
Senior DevOps Engineer
Posted 20 Feb, 2018 08:57:29 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
I've talked to our guys. It turned out I was wrong saying "LoadBehavior is set only in HKCU or HKLM depending on the settings chosen". It appears, Add-in Express creates also an entry in HKCU to store per-user settings. Please accept my apology for misleading information.


Andrei Smolin
Add-in Express Team Leader
Posted 20 Feb, 2018 09:13:21 Top
Thomas Vi?er




Posts: 21
Joined: 2012-12-17
Hello Andrei,

is the entry in HKCU created only for the user, who installs the addin? What if there are different user-accounts on the machine?
Regards

Thomas Vi?er
Senior DevOps Engineer
Posted 21 Feb, 2018 02:07:49 Top