win7下面安裝VC6的SP5補丁


以前記錄的,現發到網上, 共享給需要的人:

vista/win7下面安裝VC6的SP5補丁,但是總是報錯誤需要MDAC 2.5 or higher ,到微軟網站上下了一個MDAC2.8,但是又安裝不上去。在國外一個網站上終於找到了一個大牛給出的解決方法。


用記事本打開SP5補丁程序所在目錄下的sp598ent.stf 文件


找到下面的行:
13 Group 28 36 38 29 30 32 26 27 14 25 16 17 20 18 19 15 39 21 22 24 23 43
將其替換為:
13 Group 28 38 29 30 32 26 27 14 25 16 17 20 18 19 15 39 21 22 24 23 43
找到下面的行:
36 Depend "27 ? : 37"
37 IsWin95 CustomAction "sp598ent.dll,CheckForMDAC"
將36,37后面的內容都刪除掉, (crunch: 是將36, 37行的內容刪除掉, 不是將后面的內容刪除掉)
保存,退出
再運行setupsp5.exe,嘿嘿,沒有再報錯誤了!!

 
再次感謝那位叫guideX的大牛,他原創的方法~~


//////////////////////////////////////////////////////
Though this isn't supported and you get the normal warnings about maybe not working on Windows 7, but i now have it installed and compiling.

Found a solution to this that actually works well. Essentially you have to hand edit the STF file for VS6 Service Pack 5 to skip the MDAC check.

Install VS6. Do a custom install and deselect Visual Analyzer, along with anything else you don't need. I ended up installing InterDev and VC++ with some misc. tools.

Extract Service Pack 5 files to a folder.

Modify SP598ENT.STF to remove 36 (the MDAC check) from the list in step 13

13 Group 28 36 38 29 30 32 26 27 14 25 16 17 20 18 19 15 39 21 22 24 23 43
and save the file. For completeness, you can remove step 36 (and 37) entirely, but it isn't necessary. Those lines are as follows (and it's safe to remove them or ignore them, as long as 36 is removed from step 13):

36 Depend "27 ? : 37" 37 IsWin95 CustomAction "sp598ent.dll,CheckForMDAC"
Run SP5SETUP.EXE and let Service Pack 5 finish installing.

Install Processor Pack normally.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM