Jump to content

Script Error installer.hta


Recommended Posts

Gruß an alle,

da ich niemanden mit meinem schlechten Englisch beleidigen will, schreibe ich hier in Deutsch.

Vielleicht kann ein netter Mitmensch diesen Text ja übersetzen.

Fehler:

Wenn mann mit WPI ein Programm oder Treiber installiert, und den Computer mit %reboot%

als zweiten Befehl neu startet, arbeitet WPI die nachfolgenden Installationen weiter ab, bis auf

den letzten, dann hängt der Installer und folgender fehler wird angezeigt:

Zeile: 457

Zeichen: 2

Fehler: Objekt erwartet

Code: 0

URL: File:///C:/WPI/COMMON/installer.hta

Abhilfe:

Öffnet die Datei installer.hta, und fügt hinter folgenden Eintrag

<script	type="text/javascript" src="../WPIScripts/globals.js" application="yes">
</script>

zusätzlich noch diesen Eintrag hinzu

<script	type="text/javascript" src="../WPIScripts/api.js" application="yes">
</script>

danach sollte die fehlermeldung weg sein, und der installer bleibt nicht mehr hängen.

Welche Funktion aus der api.js den fehler beseitigt kann ich nicht sagen, vielleicht

findet das ja ein Entwickler von WPI heraus.

An die Entwicker: Besten Dank für dieses Excelente Programm, weiter so.

Gruß

DonSenilo

PS: Hab noch meine installer.hta angehängt.

Installer.rar

Link to comment
Share on other sites


I try it times in English.

If man with WPI installs a program or a driver, and which computer with %reboot% starts again as the second instruction, WPI continues to process the following installations, up to the latter, then the Installer and following error hang are indicated:

Line: 457

Char: 2

Error: Object Expected

Code: 0

URL: file://c:\wpi\common\installer.hta

Remedy:

The file opens installer.hta, and adds behind the following entry

<script	type="text/javascript" src="../WPIScripts/globals.js" application="yes"></script>

additionally still this entry in addition

<script	type="text/javascript" src="../WPIScripts/api.js" application="yes"></script>

afterwards the error message should be away, and which does not remain more installer any more to hang.

Which function from api.js the error eliminated I cannot say, perhaps find out that a developer of WPI.

To the developer: Best thanks for this Excelente program, further so.

Apology for my bad English.

Greeting

DonSenilo

Link to comment
Share on other sites

  • 2 months later...

I found that I got this error if I had %reboot% specified but no more packages to install after that reboot.

Resolved this by using a final script (order 9999999) that ran a manual reboot and didn't specify the %reboot% variable.

Perhaps that will work for you

Mark

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...