หลังจากลงไม่สำเร็จ ก็ต้องหาในเน็ต ก่อนว่ามีใครเป็นแบบเรามั่ง
เจอที่ link นี้ เดาจาก ชื่อก็น่าจะเกี่ยวกะปัญหาการติดตั้งแหะhttp://darcs.haskell.org/vshaskell/vs_haskell_setup/setup.vbs
นี่มันเป็น Visual Basic Script หนิ
Rem ************************************
Rem Get the Shell object
Rem ************************************
Set shell = CreateObject("WScript.Shell")
Rem ************************************
Rem Set path
Rem ************************************
system32Path = shell.Environment("PROCESS")("SYSTEMROOT") & "\System32\"
Rem ************************************
Rem Setup
Rem ************************************
Sub Setup(mode, vstudio)
installPath = shell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Visual Haskell\" & vstudio & "\InstallDir")
Rem *** Register vs_haskell.dll
res = shell.Run ("""" & system32Path & "regsvr32.exe"" /i:" & vstudio & " " & mode & " /n /s """ & installPath & "bin\vs_haskell.dll""",0,true)
If res <> 0 Then
shell.Popup "Failed to setup vs_haskell.dll"
Stop
End If
Rem *** Register vs_haskell_babel.dll
res = shell.Run ("""" & system32Path & "regsvr32.exe"" /i:" & vstudio & " " & mode & " /n /s """ & installPath & "bin\vs_haskell_babel.dll""",0,true)
If res <> 0 Then
shell.Popup "Failed to setup vs_haskell_babel.dll"
Stop
End If
Rem *** Register vs_haskell_dlg.dll
res = shell.Run ("""" & system32Path & "regsvr32.exe"" /i:" & vstudio & " " & mode & " /n /s """ & installPath & "bin\vs_haskell_dlg.dll""",0,true)
If res <> 0 Then
shell.Popup "Failed to setup vs_haskell_dlg.dll"
Stop
End If
Rem *** VStudioSetup
vstudioPath = shell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\" & vstudio & "\InstallDir")
res = shell.Run ("""" & vstudioPath & "devenv.exe"" /Setup",0,true)
If res <> 0 Then
shell.Popup "Failed to setup VStudio"
Stop
End If
End Sub
Rem ************************************
Rem Entry Points
Rem ************************************
sub Install71()
Setup "", "7.1"
end sub
sub UnInstall71()
Setup "/u", "7.1"
end sub
sub Install80()
Setup "", "8.0"
end sub
sub UnInstall80()
Setup "/u", "8.0"
end sub
อืมม จะลอง run ดู โดยต้องใช้คำสั่ง cscript.exe
Microsoft (R) Windows Script Host Version 5.7
เหมือนเดิมไม่มีไรเกิดขึ้น เซ็งจัด
หาต่อ เจอ mail archive ที่เค้ามีปัญหา
Hi Dennis,Did you use the default install directory or a custom one? A custom directory what caused this error for me. The simple solution was to uninstall and reinstall to the default Program Files\Visual Haskell path. Alternately, have a look at this file here - http://darcs.haskell.org/vshaskell/vs_haskell_setup/setup.vbs What's failing is the calls to regsvr32.exe - if you search your system for vs_haskell.dll, you'll most likely find that it's in... C:\Program Files\Visual Haskell\bin, no matter what install directory you specified. If you check the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Visual Haskell\<Visual Studio version>\InstallDir you'll see that it's set to the one you specified (where Visual Studio version is 7.1 for 2003 and 8.0 for VS 2005. So what's happening is that regsvr32 is trying to find the DLL's in the \bin directory of your specified install dir, but the DLL's are over in Program Files... not sure what other bugs this could introduce, hence why I reinstalled to Progam Files <etc>. If you run the following three commands in a command prompt, it should work to some extent, but I'll reiterate that I haven't tested this.
regsvr32.exe /i:8.0 /n /s "C:\Program Files\bin\vs_haskell.dll"Now, is there a bug tracker anywhere for this, or is it just the mailing list? I think the hardcoded paths in http://darcs.haskell.org/vshaskell/vs_haskell_setup/Common.wxs need to be tweaked, or the reg key(s) modified. :-)
regsvr32.exe /i:8.0 /n /s "C:\Program Files\bin\vs_haskell_babel.dll"
regsvr32.exe /i:8.0 /n /s "C:\Program Files\bin\vs_haskell_babel.dll"
VS 2003 users should replace 8.0 with 7.1...
Anyway, hope that helps you, good luck.
Liam Clarke
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
ลองดู................... เหมือนเดิม
จะลอง uninstall แล้วลงใหม่อีกทีครับ

0 ความคิดเห็น:
แสดงความคิดเห็น