Windows Script Host has no script engine for ".js" files

Discussion in 'Windows Vista General Discussion' started by Stephan G., Apr 23, 2008.

  1. Stephan G.

    Stephan G. Guest

    Hello.

    I am running Windows Vista Home Premium with service pack 1, although
    this problem existed even before SP1 was installed.

    Although under both Firefox and Internet Explorer I am able to fully
    utilize websites with javascript, and seem to be able to run other
    scripts (installation and otherwise) with little difficulty, there are a
    minority of installation scripts that lead to the following window
    popping up and the script terminating:

    WINDOW TITLE: Windows Script Host
    MESSAGE: There is no script engine for file extension ".js".
    POSSIBLE ACTIONS: OK button only. When pressed, the
    action seems to terminate without
    completion.

    Any thoughts of this? I have been poking around in the Microsoft KB
    about the Windows Script Host, and I have come to understand what it
    does, but I can't locate what is causing this error.

    Is there a way to completely uninstall and reinstall the Windows Script
    Host?

    Thanks.

    -Stephan.
     
    Stephan G., Apr 23, 2008
    #1
    1. Advertisements

  2. A similar error found in XP :
    http://www.winhelponline.com/articl...sion-when-running-js-files-in-Windows-XP.html

    You could try registering jscript.dll and see if that resolves the
    issue. Suggest you do it from an Elevated Command Prompt
    Start Search
    type in cmd
    Click Search
    *Right* click cmd and choose 'Run as administrator'
    Follow and/or Approve the prompts
    At the prompt, type in and then press Enter after each command

    regsvr32 %systemroot%\system32\jscript.dll
    exit

    Not sure if the reg file on Ramesh's page is applicable to Vista,
    though. JSFile is located in HKEY_CLASSES_ROOT\.JS in XP and mowst
    likely is in Vista, too. Compare and contrast it with the reg file to
    see if it is applicable to Vista, Stephan.

    MowGreen [MVP 2003-2008]
    ===============
    *-343-* FDNY
    Never Forgotten
    ===============
     
    MowGreen [MVP], Apr 23, 2008
    #2
    1. Advertisements

  3. Stephan G.

    Stephan G. Guest

    Dear MowGreen -

    Thanks for the ideas. I had tried the regsvr32 previously, and it
    doesn't work. I am hesitant to try and run the XP registry merge as I
    am unclear what it does and don't want to make a bigger error than what
    I am solving. I did follow the link to the microsoft download site to
    download and reinstall the scripting engine, and I am struck that
    although there are various packages for XP, for NT, for Windows 2000 and
    the like, there seem to be no packages for Windows Vista.

    Any further ideas you (or anyone else) has would be most appreciated.

    -s
     
    Stephan G., Apr 23, 2008
    #3
  4. Stephan,

    Did you get any error message when running the regsvr32 command?

    Although the xp_js_fix.reg can be applied in Windows Vista, here is a seperate version that I uploaded:
    http://www.winhelponline.com/fixes/vista_js_fix.reg

    Try running the .JS fix REG file from the above link and post back.

    Note that .REG files are plain-text, and are viewable in a text editor like Notepad.

    --
    Regards,

    Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
    Windows® Troubleshooting http://www.winhelponline.com
    Winhelponline.com blog http://www.winhelponline.com/blog


    Dear MowGreen -

    Thanks for the ideas. I had tried the regsvr32 previously, and it
    doesn't work. I am hesitant to try and run the XP registry merge as I
    am unclear what it does and don't want to make a bigger error than what
    I am solving. I did follow the link to the microsoft download site to
    download and reinstall the scripting engine, and I am struck that
    although there are various packages for XP, for NT, for Windows 2000 and
    the like, there seem to be no packages for Windows Vista.

    Any further ideas you (or anyone else) has would be most appreciated.

    -s
     
    Ramesh, MS-MVP, Apr 23, 2008
    #4
  5. Thanks for stepping up, Ramesh <w>

    MowGreen [MVP 2003-2008]
    ===============
    *-343-* FDNY
    Never Forgotten
    ===============
     
    MowGreen [MVP], Apr 23, 2008
    #5
  6. No problem, Steve :)

    --
    Regards,

    Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
    Windows® Troubleshooting http://www.winhelponline.com
    Winhelponline.com blog http://www.winhelponline.com/blog


    Thanks for stepping up, Ramesh <w>

    MowGreen [MVP 2003-2008]
    ===============
    *-343-* FDNY
    Never Forgotten
    ===============
     
    Ramesh, MS-MVP, Apr 24, 2008
    #6
  7. Stephan G.

    Stephan G. Guest

    Worked like a dream... thank you Ramesh!

    -stephan
     
    Stephan G., Apr 24, 2008
    #7
  8. Ramesh, MS-MVP, Apr 24, 2008
    #8
  9. Ramesh, MS-MVP, Apr 24, 2008
    #9
  10. WTG, Ramesh.

    MowGreen [MVP 2003-2008]
    ===============
    *-343-* FDNY
    Never Forgotten
    ===============
     
    MowGreen [MVP], Apr 24, 2008
    #10
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.