Help - Search - Members - Calendar
Full Version: VBS & WPI
MSFN Forums > Member Contributed Projects > Windows Post-Install Wizard (WPI)

   


Google Internet Forums Unattended CD/DVD Guide
wazer
Im trying to add my vbs script to run with my other stuff drivers etc..

but it says failed on a fresh format or in vmware.


But if i launch wpi after first time login and restarted then it works. How come ?



im using the newest wpi 7.7.0



vbs script
CODE
' To use, simply run this script and restart your computer.

  Const HKEY_LOCAL_MACHINE = &H80000002

  Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
  strKeyPath = "SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\"
  oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys

  For Each subkey In arrSubKeys
    err = oReg.SetDwordValue (HKEY_LOCAL_MACHINE,strKeyPath & subkey,"TcpAckFrequency","1")
  Next



wpi code

CODE
prog[pn]=['Latency Fix'];
uid[pn]=['LATENCYFIX'];
desc[pn]=['<P>Better ping ingame</P>'];
ordr[pn]=[017];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
cmds[pn]=['"%wpipath%\\Install\\latencyfix.vbs"'];
pn++;
AlBundy33
1. You can do this also with reg.exe - query the interfaces and set the values.
2. why not simple run wpi after first logon?
3. maybe the dll are not registered at this time - try to reigster it manually with regsvr32 /s vbscript.dll (maybe you have pass the full qualified name to the dll)

Al
wazer
Thanks for the quick reply i do have wpi at first time logon with windows 7.

ill try to execute regsvr32 /s vbscript.dll before wpi starts. and see how that goes.


Why im doing this method is because of windows generates random id for this tweak so i cant use
The latency fix im trying to add

fx the id i got now for my tcp/ip interface is {2F4DC8EB-5A4F-4F76-8392-A50034203C46}. As soon as i reformat ill get a new id so when i try to add the tweak old cvar as a reg it will have no effect because its using the old id theres no more in work, and will just be added.




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.