Hi Jialiang,
Would you help to check whether the correct version of VSTO runtime is
installed in the destination system? To check it, please go to the
registry
setting:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\vsto runtime Setup\v8.0.50727
It should have a registry key there: Update = 2. If you could not find
the
registry key or the registry key equal 1, please download the runtim from
http://www.microsoft.com/downloads/details.aspx?FamilyID=4468D8CB-B43E-4B09-
82F6-8BA3F7B5E935&DisplayLang=en#filelist
and reinstall it.
I'm only presuming that you mean "v2.0.50727"? as I have VSTO SE
installed, as I have done it manually too with no luck. Update = 2 as
well, this is a check that I have upon installation that I mentioned in my
previous post.
Another check is whether the assembly or folder in the VSTO solution is
granted with full trust permissions. Please refer to the MSDN article.
http://msdn2.microsoft.com/en-us/library/zdc263t0(VS.80).aspx
Well following the instructions I found previously, I have a custom
action being run upon install which has the following properties,
(Name) Set Security
Condition <empty>
CustomActionData /assemblyName="MyOfficeAddin.dll"
/targetDir="[TARGETDIR]\" /solutionCodeGroupName="MyCompany.MyOfficeAddin"
/solutionCodeGroupDescription="Code group for MyOfficeAddin"
/assemblyCodeGroupName="MyOfficeAddin.dll"
/assemblyCodeGroupDescription="Code group for MyOfficeAddin"
/allUsers=[ALLUSERS]
EntryPoint <empty>
InstallerClass <True>
SourcePath F:\Visual Studio
2005\Projects\MyOfficeAddin\SetSecurity\obj\Release\SetSecurity.dll
--------
Quote from the article @
http://msdn2.microsoft.com/en-us/li...gh_creatinginstallerpackagestodeploysolutions
To add the custom action data for the Install method
1.. In the Custom Actions editor, expand Install.
2.. Right-click Primary output from SetSecurity (Active), and then click
Properties Window.
3.. In the Properties window, set the CustomActionData property to the
following string. Enter this as one long string, and change MyCompanyName
to your company name.
Copy Code
/assemblyName="ExcelApplication.dll" /targetDir="[TARGETDIR]\"
/solutionCodeGroupName="MyCompanyName.ExcelApplication"
/solutionCodeGroupDescription="Code group for ExcelApplication"
/assemblyCodeGroupName="ExcelApplication"
/assemblyCodeGroupDescription="Code group for ExcelApplication"
/allUsers=[ALLUSERS]--------
The custom action seems to run fine and an InstallState file is created
in the directory.
But the main thing that is concerning me is that Visual Studio 2005
clearly says that my project has a depedency on
Microsoft.VisualStudio.Tools.Applications.Runtime.dll, but this DLL is not
on the system even though VSTO is installed.
Could this be the problem? If I look at the COMM Ad-ins dialog in Word
and check the box for "MyOfficeAddin", and press okay, nothing happens.
If I go back into the dialog, the dialog is unchecked and the load
behavior still says "Load at Startup" rather than saying that an error had
occured.
I notice that the location of the Add-in refers to the manifest file,
presumably this is correct?
The third check is the language setting of Windows in the destination
system. If any end users run your solutions using an English version of
Visual Studio with non-English settings for Windows, install the Visual
Studio Tools for Office Language Pack to see Visual Studio Tools for
Office
runtime messages in the same language as Windows. The Visual Studio Tools
for Office Language Pack is available from the Microsoft Download Center
(
http://www.microsoft.com/downloads). Non-English versions of Visual
Studio
automatically install the language pack.
I shall add this to the prerequisites list, but I don't see that it can
be causing the current problem as I am developing and testing on my own
systems, which all have the same locale setup.
For application-level add-ins, create the registry keys required to run
the
add-in on the client computer. For more information, see Deploying
Application-Level
Add-ins.
http://msdn2.microsoft.com/en-us/library/ms269007(VS.80).aspx
At current I am only trying to get it to install for the current user.
Cheers for your help, unfortunately it's still not working, but I shall
have more looks. I am also confused as to why I am not recieving any
error information whatsoever, I can only presume that the load process is
failing so early on that it doesn't get detected...
Nick.