Posts 1 - 10 of 22
First | Prev. | 1 2 3 | Next | Last
|
|
Thomas Guenther
Posts: 94
Joined: 2006-02-20
|
Hi Sergey!
I have serious failed installation issues with the addin-setup if the user using the addin is a non-admin.
You mailed a solution to Shawn Hickey
in this thread:
http://www.add-in-express.com/forum/read.php?FID=5&TID=677&MID=3226&phrase_id=303092#message3226
could you please send this solution to me too?
Here are the issues occuring:
The Addin will be installed for all users (RegisterForAllUsers = true) by an user having administrator rights.
If a non-admin user opens outlook an installation dialog appears and tries to install something (i think tries to install the addin module).
This fails with an "Acces denied" entry in the adxloader.log-file.
I use the following entry in the adxloader.dll.manifest:
<loaderSettings generateLogFile="true" shadowCopyEnabled="true" privileges="administrator" />
Is this correct for an administrative installation for all non-admin users?
We are using Addin-Express .NET V3.3, VS2003, Office 2003, Windows XP SP2
Thanx for help,
Thomas Guenther |
|
Posted 27 Feb, 2007 07:39:20
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7235
Joined: 2004-07-05
|
Hi Thomas.
Actually the installation dialog shouldn't appear when a non-admin user opens outlook. Do you choose the 'Everyone' option in the msi installer during the installation process?
P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
|
|
Posted 27 Feb, 2007 08:17:03
|
|
Top
|
|
Thomas Guenther
Posts: 94
Joined: 2006-02-20
|
Yes i choose the 'Everyone' option.
The problem is, if i open Outlook 2003 i can see a property page our addin placed there for configuring our addin. This made me think the addin is workin properly. but if i change something in this property page the addin installation dialog appears.
Thanx for help
Thomas |
|
Posted 27 Feb, 2007 08:23:56
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7235
Joined: 2004-07-05
|
Thomas, does the property page change any files in the installation directory of the add-in? |
|
Posted 27 Feb, 2007 08:30:31
|
|
Top
|
|
Thomas Guenther
Posts: 94
Joined: 2006-02-20
|
No. No files will be changed in the installation directory by the property page (only automatically installation of an custom form into the users default calendar). I only write some entries to the HKCU-registry trunk.
But i did some further testing...It seems to be an user-acces-issue. I gave the user who did not installed the addin but should use it, administrator rights and the installation dialog succeded.
Unfortunatly the normal users of our customer dont't have these rights.
The addin should be rolled out automatically for approx. 2500 user.
Thanx,
Thomas |
|
Posted 27 Feb, 2007 08:43:56
|
|
Top
|
|
Thomas Guenther
Posts: 94
Joined: 2006-02-20
|
Hi Sergey!
I reviewed my code and here is an idea what could cause this issue:
I have a method named 'FindAddinModule()' which tries to find the installed addin after a hit the 'Apply' button.
I grabed this method from your Property page example.
Maybe this is causing to call the installer?
Unfortunaly i have to call some function in my Addin.Module class.
Ciao,
Thomas |
|
Posted 27 Feb, 2007 08:50:51
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7235
Joined: 2004-07-05
|
Thomas,
in the property page code you can use the AddinExpress.MSO.ADXAddinModule.CurrentInstance global field to access the addinmodule. However in this case you should use the PageType property instead of the PageProgId to add your own property page to Outlook.
|
|
Posted 27 Feb, 2007 09:44:45
|
|
Top
|
|
Thomas Guenther
Posts: 94
Joined: 2006-02-20
|
Hi Sergey!
Yes you are right. I had a look to the current examples and after i saw it i changed my code immediatly.
I think i have partly solved the problem. We provide a custom outlook form with this addin which we want to install after the user made his settings in the property tab. Because he has not full permissions to access the program files folder he cannot read the form definition. So we have to copy this form to somewhere else before publishing it. This is very fiddly and not best practice but might work.....(i hope so).
Ciao,
Thomas |
|
Posted 27 Feb, 2007 10:26:40
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7235
Joined: 2004-07-05
|
Yes, I agree with you. You need to copy the form to an appropriate location (something like '.\My Documents\My Forms\...'). |
|
Posted 27 Feb, 2007 11:40:28
|
|
Top
|
|
Thomas Guenther
Posts: 94
Joined: 2006-02-20
|
Hi Sergey!
The installation issue is'nt solved yet.
I attach you an error message we found in the adxloader.log file.
This issue occured only if the user has non admin rights.
Do you have any ideas what's wron there?
18:19:15 624 Registering the 'MyAddin, PublicKeyToken=5A8F8F6ED5D396E9' assembly (administrator).
18:19:16 624 Error: The ADX Loader can't resolve the 'mscorlib.resources, Version=1.0.5000.0, Culture=de-DE, PublicKeyToken=b77a5c561934e089' assembly. Please check if the assembly exists in the application directory or in the GAC.
18:19:16 624 Error: The ADX Loader can't resolve the 'mscorlib.resources, Version=1.0.5000.0, Culture=de, PublicKeyToken=b77a5c561934e089' assembly. Please check if the assembly exists in the application directory or in the GAC.
18:19:16 624 Registering the 'MyAddin.AddinModule' type.
18:19:16 624 Searching for static methods that contain the 'ComRegisterFunction' attribute.
18:19:16 624 Calling the 'AddinRegister' static method.
18:19:16 624 Error: Exception has been thrown by the target of an invocation.
18:19:16 624 Inner Exception: Access Denied
18:19:16 624 The managed registration process is complete with HRESULT = 2.
18:19:16 376 The add-in registration process is complete with HRESULT = 2.
Thanx for help!
Ciao,
Thomas |
|
Posted 27 Feb, 2007 12:39:38
|
|
Top
|
|
Posts 1 - 10 of 22
First | Prev. | 1 2 3 | Next | Last
|