473,378 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

C++/CLI redistribution

Hi,

I'm trying to deploy an application written in C++, C++/CLI and C# on
pc's that do not have VC2005 installed. I am having issues with
assemblies loading, in particular the C++/CLI one and am getting
FileLoadException when it tries to load the dll. I know I can get
round this problem by running Vcredist_x86.exe - this sorts it out and
sets the pc up so that it can run VS2005 apps.

My problem however is that not everybody is able to run this exe as
you need admin rights as it's an installer, so I just want to be able
to ship the appropriate dlls with the application. These can be found
in the folders in \Program Files\Microsoft Visual Studio 8\VC\Redist
\x86\ in my installation. However, even with these dlls present in the
application directory (both within their directory structures and just
all copied straight into the root directory), I'm still getting the
FileLoadException when trying to load the C++/CLI dll. Does anyone
know what else Vcredist_x86.exe does, i.e. what other dlls it puts on
the users pc. I feel like I've tried all avenues but am not getting
anywhere...

There's a lot of detail about this at http://www.codeproject.com/cpp/vcredists_x86.asp
but I've tried it all and the only way I can get it to work is by
running the VcRedist_x86.exe which unfortunately isn't an option.

Thanks, Stuart

Mar 16 '07 #1
1 2938
St**********@gmail.com wrote:
Hi,

I'm trying to deploy an application written in C++, C++/CLI and C# on
pc's that do not have VC2005 installed. I am having issues with
assemblies loading, in particular the C++/CLI one and am getting
FileLoadException when it tries to load the dll. I know I can get
round this problem by running Vcredist_x86.exe - this sorts it out and
sets the pc up so that it can run VS2005 apps.

My problem however is that not everybody is able to run this exe as
you need admin rights as it's an installer, so I just want to be able
to ship the appropriate dlls with the application. These can be found
in the folders in \Program Files\Microsoft Visual Studio 8\VC\Redist
\x86\ in my installation. However, even with these dlls present in the
application directory (both within their directory structures and just
all copied straight into the root directory), I'm still getting the
FileLoadException when trying to load the C++/CLI dll. Does anyone
know what else Vcredist_x86.exe does, i.e. what other dlls it puts on
the users pc. I feel like I've tried all avenues but am not getting
anywhere...

There's a lot of detail about this at
http://www.codeproject.com/cpp/vcredists_x86.asp but I've tried it
all and the only way I can get it to work is by
running the VcRedist_x86.exe which unfortunately isn't an option.
To run with the C/C++ libraries deployed "app local", you need to have
manifest for your application. For an in-depth discussion of some of the
issues, see Richard Grimes article here:

http://www.grimes.demon.co.uk/worksh...WSThirteen.htm .

There's also a lot of information in MSDN, but it's hard to find unless
you've already found it (and hence, know exactly what you're looking for).
This is the top level of the MSDN help for application manifests & the like:

http://msdn2.microsoft.com/en-us/library/aa375193.aspx

Finally, the most direct answer to how to get your application working on a
target machine that doesn't have VS2005 installed without runing vcredist
seems to be this MSDN article:

http://msdn2.microsoft.com/en-us/lib...91(VS.80).aspx

Read clear to the end - the first 1/2 talks about using vcredist, but they
get to the xcopy solution eventually.

-cd
Mar 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mrtulley | last post by:
Does anyone have experience with redistributing 1+ terabyte of data on a P690 under V8.2? We are trying to put our hands around a timeline, and can not find reliable documentation out on the IBM...
1
by: Thomas Holmgren | last post by:
Hi all I've tried to get my hands on the End User License Agreement for MS Visual C# .NET 2003 STANDARD edition, sofar without luck. Does anybody know where I can find the license agreement...
0
by: John Bowman | last post by:
Hi, I've got a simple C# (.NET 1.1) app that will run only on Win2K and WinXP (min IE ver. 5.01) that uses the ax webbrowser control to display a simple hmtl page and disables the right click...
0
by: Programmer .NET | last post by:
I just found a great sample package on Microsofts homepage that i would like to use in my application, maybe even modify it a bit. Its called KBBar .NEt and can be found here:...
4
by: Tal McMahon | last post by:
Hello all, I have an App that I would like to use a few of the Office dll on. What license do I need to have to include the DLL for people that do not (god forbid) have Office on their computer?...
1
by: BobAchgill | last post by:
How can I found about this subject. I followed Peter Huang's advice from an old post but option 4 for the Microsoft phone he gave is no longer valid. What are people doing when they want to...
0
by: cappa | last post by:
Hi, i've a problem with a visual basic .net application that use excel. In local everything is fine, but i've to install this application in sometoher computer, and theese pc don't have the same...
2
by: Jex | last post by:
Hi Friends, I Want to redistribute MS Excel, MS Outlook and Sql Server 2000 DTS with my asp.net application setup (VS 2005). Possible? how can I do this? help pls. Thank you
4
by: Rossouw | last post by:
I have developed an application that creates Excel and Word documents, hence, Interop.Word.dll and Interop.Excell.dl asre being included into the installation package. May I redistribute these...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.