AddinModule.IsMSINetworkDeployed returns false
Can install, but not update
Posts 1 - 10 of 11
First | Prev. | 1 2 | Next | Last
|
|
Dan Rasmussen
Guest
|
Hi there
I'm testing the ClickTwice update procedure and think I'm doing everything right - I think... :)
Using this code in my Outlook 2016 addin, for now when pressing a button
Private Sub CheckForUpdates()
'ClickOnce check updates
If AddinModule.IsNetworkDeployed Then
AddinModule.CheckForUpdates()
Else
MsgBox("Not ClickOnce deployed")
End If
'ClickTwice check updates
If (AddinModule.IsMSINetworkDeployed And AddinModule.IsMSIAutoUpdateEnabled) Then
Dim updateUrl As String = AddinModule.CheckForMSIUpdates()
If Not String.IsNullOrEmpty(updateUrl) Then
AddinModule.LaunchMSIUpdates(updateUrl)
Else
MsgBox("MSI Updatepath has no updates (" & updateUrl & ")")
End If
Else
MsgBox("MSI deployment status" & vbCrLf & "MSI Deployed: " & AddinModule.IsMSINetworkDeployed & vbCrLf & "MSI Updatable: " & AddinModule.IsMSIAutoUpdateEnabled)
End If
End Sub
Problem is that AddinModule.IsMSINetworkDeployed and AddinModule.IsMSIAutoUpdateEnabled return false even though I'm installing from the website and using the exe file (downloader I think it is)
What am I doing wrong? |
|
Posted 06 Mar, 2019 10:18:17
|
|
Top
|
|
Dan Rasmussen
Guest
|
Just to add a little info, I'm using Visual studio 2017 15.9.7 |
|
Posted 07 Mar, 2019 04:18:08
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Dan,
Did you unregister the add-in in Visual Studio before you install it using the downloader?
After you installed the add-in via ClickTwice, the adxloader.dll.manifest file should contain the 'msi' section. Otherwise, the IsMSINetworkDeployed function returns 'false'. IsMSIAutoUpdateEnabled returns true if you configured the add-in (in the Publish wizard) to use the auto update feature of ClickTwice. |
|
Posted 07 Mar, 2019 04:24:14
|
|
Top
|
|
Dan Rasmussen
Guest
|
I haven't installed it on my PC at all. I'm testing deployment from web on a remote desktop server.
I only run the addin to debug on my PC.
Ok, now I know what to look for, will get back to you |
|
Posted 07 Mar, 2019 04:42:02
|
|
Top
|
|
Dan Rasmussen
Guest
|
Auto update is set and all settings about quiet mode are off. Updater should check every time host application runs.
After I publish new version I checked the adxloader.dll.manifest file and there is nothing about MSI, mainly signing. |
|
Posted 07 Mar, 2019 04:51:24
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Dan,
When the updater application is started you should see the '<add-in name>.updater.exe' file running in Task Manager.
Do you install the add-in via .exe file (<add-in name>.exe) of ClickTwice installation? |
|
Posted 07 Mar, 2019 05:07:01
|
|
Top
|
|
Dan Rasmussen
Guest
|
I use the exe file. Updater application is never startet because AddinModule.IsMSINetworkDeployed returns false |
|
Posted 07 Mar, 2019 05:20:01
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Dan,
Please send me a link of your installation by email. I will test it on my PC. |
|
Posted 07 Mar, 2019 06:26:24
|
|
Top
|
|
Dan Rasmussen
Guest
|
Well seems my real problem is that I created my own setup project and used this when deploying. Problem was that I got errors about not being able to load microsoft.xrm.sdk when creating setup project in Add-in Express. I'll create new thread for this. This one is really about another problem. |
|
Posted 08 Mar, 2019 02:37:34
|
|
Top
|
|
Dan Rasmussen
Guest
|
|
Posted 08 Mar, 2019 03:24:33
|
|
Top
|
|
Posts 1 - 10 of 11
First | Prev. | 1 2 | Next | Last
|