home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1772
Discussions: 188,401, Posts: 2,243,603, Members: 232,630
Old November 27th, 2004, 08:19 PM   Digg it!   #1 (permalink)
Senior Member
 
saladbarkid's Avatar
 
Join Date: Apr 2002
Location: TechIMO
Posts: 539
Question
BartPE plugin editing help...

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>
__________________
20" iMac 2.16GHz / 1GB RAM / 250GB HDD / 8x DVDRW / OS 10.5


Last edited by saladbarkid : November 27th, 2004 at 08:27 PM.
saladbarkid is offline   Reply With Quote
Old December 3rd, 2004, 10:14 PM     #2 (permalink)
Senior Member
 
saladbarkid's Avatar
 
Join Date: Apr 2002
Location: TechIMO
Posts: 539
anybody?

saladbarkid is offline   Reply With Quote
Old December 3rd, 2004, 10:18 PM     #3 (permalink)
Ultimate Member
 
paul9's Avatar
 
Join Date: Aug 2003
Location: Gateshead U.K.
Posts: 8,838
Send a message via MSN to paul9 Send a message via Yahoo to paul9
would avg be trying to write to this xml file, which would be read only, and would retain read only status by default, even if copied from cd to hdd?
just a thought.

paul9 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bart's PE Builder EvilRick General Tech Discussion 25 December 7th, 2004 05:05 AM
XP won't let me use programs!! saladbarkid Applications and Operating Systems 10 November 27th, 2004 09:51 AM
PE Builder & Ghost 2002 Salesman_Gil General Tech Discussion 9 August 24th, 2004 04:58 PM
oh man i really messed up this time......... EpyonMelee General Tech Discussion 21 June 19th, 2004 08:08 PM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
For cheap price and good qualit.. (1)
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:45 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28