; $Id$ ; Created by Ross Smith (http://smithii.com/) ; No longer requires the PESetEnv plugin to correctly set the master PATH environment variable -Ross ; PE Builder v3 plug-in INF file ; Many thanks to MrXP's and his post at http://www.911cd.net/forums//index.php?showtopic=12463 [Version] Signature= "$Windows NT$" [Strings] APP_VER=2.0.9 APP_NAME=OpenVPN 2.0.9 [PEBuilder] Name="[smithii.com] %APP_NAME%" Enable=1 help="openvpn.htm" [Update] id=openvpn depends=pesetenv url=http://smithii.com/files/plugins/ Version=$Revision$ [Append] nu2menu.xml, openvpn_nu2menu.xml [WinntDirectories] a="Programs\OpenVPN",2 b="Programs\OpenVPN\bin",2 c="Programs\OpenVPN\config",2 [SourceDisksFiles] _install.cmd=a,,1 vpninstall.cmd=a,,1 vpnstart.cmd=a,,1 vpnstop.cmd=a,,1 vpnrestart.cmd=a,,1 genkey.cmd=a,,1 addtaps.cmd=a,,1 disable_unsigned_driver_prompt.reg=a,,1 addtap.bat=b,,1 deltapall.bat=b,,1 ; 4=X:\I386\SYSTEM32\drivers files\driver\tap0801.sys=4 ; 20=X:\I386\INF files\driver\OemWin2k.inf=20 files\openvpn.ico=a,,1 files\bin\libeay32.dll=b,,1 files\bin\libssl32.dll=b,,1 files\bin\openssl.exe=b,,1 files\bin\openvpn.exe=b,,1 files\bin\openvpnserv.exe=b,,1 files\bin\tapinstall.exe=b,,1 [SourceDisksFiles] files\config\*.ovpn=c,,1 files\config\*.key=c,,1 ;XPE Support [Software.AddReg] ;0x2,"Sherpya\XPEinit\Desktop","Install OpenVPN","%SystemDrive%\Programs\OpenVPN\vpninstall.cmd||%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\Install OpenVPN","%SystemDrive%\Programs\OpenVPN\vpninstall.cmd||%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\Start OpenVPN","%SystemDrive%\Programs\OpenVPN\vpnstart.cmd||%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\Stop OpenVPN","%SystemDrive%\Programs\OpenVPN\vpnstop.cmd||%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\Restart OpenVPN","%SystemDrive%\Programs\OpenVPN\vpnrestart.cmd||%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\Add a new TAP-Win32 virtual ethernet adapter for each config file","%SystemDrive%\Programs\OpenVPN\addtaps.cmd||%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\Add a new TAP-Win32 virtual ethernet adapter","%SystemDrive%\Programs\OpenVPN\bin\addtap.bat||%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\Delete ALL TAP-Win32 virtual ethernet adapters","%SystemDrive%\Programs\OpenVPN\bin\deltapall.bat||%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\Generate a static OpenVPN key","%SystemDrive%\Programs\OpenVPN\genkey.cmd||%SystemDrive%\Programs\openvpn\OpenVPN.ico" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\OpenVPN configuration file directory","%ramdrv%\OpenVPN\config" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\OpenVPN HOWTO","%SystemRoot%\SYSTEM32\cmd.exe|/c start http://openvpn.net/howto.html|%SystemRoot%\iexplore.exe,0" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\OpenVPN log file directory","%ramdrv%\OpenVPN\log" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\OpenVPN Manual Page","%SystemRoot%\SYSTEM32\cmd.exe|/c start /b http://openvpn.net/man.html|%SystemRoot%\iexplore.exe,0" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\OpenVPN Web Site","%SystemRoot%\SYSTEM32\cmd.exe|/c start /b http://openvpn.net/|%SystemRoot%\iexplore.exe,0" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\OpenVPN Win32 README","%SystemRoot%\SYSTEM32\notepad.exe|%SystemDrive%\Programs\OpenVPN\INSTALL-win32.txt" 0x2,"Sherpya\XPEinit\Programs","OpenVPN\OpenVPN Windows Notes","%SystemRoot%\SYSTEM32\cmd.exe|/c start /b http://openvpn.net/INSTALL-win32.html|%SystemRoot%\iexplore.exe,0" ; Disable the unsigned driver prompt when installing the OpenVPN NIC driver under BartPE ; http://www.microsoft.com/resources/documentation/Windows/2000/server/reskit/en-us/Default.asp?url=/resources/documentation/Windows/2000/server/reskit/en-us/regentry/56034.asp ; 0x00 = ignore [Default.AddReg] 0x4,"Software\Microsoft\Driver Signing","Policy",0x0 [Software.AddReg] 0x3,"Microsoft\Windows\CurrentVersion\Setup","PrivateHash",22,9e,53,3e,5d,08,ab,c8,77,1d,b9,d0,e6,06,a8,06 [Software.AddReg] 0x1, "Classes\.ovpn","","OpenVPNFile" 0x0, "Classes\OpenVPNFile\DefaultIcon" 0x1, "Classes\OpenVPNFile\shell\open\command","","notepad.exe "%1"" 0x2, "Classes\OpenVPNFile\shell\run\command","",""%SystemDrive%\Programs\OpenVPN\bin\openvpn.exe" --pause-exit --config "%1"" 0x1, "Classes\OpenVPNFile\shell\run","","Start OpenVPN on this config file" 0x1, "Classes\OpenVPNFile\shell","","open" 0x2, "Classes\OpenVPNFile\DefaultIcon","","%SystemDrive%\Programs\OpenVPN\openvpn.ico,0" 0x1, "Classes\OpenVPNFile","","OpenVPN Config File" 0x1, "Microsoft\Windows\CurrentVersion\Uninstall\OpenVPN","DisplayName","OpenVPN %APP_VER%" 0x1, "Microsoft\Windows\CurrentVersion\Uninstall\OpenVPN","UninstallString","%SystemDrive%\Programs\OpenVPN\Uninstall.exe" 0x2, "Microsoft\Windows\CurrentVersion\Uninstall\OpenVPN","DisplayIcon","%SystemDrive%\Programs\OpenVPN\openvpn.ico" 0x1, "Microsoft\Windows\CurrentVersion\Uninstall\OpenVPN","DisplayVersion","%APP_VER%" 0x1, "OpenVPN","","%SystemDrive%\Programs\OpenVPN" 0x1, "OpenVPN","config_dir","%ramdrv%\OpenVPN\config" 0x1, "OpenVPN","config_ext","ovpn" 0x1, "OpenVPN","exe_path","%SystemDrive%\Programs\OpenVPN\bin\openvpn.exe" 0x1, "OpenVPN","log_dir","%ramdrv%\OpenVPN\log" 0x1, "OpenVPN","priority","NORMAL_PRIORITY_CLASS" 0x1, "OpenVPN","log_append","0" [Default.AddReg] ;Use PSSetEnv plugin now ;0x2,"ControlSet001\Control\Session Manager\Environment", "Path", "%ramdrv%\bin;%SystemRoot%\;%SystemRoot%\System32;%SystemDrive%\Bin;"%SystemDrive%\Programs\OpenVPN\bin" [Software.AddReg] ; Added to master environment by PESetEnv plugin (if used) 0x1,"PESetEnv\Path\Postfix","100_openvpn","%SystemDrive%\Programs\OpenVPN\bin"