Jump to content

ada

Member
  • Posts

    7
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Taiwan

Everything posted by ada

  1. try this: Silent Installation for J2SDK and I use this vbscript code (j2re.vbs) to set PATH environment variable strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set PathVariables = objWMIService.ExecQuery( "Select * from Win32_Environment where " & _ "Name = 'Path' and Username='<system>'" ) For Each EnvVar in PathVariables EnvVar.VariableValue = EnvVar.VariableValue & ";%programfiles%\Java\jre1.5.0\bin" EnvVar.Put_ Next and This registry file ( j2re.reg ) to set JAVA_HOME environment variable Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment] "JAVA_HOME"=hex(2):25,00,70,00,72,00,6f,00,67,00,72,00,61,00,6d,00,66,00,69,00,\ 6c,00,65,00,73,00,25,00,5c,00,4a,00,61,00,76,00,61,00,5c,00,6a,00,72,00,65,\ 00,31,00,2e,00,35,00,2e,00,30,00,00,00 default installed directory is %programfiles%\Java\J2RE1.5.0\ !
  2. I only move the regfile into winrar installed directory because it is simple !
  3. Thanks for your reply... But... I used ffdshow ( visit at ffdshow project ) because I just use one plugin software but support much type mpeg4 stream format , even if divx and xvid. It makes me not need to install 2 or more codec for playing those mpeg4 files. The problem is ffdshow seems not support silent installation in windows 2000/XP, so I should like to find another codec to support Media Player Classic for playing MPEG4 files.
  4. I found how to keep/set new system environment... modify Regsitry like follows And the mothod to modify an exist system environment should write a vbasic script as follow, But I do not sure it can works !
  5. Sorry, Is this decoder can decoder much of those mpeg4 stream type like ffdshow ?! I used ffdshow before because it can decode xvid / divx dvd types !
  6. hmm... windows 2000/xp seems not to keep those enviroment variables using SET command after reboot ?! I should like those enviroment variables keeps/shows while right click My Computer -> Properties -> Advanced -> enviroments ... How does these Install Application set enviroment variables automatically ?
  7. Does any body knows how to add a system enviroment like PATH or JAVA_HOME automatically into Windows 2000/XP ?! and which registry key makes some files can be opend by click right mouse button ?! you know, I do not means using SendTO folder !
×
×
  • Create New...