Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

jscript does not work


3 replies to this topic

Augusto

Augusto
  • Members
  • 32 posts

Posted 28 September 2001 - 13:16

I am using a simple jscript to edit the registry (I do not want to use installscript) and the CA simply does not work. I receive a message informing that the CA cannot be processed during the installation.
The script is as follows:

var WshShell = WScript.CreateObject ("WScript.Shell");

if (WshShell.RegRead ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable") != 0)
WshShell.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable", 0,"REG_DWORD");

//WScript.Echo (WshShell.RegRead ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable"));

Do I have to include a handle to the session or something of the kind?

Cheers,
Augusto


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 September 2001 - 13:19

Your script is running in the installer, not in WScript. Change your code like this:

var WshShell = CreateObject ("WScript.Shell");


Augusto

Augusto
  • Members
  • 32 posts

Posted 28 September 2001 - 14:02

I have tried out and still it comes up with the message : Error 1720. A script required fo this install to complete could not be run.