Add in Express - Deployment

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

Add in Express - Deployment
Deployment for all users within own MSI 
Pablo Medina Martín




Posts: 10
Joined: 2010-12-14
Eugene,

I am trying to replicate the very same keys that the Visual Studio Installer creates itself. I dont see any other reason it shouldnt work.
Seems the registrator runs fine, but the keys in the Local Machine hive and in the Classes Root hive are not created.

I dont have a setup, the prerequisites are pre-installed, and out of the Wix build, i only get a MSI...

Tell you news as i am finished.
Posted 28 Feb, 2011 11:29:14 Top
Pablo Medina Martín




Posts: 10
Joined: 2010-12-14
OK things got better. The administrator gets the Addin installed. Not the rest of the users.

I use this:

<File Id="AccessAddinFile" Name="QuicktipsAccess2010_net4.dll" Source="C:\Users\pmedina\Documents\Visual Studio 2010\Projects\QuicktipsAccess2010_net4\QuicktipsAccess2010_net4\bin\Release\QuicktipsAccess2010_net4.dll">
X Class Id="46BBF098-F62B-453C-8804-C49A4C3E4967" Context="InprocServer32" Description="Addin" ThreadingModel="apartment">
X ProgId Id="QuicktipsAccess2010_net4.AddinModule" Description="Connect Class" />
X Class>
X File>

That actually puts my addin progID in the CLASSES_ROOT hive with the right CLSID. The adxregistrator, launched from my MSI doesnt add it, but launched with the visual studio installer does.

Then i also create within my MSI the entries at the LOCAL MACHINE hive, with my ProgID as key name.

Executing Access as a not admin user does not even show the Addin in the File->options->add ins.

What could be going wrong? Do you think we could just solve this with a remote session?

Greetings,
Pablo.
Posted 28 Feb, 2011 12:01:04 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Pablo,

Sorry, I am not a Wix guru. Does a regular MSI setup project work as expected?

Anyway, you may be interested in the HowTo: Register your MS Office add-in with WiX article on our technical blog.
.NET, Extended MAPI, Windows Phone & RT
Posted 28 Feb, 2011 12:15:34 Top
Pablo Medina Martín




Posts: 10
Joined: 2010-12-14
Eugene,

Unfortunately I am doing what you specify on your article<- However, heat does not really create that Fragment :(
Still, the add in only loads for the admin user.

I would not like to migrate our MSI (that actually makes much other stuff) to a Visual Studio Installer just because of this Access Add in.

If there is some Wix specialist on your team, could you get me in contact with him?
I also tried to look around the forums for some similar problems, no luck.

I think i call it a day...

Greetings and thanks for your support.
Pablo.
Posted 28 Feb, 2011 12:56:54 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Pablo,

What parameters do you pass to the adxregistrator.exe utility? Does a regular MSI installer work for you?
.NET, Extended MAPI, Windows Phone & RT
Posted 28 Feb, 2011 13:16:18 Top
Pablo Medina Martín




Posts: 10
Joined: 2010-12-14
Eugene,

If for a regular msi you mean the one created by the setup project in VS, yep, seems to work.

The only thing i miss in my msi is that postbuild event with the adxpatch.

I call adyregistrator with /install="My addin" /privileges=admin

RegisterForAllUsers property is set in my module to true.

Regards,
Pablo.
Posted 01 Mar, 2011 04:19:18 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Pablo,

Please have a look at the following recent articles on our technical blog:

Deploying per-machine Office extensions via an MSI installer
Deploying per-user Office extensions via an MSI installer

Also note that you need to specify the full name of your add-in assembly including extension.
.NET, Extended MAPI, Windows Phone & RT
Posted 01 Mar, 2011 05:21:45 Top
Pablo Medina Martín




Posts: 10
Joined: 2010-12-14
Hi Eugene,

My solution is to deploy this addin with an extra msi installer :( by now ;)

Just wanted to thank you for your support!

Best,
Pablo.
Posted 01 Mar, 2011 11:43:02 Top