Question

I developped an xll with visual studio 2010 and excel 2010. it works fine on excel on the computer where visual is installed. But now, i'm trying to use my xll in a computer where visual is not installed, so i want to create a setup.

In fact, i tried to execute my xll on a windows where nothing is installed (only excel 2010) : it's not working. So i have installed "visual 2010 C++ redistribuable package" in X64 and X86. After i tried again to execute my xll in excel and it's not working again.

Edit : I used "depends.exe" on my two xll. On the xll which is not working, the C:\windows\system32\SHLWAPI.DLL has a red picture on the left but the xll which is working has not this dll on error :

error with depends.exe

So my question is what the xll need in addtion to the C++ package to be execute on a computer without visual ?

Or do you have a simply method to create a setup for an xll (i have created a setup with visual and it's not working so maybe there is an other method...).

Was it helpful?

Solution 3

Problem solved :

first you need to install the redistributable of you development environment (http://www.microsoft.com/downloads/fr-fr/details.aspx?FamilyID=c68ccbb6-75ef-4c9d-a326-879eab4fcdf8) for VS2010 with Service Pack 1 (http://www.microsoft.com/en-us/download/details.aspx?id=8328) for VS.

In a second time you need to install Visual Studio 2010 tools for Office Runtime (http://www.microsoft.com/downloads/fr-fr/details.aspx?familyid=06c32242-2289-4471-93aa-ce96aa5cbc36)

OTHER TIPS

There are separate redistributions of the C/C++ runtime for the release version of VS 2010 (http://www.microsoft.com/en-us/download/details.aspx?id=5555) and VS 2010 with Service Pack 1 (http://www.microsoft.com/en-us/download/details.aspx?id=8328), and you need to install the one matching your development environment.

An alternative would be to change to static linking of the C/C++ runtime for your add-in.

Setting the Runtime Library

Also check that your Excel macro security is not set to 'high' or a setting that disables add-ins.

Use http://xll.codeplex.com to create xll's and you won't have to worry about this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top