Jens Schneider
Posts: 13
Joined: 2014-08-13
|
Hello,
We are attempting to get the query parameters passed to the URL of our ClickOnce Add-in Express download and install. We have successfully used Mage to add the trustURLParameters="true" to the .application install file and update and resign our ClickOnce installer.
The Add in installs fine. However using this code:
private void SetQueryStringParameters()
{
if (ApplicationDeployment.IsNetworkDeployed)
{
MessageBox.Show("After is network deployed");
if (ApplicationDeployment.CurrentDeployment.ActivationUri != null)
{
string queryString = ApplicationDeployment.CurrentDeployment.ActivationUri.Query;
MessageBox.Show(queryString);
}
}
}
IsNetworkDeployed is false. However, If I use the AddInModule.IsNetworkDeployed() that returns true?
What am I missing? Is there an ApplicationDeployment object associated with Add In Express that I don't have access to?
Note, I was not running from the debugger. This was installed from our ClickOnce installer.
Thanks. |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Jens,
In fact, ClickOnce doesn't support deploying COM Add-ins at all. To make it working with COM add-ins we added some features to Add-in Express. So the ApplicationDeployment class doesn't work correctly from COM add-ins. Please use AddInModule.IsNetworkDeployed instead. |
|