Options

Windows Script Host Automation

elmarfvelmarfv Member Posts: 53
Hi guys,

I used the Windows Script Host to write a value into the computers Registry and it works fine on my laptop that is running Windows XP. Then I took it to the clients who is going to run it on a server that runs Microsoft Windows 2000 Server. Than it did not work. It gives me an error that the automation needs to be registered and installed. Even though I can see the automation, I don't seem to be able to use it. I was wandering how I should handle it, either find a suitible replacement for the Windows Script Host Automation, or register the one I used? I don't know what the replacement should be and I don't know how to register the one I used.

Any input would be appriciated.
Elmar F. Vidisson
Certified Navision Attain Developer

Comments

  • Options
    ara3nara3n Member Posts: 9,256
    Try to compile the objects on clients computer. If they are using a different version because of diff OS, then change it to the one they have on their pc.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    elmarfvelmarfv Member Posts: 53
    The Object did compile on their PC. Do you, or anybody, know what other Automation or OCX's i could use instead?
    Elmar F. Vidisson
    Certified Navision Attain Developer
  • Options
    ara3nara3n Member Posts: 9,256
    Make sure the user has permission to run the automation. try to test it as local admin.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    elmarfvelmarfv Member Posts: 53
    The user used to do the testing was a super, both the one logged onto the computer, and the one logged into Navision.
    Elmar F. Vidisson
    Certified Navision Attain Developer
  • Options
    kinekine Member Posts: 12,562
    Search the forum, I posted somewhere how to use this automation under Win2000. You need to use another class within it which works under all Win versions ('Windows Script Host Object Model'.IWshShell_Class under Win XP, but this class is not in the selection list...)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    elmarfvelmarfv Member Posts: 53
    I made the change and will be try it out when I go there next week. Thank you very much for your help.
    Elmar F. Vidisson
    Certified Navision Attain Developer
  • Options
    elmarfvelmarfv Member Posts: 53
    I have implemented the change and it worked perfectly. Thank you very much for your help.
    Elmar F. Vidisson
    Certified Navision Attain Developer
  • Options
    kinekine Member Posts: 12,562
    You are welcome... 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.