I hope I'm in the right area. I'ce been trying to customize my very own BartPE cd for troubleshooting. However, I have a problem that I just can't figure out. I am trying to create a plugin for AVG Antivirus. I have the files required to make the scanner work (there's only 3), but when I create the .iso and run it, AVG comes back with an error. I believe my problem is with my xml file, but I just can't figure it out. I will post my code. Thanks in advance.
@echo off
rem -------------------------------------------------------------------
rem avg.cmd - Script to start AVG GUI Scanner from WinPE
rem Created by Bart Lagerweij.
rem -------------------------------------------------------------------
echo AVG.CMD: Starting...
setlocal
if "%temp%" == "" goto _err
if exist "%temp%\AVG\avg.exe" goto _run
echo AVG.CMD: Copying "%~dp0*.*" to "%temp%\AVG\"
xcopy /s "%~dp0*.*" "%temp%\AVG\"
:_run
start %temp%\AVG\avg.exe
goto _end
:_err
echo.
echo AVG.CMD: No temp variable set...
echo AVG.CMD: Try adding a ramdrive...
echo.
pause.
:_end
endlocal
; avg.inf
; PE Builder v3 plugin INF file
; Created by saladbarkid
;
; AVG GUI Scanner
; get it at
http://www.grisoft.com
;------------------------------
; Plugin Creator by Svenska
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="AVG GUI Scanner"
Enable=1
Help="avg.htm"
[WinntDirectories]
a="programs\avg",2
[SourceDisksFiles]
avg.cmd=a,,1
avg.exe=a,,1
avgscan.exe=a,,1
avgklib.dll=a,,1
[Append]
nu2menu.xml, avg_nu2menu.xml
<!-- Nu2Menu entry for "AVG GUI Scanner" -->
<NU2MENU>
<MENU ID="Antivirus">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Prog rams\avg\avg.cmd))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\avg\avg.cmd">AVG GUI Scanner</MITEM>
</MENU>
</NU2MENU>