Build in CommandLine

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

Build in CommandLine
 
Anton Shchelokov




Posts: 14
Joined: 2020-10-28
Good day.
Tell me how to build a distribution kit with a product based on Addin Express on a computer without Addin Express installed using the command line. at the moment everything is going to me, but when installing on the user's machine, an error appears in the adxloader.log file

15:49:31:954 6896 2748 Start.
15:49:31:954 6896 2748 The minimum supported Office version is 14
15:49:31:954 6896 2748 The host's version is 16.0.13001.20266
15:49:31:954 6896 2748 Creating a new instance of the add-in loader.
15:49:31:954 6896 2748 Loading mscoree.dll
15:49:31:954 6896 2748 INFO: Assembly codebase - C:\Program Files (x86)\Sharesoft\SBRF.OutlookRMS\SBRF.OutlookRMS.AdEx.ML.NET.dll.
15:49:31:954 6896 2748 INFO: Assembly version - .
15:49:31:954 6896 2748 Success.
15:49:31:954 6896 2748 Loading the configuration from the system registry.
15:49:31:954 6896 2748 Getting the latest CLR version.
15:49:31:954 6896 2748 The latest CLR version is 'v4.0.30319'.
15:49:31:954 6896 2748 The configuration has been loaded successfully.
15:49:31:954 6896 2748 Runtime version: v4.0.30319.
15:49:31:954 6896 2748 Assembly name: SBRF.OutlookRMS.
15:49:31:954 6896 2748 Class name: SBRF.OutlookRMS.AddinModule.
15:49:31:954 6896 2748 Registry key: CLSID\{F86748DA-F736-4E6E-9BF7-A5A7F21B5213}.
15:49:31:954 6896 2748 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
15:49:31:954 6896 2748 Loading CLR: v4.0.30319.
15:49:31:954 6896 2748 Calling CLRCreateInstance method.
15:49:31:954 6896 2748 Success.
15:49:31:954 6896 2748 Calling GetRuntime method.
15:49:31:954 6896 2748 Success.
15:49:31:954 6896 2748 Checking if the hosting API of .NET Framework v4.0 beta is installed.
15:49:32:032 6896 2748 The hosting API is up to date.
15:49:32:032 6896 2748 Calling SetDefaultStartupFlags method.
15:49:32:032 6896 2748 Success.
15:49:32:032 6896 2748 Calling GetInterface method for the CorRuntimeHost interface.
15:49:32:032 6896 2748 Success.
15:49:32:032 6896 2748 Starting CLR...
15:49:32:032 6896 2748 Success.
15:49:32:032 6896 2748 Getting the CLR version.
15:49:32:032 6896 2748 The CLR v4.0.30319 has been initialized successfully.
15:49:32:173 6896 2748 Не удается найти указанный файл.
Posted 18 Dec, 2020 08:27:08 Top
Anton Shchelokov




Posts: 14
Joined: 2020-10-28
once I managed to make it work. but I didn?Â?Ð?ét understand which particular action influenced the positive result. and now on a new machine I cannot repeat the result
Posted 18 Dec, 2020 08:28:58 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Anton,

You can compare the list of files deployed by a setup project created using Add-in Express and using your setup project. I suppose you need to put loader DLLs, manifest, add-in assembly, etc. in the same folder.


Andrei Smolin
Add-in Express Team Leader
Posted 18 Dec, 2020 10:08:09 Top
Anton Shchelokov




Posts: 14
Joined: 2020-10-28
The set of files is the same. adxloader.dll.manifest file content is different.
how to make the contents of this file correct?
Posted 18 Dec, 2020 14:58:20 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Anton,

You should deploy the file used by your add-in project. You can let Add-in Express create a setup project for you to get a list of files deployed.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Dec, 2020 02:35:41 Top
Anton Shchelokov




Posts: 14
Joined: 2020-10-28
that's exactly what I did. tell me how to generate a adxloader.dll.manifest file using the command line
Posted 21 Dec, 2020 02:49:06 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Anton,

That file is created when you create an add-in project. There's no other way to generate it. If you have the contents of the file, you can re-create it yourself.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Dec, 2020 02:50:41 Top
Anton Shchelokov




Posts: 14
Joined: 2020-10-28
Every time I execute the Register command from the visual studio menu, the contents of this file change. how to do the same from the command line?
Posted 21 Dec, 2020 04:46:51 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Anton,

I assume this occurs when the manifest is signed by Add-in Express as per settings you choose.

Here's a citation from section Signing an add-in (see the PDF file in the folder {Add-in Express}\Docs on your development PC):

When building your add-in from the command prompt (e.g. on a build server), you can access the functionality that the Signing Options dialog provides using adxpatch.exe; find this utility in {Add-in Express installation folder}\Bin. To find the parameters that this utility accepts, start it with the /? parameter.



Andrei Smolin
Add-in Express Team Leader
Posted 21 Dec, 2020 06:48:03 Top
Anton Shchelokov




Posts: 14
Joined: 2020-10-28
i tried to use this file. but apparently I'm not using it correctly. can you give an example of using it? how to use it in my situation?
Posted 21 Dec, 2020 06:56:52 Top