M
Mike Avery
Having installed vstose, I created a C# 2003 Add-in / Outlook Add-in with
just MessageBox calls in the ThisAddIn_Startup and ThisAddIn_Shutdown
functions.
I built it, built the setup project and went to install it on a separate
box. I installed the vstose runtime first. Installing it in an account
belonging to Administrator was OK. The LoadBehaviour registry setting was
changed from 3 tto 2 when I ran Outlook but this was fixed by running
Microsoft .NET Framework 2.0 Configuration to set the runtime security policy
for the DLL to Full Trust. Dunno how I'm going to include that in the final
product installation kit.
The problem arises when I try to install it on an account belonging only to
the 'User' group. Rnnngthesetp as Admnisratrator, the installation appears
to work OK, it copies the DLL etc. to the program Files area but no registry
entries (e.g. including LoadBehaviour) are created for the add-in, it doesn't
appear in the "Add or Remove programs" dialog in Control Panel and (of
course) it doesn't work when Outlook is run.
If I temporarily add the account to the Administrators group prior to
installation and then take Administrator away after, it does all work.
Is there some way I can get the setup to work for unprivileged users? The
key problem seems to be that it doesn't install when setup is 'run as' an
administrator
thanks
Mike
just MessageBox calls in the ThisAddIn_Startup and ThisAddIn_Shutdown
functions.
I built it, built the setup project and went to install it on a separate
box. I installed the vstose runtime first. Installing it in an account
belonging to Administrator was OK. The LoadBehaviour registry setting was
changed from 3 tto 2 when I ran Outlook but this was fixed by running
Microsoft .NET Framework 2.0 Configuration to set the runtime security policy
for the DLL to Full Trust. Dunno how I'm going to include that in the final
product installation kit.
The problem arises when I try to install it on an account belonging only to
the 'User' group. Rnnngthesetp as Admnisratrator, the installation appears
to work OK, it copies the DLL etc. to the program Files area but no registry
entries (e.g. including LoadBehaviour) are created for the add-in, it doesn't
appear in the "Add or Remove programs" dialog in Control Panel and (of
course) it doesn't work when Outlook is run.
If I temporarily add the account to the Administrators group prior to
installation and then take Administrator away after, it does all work.
Is there some way I can get the setup to work for unprivileged users? The
key problem seems to be that it doesn't install when setup is 'run as' an
administrator
thanks
Mike