<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx</link><description>Another FAQ from VC++ Express users is: "I give my VC++ application to my friend, and it does not run on her computer." This happens because VC++ Dlls have to be redistributed to another computer together with this application. There are three ways to</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1234591</link><pubDate>Fri, 08 Dec 2006 01:10:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1234591</guid><dc:creator>Mikael</dc:creator><description>&lt;p&gt;What is this utter nonsense?&lt;/p&gt;
&lt;p&gt;“Clearly I assume that you have read the EULA and redist.txt and do understand that redistribution of debug applications is not allowed. “&lt;/p&gt;
&lt;p&gt;I need, or actually I'm required by our clients, to distribute full debug builds of all our products to our clients end user test and quality control groups. We may be talking about several hundred installations for some of our clients.&lt;/p&gt;
&lt;p&gt;So what your actually saying is that VC 8 is completely out of the question as a development tool for us and the occasional developer at the client site?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1235060</link><pubDate>Fri, 08 Dec 2006 01:30:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1235060</guid><dc:creator>NikolaD</dc:creator><description>&lt;p&gt;Mikael,&lt;/p&gt;
&lt;p&gt;Neither EULA for any version of Visual Studio allows you to redistribute debug versions of VC++ libraries. It was never legal and it is not a new policy in VC8. If you would like to discuss your situation, you are welcome to contact me offline using my email nikolad at microsoft dot com. &lt;/p&gt;
&lt;p&gt;Nikola&lt;/p&gt;
</description></item><item><title>mahtar.net  &amp;raquo; Blog Archive   &amp;raquo; Deploying application written in Visual C++ 2005 Express</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1438115</link><pubDate>Tue, 09 Jan 2007 08:20:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1438115</guid><dc:creator>mahtar.net  » Blog Archive   » Deploying application written in Visual C++ 2005 Express</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://mahtar.net/?p=32"&gt;http://mahtar.net/?p=32&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1439944</link><pubDate>Tue, 09 Jan 2007 21:13:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1439944</guid><dc:creator>Mahtar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First thing, Nikola, thanks for the solution. &lt;/p&gt;
&lt;p&gt;I was really surprised when i got error trying to run my application written in VC++ 2005 Express on machine without VC++. I thought, &amp;quot;Ok, we need to install .NET Framework 2.0 &amp;quot; but when i saw it is installed I was even more surprised! After searching internet i found it wasn't only my problem. I found 2 solutions that worked for me but i still think the whole problem it's a some kind of misunderstanding! Why do I have to redistribute some other files with my executable when the whole point of .NET Framework is to keep all the components and libraries inside it, or am I wrong?&lt;/p&gt;
&lt;p&gt;I think the best solution would be to in this case to embeded needed libraries in executable, it's obvious way of thinking considering I have to redistribute those files with my application anyway. &lt;/p&gt;
&lt;p&gt;So here's my question. Is it possible to comile .exe file with emeded libraries needed to run it other machine in VC++ 2005 Express?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1439987</link><pubDate>Tue, 09 Jan 2007 21:33:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1439987</guid><dc:creator>NikolaD</dc:creator><description>&lt;p&gt;Hi Mahtar,&lt;/p&gt;
&lt;p&gt;Here are some quick answers to your questions. &lt;/p&gt;
&lt;p&gt;&amp;gt; Why do I have to redistribute some other files with my executable when the whole point of .NET Framework is to keep all the components and libraries inside it, or am I wrong?&lt;/p&gt;
&lt;p&gt;VC++ libraries are built in native code primarily (CRT, MFC, ATL, etc). Except CRT and SCL, they are not part of .Net Framework for that reason. However several components out of libraries are built in managed code. Such CRT and SCL are used by managed code written in C++ and they are included in .Net Framework because of parts of .Net FX use C++. If you only use CRT and Std. C++ Library, you can only redistribute .Net Framework.&lt;/p&gt;
&lt;p&gt;&amp;gt; Is it possible to compile .exe file with embeded libraries needed to run it other machine in VC++ 2005 Express?&lt;/p&gt;
&lt;p&gt;This is static linking of libraries. Check documentation for /MT[d] switch and topics on static linking of MFC and CRT libraries. &lt;/p&gt;
&lt;p&gt;Static linking is not recommended in general case and should be avoided when possible. More on this here &lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/ms235316"&gt;http://msdn2.microsoft.com/en-us/library/ms235316&lt;/a&gt;(VS.80).aspx&lt;/p&gt;
&lt;p&gt;Nikola&lt;/p&gt;
</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1472417</link><pubDate>Mon, 15 Jan 2007 21:59:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1472417</guid><dc:creator>Cary Jones</dc:creator><description>&lt;p&gt;I am getting the following error after step 8c:&lt;/p&gt;
&lt;p&gt;C:\WIX\VCCRT.wxs(29) : fatal error LGHT0034: Cannot open merge module 'CRT' at path 'D:\Program Files\Common Files\Merge Modules&lt;/p&gt;
&lt;p&gt;I'm sure this is because the drive letter the WIX folder is in is C: not D:. &amp;nbsp;How can i fix this? &amp;nbsp;This seems to be the only problem.&lt;/p&gt;
&lt;p&gt;Cary&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1479579</link><pubDate>Tue, 16 Jan 2007 21:22:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1479579</guid><dc:creator>NikolaD</dc:creator><description>&lt;p&gt;Cary,&lt;/p&gt;
&lt;p&gt;You need to find where MSMs are installed on your computer. It may be C: or D: or any other drive. In my case, they were installed in D:\Program Files\Common Files\Merge Modules\. There are four merge modules with CRT library installed by VC++ Express listed below:&lt;/p&gt;
&lt;p&gt;D:\Program Files\Common Files\Merge Modules\&lt;/p&gt;
&lt;p&gt;microsoft_vc80_crt_x86.msm&lt;/p&gt;
&lt;p&gt;policy_8_0_microsoft_vc80_crt_x86.msm&lt;/p&gt;
&lt;p&gt;microsoft_vc80_debugcrt_x86.msm&lt;/p&gt;
&lt;p&gt;policy_8_0_microsoft_vc80_debugcrt_x86.msm&lt;/p&gt;
&lt;p&gt;Nikola&lt;/p&gt;
</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1536899</link><pubDate>Fri, 26 Jan 2007 17:03:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1536899</guid><dc:creator>Michael Faraday</dc:creator><description>&lt;p&gt;So, how exactly are we supposed to distribute applications developed with VC++ Express?&lt;/p&gt;
&lt;p&gt;The very fact that we have to go through all of this contorted nonsense to create something that will run on another PC makes me believe that Microsoft never really intended us to distribute VC++ Express applications. &amp;nbsp;If they had wanted us to distribute VC++ Express applications, they would have provided us with a tool to make a quick-and-easy deployment package.&lt;/p&gt;
&lt;p&gt;I really can't believe that the approach outlined here is the only way to distribute a &amp;quot;.exe&amp;quot; file.&lt;/p&gt;
&lt;p&gt;Please tell me I'm missing something here.&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1537526</link><pubDate>Fri, 26 Jan 2007 20:46:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1537526</guid><dc:creator>NikolaD</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;With VC++ Express there are two options:&lt;/p&gt;
&lt;p&gt;A) Using VCRedist.EXE that can be downloaded from MSDN site. More details in another post, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/nikolad/archive/2006/04/11/Download-location-for-VCRedist.aspx"&gt;http://blogs.msdn.com/nikolad/archive/2006/04/11/Download-location-for-VCRedist.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A) Using MSMs, as I described in this post.&lt;/p&gt;
&lt;p&gt;There are more information on deployment in MSDN, &lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/ms235299"&gt;http://msdn2.microsoft.com/en-us/library/ms235299&lt;/a&gt;(VS.80).aspx and there are topics about this on forums, &lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=29"&gt;http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=29&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Nikola&lt;/p&gt;
</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1557856</link><pubDate>Tue, 30 Jan 2007 20:12:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1557856</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi Nikola,&lt;/p&gt;
&lt;p&gt;I'm trying to migrate my Win32 apps (c++ using only Win32 API), from Visual Studio 6.0 and Visual Studio 2003 to Visual Studio 2005 Pro. But unfortunately the apps get linked with Msvcr80.dll. I solved this setting in &amp;nbsp;project settings-&amp;gt; C/C++-&amp;gt; Code Generation-&amp;gt; &amp;nbsp;Runtime Library to &amp;quot;Multi-Threaded (/MT). But the apps size are to big. I can't deploy the Visual Studio 5 Libraries cause the apps are installed in thousands of workstations with all kind of Windows versions (95 to 2003). Is there any other option, that I can set to lose the dlls dependency?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1557923</link><pubDate>Tue, 30 Jan 2007 20:30:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1557923</guid><dc:creator>NikolaD</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;I am glad to hear that you are migrating your application to VS2005. It is true that if you build application with VS2005, you at least get dependency on VC++ CRT library (msvcr80.dll). You may deploy VC++ libraries on other computers using MSMs, VCRedist.EXE or DLLs+manifest in applocal folder. These options are described in details here: &amp;lt; &lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/ms235299"&gt;http://msdn2.microsoft.com/en-us/library/ms235299&lt;/a&gt;(VS.80).aspx &amp;gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nikola&lt;/p&gt;
</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1608000</link><pubDate>Tue, 06 Feb 2007 04:59:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1608000</guid><dc:creator>Graham Watson</dc:creator><description>&lt;p&gt;[Rant] First of all -- I'm sorry you seem to be so happy to gloss over the removal of the ability to compile Hello World and copy to another computer and expect it to run. I realise VSE is a free product, but I don't think this is a trivial issue, and I can't believe it isn't addressed as a standard part of the distribution. Take a step back and compare it with other compiler vendors for example. If they gave the answer you have above I'd bin their product instantly (even if it was free -- and many are). Bring back Visual C++ 6! [/Rant] Sorry I know it's not really your responsibility. I just had to vent.&lt;/p&gt;
&lt;p&gt;Is it possible to link with static copies of the standard libraries instead? I would much prefer it in light of some of the problems (not least the quality of the error messages). Or would I be forced to switch to a different compiler to do that?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;PS: Can you at least publish generic .msi files to save us going through the 11 point plan you proposed?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1608082</link><pubDate>Tue, 06 Feb 2007 05:14:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1608082</guid><dc:creator>NikolaD</dc:creator><description>&lt;P&gt;Graham,&lt;/P&gt;
&lt;P&gt;Requirement to redistribute VC++ DLLs is not to VS2005. Even with VC6 you need to redistribute VC++ Dlls on another computer. It just happens that Windows team has also been using VC6 versions of VC++ Dlls when XP was built and they have installed that version of libraries on every computer with Windows. However this is not the same version of CRT you have on your developer machine installed by VS6. Windows continue maintaining that version of CRT, ATL and MFC which is VC6 based but contains long list of changes never released in VC6.&amp;nbsp;&amp;nbsp;If you run your application on these versions of DLLs, behavior of your application may be different from what you expect and what you have tested with VC6 DLLs. To conclude, you always have to redistribute VC++ DLLs with which you have tested your application, no matter this is VC6, VC7, VC71 or VC8.&lt;/P&gt;
&lt;P&gt;Yes, you can statically link and there is VCRedist package that can be downloaded from the web. Please see &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms235316(VS.80).aspx"&gt;MSDN &lt;/A&gt;for more information.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nikola&lt;/P&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1626755</link><pubDate>Thu, 08 Feb 2007 15:14:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1626755</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Hi Nikola,&lt;/p&gt;
&lt;p&gt;I am developing C++ applications with VS 2005 Express and Pro. I've also had the deployment-to-another-computer problem. I understand you can solve this &lt;/p&gt;
&lt;p&gt;a) by static linking (not good for many reasons)&lt;/p&gt;
&lt;p&gt;b) by installing the VCredist_x86.exe package (ok but sometimes it's inconvenient to force users to install this first and then install one's product)&lt;/p&gt;
&lt;p&gt;c) by creating the MSI installer&lt;/p&gt;
&lt;p&gt;Now about point c). You describe a rather involved procedure to do that, which includes using some third-party tools (WiX), some manual editing, etc. My question is: isn't it possible to automate this procedure _completely_ from the VS environment? I.e. that instead of an .exe, VS would produce the .msi file? If not, could you explain the reasons behind having this complex deployment procedure which actually involves third-party tools instead of having it in some way automated from VS?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1627253</link><pubDate>Thu, 08 Feb 2007 16:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1627253</guid><dc:creator>Karsten</dc:creator><description>&lt;p&gt;VCRedist package and SP1 is &amp;quot;The Next Generation of DLL Hell&amp;quot;. I am glad to work with the _RTM define, because I have to internal release today. (mad)&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#1628821</link><pubDate>Thu, 08 Feb 2007 21:33:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1628821</guid><dc:creator>NikolaD</dc:creator><description>&lt;p&gt;Alex,&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; isn't it possible to automate this procedure _completely_ from the VS environment? &lt;/p&gt;
&lt;p&gt;Yes, VS has setup project that you can use to build a simple MSI. It may not generate and MSI that meets requirements of enterprise-level deployment. However &amp;nbsp;it allows creating simple MSIs that meet most of requirements. You may find more information in docs, (&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/ms227381"&gt;http://msdn2.microsoft.com/en-us/library/ms227381&lt;/a&gt;(VS.80).aspx)&lt;/p&gt;
&lt;p&gt;Karsten,&lt;/p&gt;
&lt;p&gt;Please make sure you do reasonable amount of testing before using _USE_RTM_VERSION define for reasons I have mentioned in my reply on forums, (&lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1034641&amp;amp;SiteID=1&amp;amp;PageID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1034641&amp;amp;SiteID=1&amp;amp;PageID=1&lt;/a&gt;). If you are not interested in your application taking advantage of security and reliability related changes delivered in SP1 version of VC++ libraries, you may just uninstall SP1 and continue using RTM version of VS.&lt;/p&gt;
</description></item><item><title>Workaround for using VS2005 SP1 version of VCRedist.EXE within a boostrapper (setup.exe)</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2012917</link><pubDate>Mon, 02 Apr 2007 19:47:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2012917</guid><dc:creator>Nikola Dudar's WebLog</dc:creator><description>&lt;p&gt;A reader of the previous post on my blog has posted two questions about using SP1 version of VCRedist.EXE&lt;/p&gt;
</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2040571</link><pubDate>Fri, 06 Apr 2007 18:42:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040571</guid><dc:creator>Marcos</dc:creator><description>&lt;p&gt;First: thank you, thank you, thank you.&lt;/p&gt;
&lt;p&gt;i've been looking for a workaround to my program not working in other machines despite the redist being installed, and after it was working, it seems because the redist is not compatible with the SP1 of VC++ express.&lt;/p&gt;
&lt;p&gt;Your instructions are clear and easy to follow.&lt;/p&gt;
&lt;p&gt;1 note: i did not find the uuidgen available at the VS command prompt, and had to use: &lt;/p&gt;
&lt;p&gt;C:\Program Files\Microsoft Visual Studio 8\VC&amp;gt;&amp;quot;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\Uuidgen.exe&amp;quot; -n2&lt;/p&gt;
&lt;p&gt;it would be good if you added a note to this blog that the redist is not available yet for sp1 VS express (but wouldn;t it be better if the redist was made available together with the development platform?)&lt;/p&gt;
&lt;p&gt;thank you again&lt;/p&gt;
&lt;p&gt;Marcos&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2040733</link><pubDate>Fri, 06 Apr 2007 19:10:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040733</guid><dc:creator>Marcos</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt; isn't it possible to automate this procedure _completely_ from the VS environment? &lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; Yes, VS has setup project that you can use to build a simple MSI. ...&lt;/p&gt;
&lt;p&gt;is this also available in VC++ Express ?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2136896</link><pubDate>Sun, 15 Apr 2007 01:18:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2136896</guid><dc:creator>Mauro Sérgio Lima França</dc:creator><description>&lt;p&gt;Dear Mr. Dudar:&lt;/p&gt;
&lt;p&gt;Congratulations for this blog, excellent!&lt;/p&gt;
&lt;p&gt;I followed exactly the steps you described to creat the installer, when I move to other PC, the installer works fine, but when I click on my .EXE file, I get that famous message box:&amp;quot;This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&amp;quot;&lt;/p&gt;
&lt;p&gt;Rookie Question: how do I make sure that my application is being built in release mode?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;mauro&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2271748</link><pubDate>Wed, 25 Apr 2007 15:56:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2271748</guid><dc:creator>Christopher Frenning</dc:creator><description>&lt;p&gt;Does Microsoft have a place where updated MSM files can be downloaded? On my machine i have one MSM called &amp;quot;Visual C++ 8.0 CRT (x86) WinSXS MSM Beta2&amp;quot;, which is version 8.0.50727.42. However, when I build an application, the manifest says it want to use 8.0.50727.762. Is this version available in an MSM file somewhere?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2371503</link><pubDate>Wed, 02 May 2007 12:41:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2371503</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;I would like the answer to Christopher Frenning's question too please.&lt;/p&gt;
&lt;p&gt;I understood VS2005 SP1 should install version 762 but I have installed this and I still have version 42 although the VCREDIST.EXE I have contains 762. I want to use the merge modules however and cant find the 762 versions anywhere&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2388981</link><pubDate>Thu, 03 May 2007 10:14:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2388981</guid><dc:creator>Anton</dc:creator><description>&lt;p&gt;Hello, Nikola &lt;/p&gt;
&lt;p&gt;microsoft_vc80_debugcrt_x86.msm in &amp;quot;C:\Program Files\Common Files\Merge Modules&amp;quot; installs C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c. &lt;/p&gt;
&lt;p&gt;_8.0.50727.42_&lt;/p&gt;
&lt;p&gt; But what about _8.0.50727.762_ DebugCRT?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2396870</link><pubDate>Thu, 03 May 2007 19:58:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2396870</guid><dc:creator>NikolaD</dc:creator><description>&lt;p&gt;Anton,&lt;/p&gt;
&lt;p&gt;762 version is VS2005 SP1 version of VC++ libraries. VS2005 SP1 update supposed to overwrite RTM version of MSMs on your computer with the SP1 version of MSMs. &amp;nbsp;If after installing VS2005 SP1, you still see RTM version &amp;nbsp;of MSMs on your hard-drive, something went wrong during install. Heath keeps track of all installation issues with VS2005 SP1 and publishes work around on his blog, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/heaths/"&gt;http://blogs.msdn.com/heaths/&lt;/a&gt;. Check out for example list of known issues, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/heaths/"&gt;http://blogs.msdn.com/heaths/&lt;/a&gt;archive/2007/01/11/known-issues-with-visual-studio-2005-service-pack-1.aspx Usually repair of installation helps to update all files installed by VS2005 SP1.&lt;/p&gt;
&lt;p&gt;Nikola&lt;/p&gt;
</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2486050</link><pubDate>Tue, 08 May 2007 23:36:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2486050</guid><dc:creator>Ahmed</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;I used to work with the vcredist.86 but it is no longer work and i do not know why?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#2511159</link><pubDate>Thu, 10 May 2007 01:19:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2511159</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Nikosa... Thanks for this ... very helpfull. &amp;nbsp;The problem I have is that in release version, I still get &amp;quot;The system cannot execute the specified program.&amp;quot; and dependency walker does not show any missing dependency.&lt;/p&gt;
&lt;p&gt;Any suggestion ?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#4042114</link><pubDate>Wed, 25 Jul 2007 15:00:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4042114</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Hello Nicola,&lt;/p&gt;
&lt;p&gt;I have to say: All three mentioned methods (statically linking, using this 3rd party tool Wix and this distribution package) are very unhandy even it would work, which means no one of the above methods worked for me.&lt;/p&gt;
&lt;p&gt;First approach: The Wix method: &lt;/p&gt;
&lt;p&gt;I do not have an exe called uuidgen.exe. I searched in all my programm folders and in the windows folder as well. I have installed MS C++ 2005 (Version 8.0.50727.762)&lt;/p&gt;
&lt;p&gt;Second approach: Installing Framework and this redistribution package on the second PC. The error is the same as without installing anything: application configuration is incorrect.&lt;/p&gt;
&lt;p&gt;My project is a Visual C++ Windows Forms Application. On the PC where the VC++ Express Edition is installed both, the debug and the release exe work. It is a very simple application with a serial port instance to send some data to a controller board. (I didn't intend to give it to anybody but now our customer likes the little prog and wants it without installing VC++)&lt;/p&gt;
&lt;p&gt;Statically linking:&lt;/p&gt;
&lt;p&gt;1&amp;gt;LINK : warning LNK4044: unrecognized option '/MT'; ignored&lt;/p&gt;
&lt;p&gt;As I would like to give the &amp;quot;uC bord testing application&amp;quot; to our customer aqnd so I would be very happy for any help to get one of these three approaches working. But, as some have mentioned already before:&lt;/p&gt;
&lt;p&gt;What Microsoft does is a NIGHTMARE! This is the worst thing ever. Developers should spend their time in beeing creative and not in &amp;quot;this administrative stuff&amp;quot;.&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#4115652</link><pubDate>Sun, 29 Jul 2007 11:39:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4115652</guid><dc:creator>zzz</dc:creator><description>&lt;p&gt;Marco, if you're doing anything with C++ you'll sooner or later want the Windows SDK (previously Platform SDK). It's potentially big download but the options can be set so that it's under 200 MB with basic stuff for usermode development.&lt;/p&gt;
&lt;p&gt;And it should have the uuidgen and bunch of other very useful tools you don't find elsewhere such as graphedit.&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#4115667</link><pubDate>Sun, 29 Jul 2007 11:40:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4115667</guid><dc:creator>zzz</dc:creator><description>&lt;p&gt;And the VS C++ IDE should also have uuidgen type of tool integrated, look in the menus! Atleast the full version, not sure about Express.&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#4146830</link><pubDate>Tue, 31 Jul 2007 15:04:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4146830</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;uuidgen is part of Windows SDK. Now the wix method works and I could run the prog on another pc. &amp;nbsp;Thanks for the hint.&lt;/p&gt;
&lt;p&gt;I think these steps could be easily integrated in VS C++ Express and would save a lot of people a lot of time.&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#6303980</link><pubDate>Fri, 16 Nov 2007 17:40:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6303980</guid><dc:creator>Kelvin</dc:creator><description>&lt;p&gt;Hi Nikola,&lt;/p&gt;
&lt;p&gt;I try to deploy my VC++ 2005 EE application (window form) in target computer as you suggest (create a msi file). However, my application using DLL files (from OpenCV). Could you pls help me in these questions:&lt;/p&gt;
&lt;p&gt;1. If my application is window form, do I need to install .NET framework 2.0 in target computer?&lt;/p&gt;
&lt;p&gt;2. I found the required DLL files in System32 (in developer computer). Do I need to copy them to the System 32 folder in target computer or copy it in the same folder with my exe file?&lt;/p&gt;
&lt;p&gt;Thanks a lot bro.&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#6446885</link><pubDate>Wed, 21 Nov 2007 03:03:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6446885</guid><dc:creator>starman</dc:creator><description>&lt;p&gt;This is fine if all you want to deploy is &amp;quot;Hello World&amp;quot;. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;What about projects that depend on 3rd party libraries/dll's? &amp;nbsp; Like, OGRE, DirectX, Boost, &amp;nbsp;any game engines, physics engines, etc. &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;MSDN suggests using the XCopy approach. &amp;nbsp;It's a joke, &amp;nbsp;what are we supposed to do? &amp;nbsp;Run around to &amp;quot;everyone's&amp;quot; computer and set up their directory files manually? &lt;/p&gt;
&lt;p&gt;VS Express really needs SetUp projects included with the IDE. &amp;nbsp; Until then it's just a toy. &lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#6470840</link><pubDate>Thu, 22 Nov 2007 16:53:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6470840</guid><dc:creator>Lars</dc:creator><description>&lt;p&gt;Hello Nikola&lt;/p&gt;
&lt;p&gt;Very thorough how-to. But I don't really get the point of creating a a custom .msi out of the merge modules unless you've included your own program in the .msi that you end up with. &lt;/p&gt;
&lt;p&gt;You might as well just distribute the vcredist_x86.exe along with your program then.&lt;/p&gt;
&lt;p&gt;Either way the consumer has to run two installation files unless you package the two in a setup but then you will have a .msi, a setup.exe and another .msi file and a good chance that the user installs only one of them and expects the program to run.&lt;/p&gt;
&lt;p&gt;Only reasonable answer to me is file size.&lt;/p&gt;
&lt;p&gt;I reserve the right to become wiser&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#6560200</link><pubDate>Wed, 28 Nov 2007 00:26:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6560200</guid><dc:creator>Mahmoud</dc:creator><description>&lt;p&gt;Hello Nikola, &lt;/p&gt;
&lt;p&gt;Thank you for the solution but I have some problems.. I am using VS.net 2003 so and I have VC++ 7 .&lt;/p&gt;
&lt;p&gt;everything runs fine apart that I get an while running the light.exe due to that the file policy_8_0_Microsoft_VC80_CRT_x86.msm can't be found. I looked in the location of the merge modules and I found that I don't have such a file. Also I found that I don't have the microsoft_vc80_crt_x86.msm file as well&lt;/p&gt;
&lt;p&gt;I have another bunch of files listed below:&lt;/p&gt;
&lt;p&gt;VC_User_ATL71_RTL_X86_---.msm&lt;/p&gt;
&lt;p&gt;VC_User_CRT71_RTL_X86_---.msm&lt;/p&gt;
&lt;p&gt;VC_User_MFC71_Loc_RTL_X86_---.msm&lt;/p&gt;
&lt;p&gt;VC_User_MFC71_RTL_X86_---.msm&lt;/p&gt;
&lt;p&gt;VC_User_STL71_RTL_X86_---.msm&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#6969303</link><pubDate>Thu, 03 Jan 2008 19:17:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6969303</guid><dc:creator>Matti</dc:creator><description>&lt;p&gt;What have I missed?&lt;/p&gt;
&lt;p&gt;Installed vcredist_x86, Reinstalled NET Framework2.0.&lt;/p&gt;
&lt;p&gt;Still no go with an application built in Visual C++ Express 2005, deployed to other computer.&lt;/p&gt;
&lt;p&gt;&amp;quot;This application has failed to start because the application configuration is incorrect. Reintsalling....&amp;quot;&lt;/p&gt;
&lt;p&gt;Any help? Anyone?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#7353865</link><pubDate>Thu, 31 Jan 2008 20:09:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7353865</guid><dc:creator>Sandy</dc:creator><description>&lt;p&gt;I have installed VC2005 installed on my machine. We have our own build scripts which uses VC8 SP1 binaries. When i run the debug executables on my machine it gives the error: &amp;quot;This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.&amp;quot;&lt;/p&gt;
&lt;p&gt;Any suggestions!&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#8328696</link><pubDate>Fri, 21 Mar 2008 11:05:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8328696</guid><dc:creator>petrhlavka</dc:creator><description>&lt;p&gt;Thanks for the comprehensive example.&lt;/p&gt;
&lt;p&gt;I have a minor issue with the msi package size. I'm trying to prepare a msi package for installing the VC80 CRT redists. The merge module size for x86 is about 630 kB, however, the msi package prepared by wix has 2 MB. There is no such problem for x64 CRT redists.&lt;/p&gt;
&lt;p&gt;The only way I've found for reducing the msi size is setting CompressionLevel for embeded cab to none and then packing the msi with zip, rar, ... Anyone knows any better solution?&lt;/p&gt;
</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#8625267</link><pubDate>Fri, 20 Jun 2008 14:52:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8625267</guid><dc:creator>kibitzer</dc:creator><description>&lt;p&gt;Thank you Nikola, this post saved my day. Really BIG Thank You ! ;)&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#8853581</link><pubDate>Tue, 12 Aug 2008 23:57:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8853581</guid><dc:creator>Jennifer Kreitzer</dc:creator><description>&lt;p&gt;This seems to be the definitive page on this topic so thanks for creating and maintaing.&lt;/p&gt;
&lt;p&gt;1. Why aren't all of the VC6/VC7/VC7.1/VC8 C runtime DLLs installed by default in Vista? &amp;nbsp;Why make the end user or developer jump through hoops to get the program to exectute?&lt;/p&gt;
&lt;p&gt;2. Can we catch the wrong runtime error programatically and design a dialog that could point to the vcredist download page?&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#8958332</link><pubDate>Fri, 19 Sep 2008 10:13:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8958332</guid><dc:creator>Arps</dc:creator><description>&lt;p&gt;I am using the VS2005 and BOOST.... my application is building but i am not able to run the application b'coz of this error :-&lt;/p&gt;
&lt;p&gt;&amp;quot;This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.&amp;quot;... &lt;/p&gt;
&lt;p&gt;can anyone help please??&lt;/p&gt;</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#9011050</link><pubDate>Wed, 22 Oct 2008 15:36:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011050</guid><dc:creator>rbroadbridge</dc:creator><description>&lt;p&gt;This is probably simple for you chaps.&lt;/p&gt;
&lt;p&gt;I have a VC++ program which requires the MFC and CRT dlls to run.&lt;/p&gt;
&lt;p&gt;I compile the program using cl/clr.&lt;/p&gt;
&lt;p&gt;I generate signed application and deployment manifests using mage.&lt;/p&gt;
&lt;p&gt;I am trying to deploy it using ClickOnce.&lt;/p&gt;
&lt;p&gt;I have used ClickOnce successfully in a previous version of my program which didn't need the MFC components.&lt;/p&gt;
&lt;p&gt;My ClickOnce install fails on a clean target with an error (eg) &amp;quot;Cannot copy mfc90.dll - file already exists&amp;quot;&lt;/p&gt;
&lt;p&gt;I believe it's because it (a) reads the microsoft.vc90.mfc manifest, and then installs the dlls' referenced in this manifest; and then (b) tries to &lt;/p&gt;
&lt;p&gt;copy the dll's again because they are seperately defined in the ClickOnce application manifest.&lt;/p&gt;
&lt;p&gt;If I don't include the MFC dll's (eg mfc90.dll) in the distribution folder, then the install fails because it can't find the required components of &lt;/p&gt;
&lt;p&gt;microsoft.vc90.mfc.&lt;/p&gt;
&lt;p&gt;And if I do include the dll's it tries to copy them twice and fails!&lt;/p&gt;
&lt;p&gt;All help appreciated...&lt;/p&gt;
</description></item><item><title>re: Running C++ application built by VC++ Express on another computer</title><link>http://blogs.msdn.com/nikolad/archive/2005/09/02/running-c-application-built-by-vc-express-on-another-computer.aspx#9110208</link><pubDate>Mon, 17 Nov 2008 16:49:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9110208</guid><dc:creator>edu</dc:creator><description>&lt;p&gt;help please,&lt;/p&gt;
&lt;p&gt;what is this?&lt;/p&gt;
&lt;p&gt;&amp;quot;This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.&amp;quot;&lt;/p&gt;</description></item></channel></rss>