MSFN Forum: VBS & WPI - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

VBS & WPI Wont launch my file when reformated. Rate Topic: -----

#1 User is offline   wazer 

  • You gotta risk it to get the biscuits
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 24-May 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 14 September 2009 - 01:23 PM

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
' 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

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++;



#2 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 14 September 2009 - 02:11 PM

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

#3 User is offline   wazer 

  • You gotta risk it to get the biscuits
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 24-May 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 14 September 2009 - 02:23 PM

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.

This post has been edited by wazer: 14 September 2009 - 02:26 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy