亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

Howto: Deploy VC2008 apps without installing

系統 1999 0

There are several reasons for xcopy deployment of an application (also known as application local). One main reason is that you are independent of what the target computer has installed.
Also your application always uses the “correct” (or better: tested) version of DLLs, regardless of what MS installed or updated (see: ? .NET2 SP1 update breaks ? old apps!? ).

The easiest way to overcome the problem is to ? link static against the CRT/MFC . But in some scenarios this is not an option and not possible.

But to be independent from OS updates or from ? vcredist_x86.exe ? installations of other apps, you need to do the following steps:

  • Remove the auto-generation of manifests (from all DLLs) and change the manifest generation form your EXE to an external manifest; you can do this by choosing: Project|Properties|Configuration Properties|Manifest Tool|Input and Output|Embed Manifest: No
  • Recompile your application and modify the external manifest as follows:
  • Copy your application and the external manifest to your deployment directory
  • Open the manifest-file (appname.exe.manifest) and remove the “publicKeyToken” from all MFC/CRT/ATL/OpenMP entries. Please leave the publicKeyToken to the “Microsoft.Windows.Common-Controls” entry.
  • Copy all neccessary directories under %ProgramFiles%\Microsoft Visual Studio 9.0\VC\redist\x86 to your deployment directory
  • In all sub-directories (Microsoft.VC90.CRT, optional: Microsoft.VC90.MFC, Microsoft.VC90.ATL, Microsoft.VC90.OPENMP, Microsoft.VC90.MFCLOC) open the manifest-file and also remove the publicKeyToken
  • Also lookup the version info from these manifest files and correct the version-info of the corresponding entries in your application manifest file
  • Save all manifests and let your program run; it should now run on all supported OS without installing anything…

After doing all these manifest stuff you can also embed the manifest into your application (EXE). And of course: The same can be done with x64 and IA64 apps.

I have made an example of ? the default MFC app (4.6 MB) ? for reference.

The (simple) manifests for the new MFC feature pack and the application looks like:

Application.exe.manifest

    
      
        
          
            
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
    
  

Microsoft.VC90.CRT.manifest

    
      
        
          
            
              
              
            
          
        
      
    
  

Microsoft.VC90.MFC.manifest

    
      
        
          
            
              
                
                
              
            
          
        
      
    
  

Instead of putting the “Microsoft.VC90.MFC” and “Microsoft.VC90.CRT” directories into the application folder, you can also just put the files from these folders into the application directory. The main advantage is, that your app will also work on W2k-SP4.

Here is also my older post for VS2005.

?

?

from: http://blog.kalmbach-software.de/2008/05/03/howto-deploy-vc2008-apps-without-installing-vcredist_x86exe/

Howto: Deploy VC2008 apps without installing vcredist_x86.exe


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国产精品福利在线观看入口 | 国产精品一久久香蕉产线看 | 特级毛片在线 | 狠狠亚洲婷婷综合色香 | 亚洲一区二区成人 | 国产欧美一区二区成人影院 | 亚欧在线精品免费观看一区 | 伊人久久大香焦 | 国产精品国产三级国产专区5o | 国内精品久久久久影 | 色婷婷视频在线 | 国产真实一区二区三区 | 国产看片视频 | 男人午夜 | 情趣视频网站在线观看 | 亚洲香蕉一区二区三区在线观看 | 久久频这里精品99香蕉久 | 九九在线视频 | 久久天天躁狠狠躁夜夜 | 色姑娘久| 99视频这里有精品 | 国产最新一区二区三区天堂 | 99久久精品免费视频 | 婷婷色在线 | 久久黄色免费视频 | 视频一区国产精戏刘婷 | 欧美日韩图区 | 999精品在线 | 夜夜爽天天狠狠九月婷婷 | 97天天干 | 在线不卡免费视频 | 欧美成人免费午夜影视 | www.天天操.com | 中文精品视频一区二区在线观看 | 99九九成人免费视频精品 | 国产精品福利视频主播真会玩 | 国产99高清一区二区 | 亚洲视频成人 | 国产精品亚洲一区二区三区久久 | 奇米影视777me | 国内高清久久久久久久久 |