cybervyk
Sep 25 2003, 10:37 PM
This time before I post another plugin that's been covered, I'll ask if anyone has posted a WinRAR plugin? If not, I'll have one soon.
Cybervyk
RvdH
Sep 25 2003, 11:43 PM
; winrar.inf
; PE Builder v3 plug-in INF file for WinRAR 3.20
; Created by RvdH
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="WinRAR 3.20"
Enable=1
[WinntDirectories]
a=Programs\WINRAR,2
b=Programs\WINRAR\Formats,2
[SourceDisksFiles]
; Registered users should copy their rarreg.key file into
; the WinRAR plugin directory and enable the
; next line
rarreg.key=a,,0
Default.SFX=a,,1
Descript.ion=a,,1
Dos.SFX=a,,1
Rar.exe=a,,1
RarExt.dll=a,,1
RarFiles.lst=a,,1
UnRAR.exe=a,,1
WinCon.SFX=a,,1
WinRAR.cnt=a,,1
WinRAR.exe=a,,1
WinRAR.hlp=a,,1
Zip.SFX=a,,1
ace.fmt=b,,1
arj.fmt=b,,1
bz2.fmt=b,,1
cab.fmt=b,,1
gz.fmt=b,,1
iso.fmt=b,,1
lzh.fmt=b,,1
tar.fmt=b,,1
UNACEV2.DLL=b,,1
uue.fmt=b,,1
[Default.AddReg]
0x4,"Software\WinRAR\General","Priority",0x1
0x4,"Software\WinRAR\General","History",0x0
0x4,"Software\WinRAR\General","DlgHistory",0x1
0x4,"Software\WinRAR\General","WizardMode",0x0
0x4,"Software\WinRAR\General","OnTop",0x0
0x4,"Software\WinRAR\General","ShowComment",0x1
0x4,"Software\WinRAR\General","Log",0x0
0x4,"Software\WinRAR\General","LimitLog",0x0
0x4,"Software\WinRAR\General","LogSize",0x0
0x4,"Software\WinRAR\General","ReuseWindow,0x0
0x4,"Software\WinRAR\General","Sound",0x0
0x4,"Software\WinRAR\General\Toolbar","LargeButtons",0x1
0x4,"Software\WinRAR\General\Toolbar","ButtonsText",0x1
[Software.AddReg]
0x1,"Classes\.rar","","WinRAR"
0x1,"Classes\WinRAR","","WinRAR archive"
0x2,"Classes\WinRAR\DefaultIcon","",""%SystemDrive%\Programs\winrar\winrar",0"
0x2,"Classes\WinRAR\shell\open\command","","%SystemDrive%\Programs\winrar\winrar" "%1"
0x1,"Classes\.zip","","WinRAR.zip"
0x1,"Classes\WinRAR.zip","","WinRAR Zip archive"
0x2,"Classes\WinRAR.zip\DefaultIcon","",""%SystemDrive%\Programs\winrar\winrar",0"
0x2,"Classes\WinRAR.zip\shell\open\command","","%SystemDrive%\Programs\winrar\winrar" "%1"
0x1,"Classes\.cab","","Cab Archive"
0x1,"Classes\Cab Archive","","Cab archive"
0x2,"Classes\Cab Archive\DefaultIcon","",""%SystemDrive%\Programs\winrar\winrar",0"
0x2,"Classes\Cab Archive\shell\open\command","","%SystemDrive%\Programs\winrar\winrar" "%1"
[Append]
nu2menu.xml, winrar_nu2menu.xml
<!-- Nu2Menu entry for WinRAR 3.20 -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\PROGRAMS\WINRAR\WINRAR.EXE))" CMD="RUN" FUNC="@GetProgramDrive()\PROGRAMS\WINRAR\WINRAR.EXE">WinRAR</MITEM>
</MENU>
</NU2MENU>
Runner
Sep 26 2003, 01:31 AM
ok...but a question...
if you opens a file *rar...Winrar extracts it in a temp folder on C...so it writes in Hard Disk...am I wrong with it...?
hermit-h
Sep 26 2003, 01:49 AM
If u open with winrar any archive winrar only show u list of files in archive. But if u open any file from archive winrar will unpack it in temp folder. So u can use ramdrive any set temp at ramdrive.
cybervyk
Sep 26 2003, 07:21 PM
Correct on the ramdrive. The plugin I'm working on posting has the extract path set to temp. So, again. Does anyone have one posted somewhere?
RvdH, is yours posted. Would you mind if I posted one? If you'd like, we could collaborate on one (with the ramdrive, etc.) and I'd host it for us if you'd like.
Cybervyk
RvdH
Sep 27 2003, 01:04 AM
Go ahead modify it!

Be sure to include the registry settings otherwise you'll be promted with the "Options" panel everytime winrar gets executed
Have a issue with the file extensions...they open correct in winrar but they don't have the winrar icons...maybe you could fix that?
RvdH
iss
Sep 27 2003, 01:34 AM
What is the file zipnew.dat? I dont have that in my WinRAR folder.
cybervyk
Sep 27 2003, 01:48 AM
Is this file not needed in order to create a new .zip file? That is that I got from the context as far as reading thrugh the registry entries.
@ iss
If my .inf file works as I'd hoped, it should not give you an error about whether or not that files is present. Did it give an error?
As far as why you do not have it, I'd guess that you do not have WinRAR associated with zip files. You are probably using WinZip, or something for those. If you go to options/settings and click the radio box for zip, it will create the zipnew.dat. If you copy it to the plugin folder, you can then go back to WinRAR and deselect zipnew.dat.
I may have written something explaining that, but figured it was not that big of a thing. I'm not CERTAIN that it affects anything.
Cybervyk
iss
Sep 27 2003, 01:57 AM
cybervyk,
yes I tried your plugin PEBuilder didnt flinch ( it was enabled by default) but it didnt create the ISO becasue of the error "zipnew.dat not found" and yes I dont have WinRAR associated with zip since I use Winzip. so that expalins the missing file. thanks for the info I will follow your instructions and try again.
What I mean by didnt flinch is that usually PE Builder wont allow a program to be enabled if a file is missing. but the pluging was allready enabled by default.
cybervyk
Sep 27 2003, 02:34 AM
Well, iss, thank you very much for letting me know of that. I'll work on fixing that. Perhaps I'll just take zipnew.dat out altogether.
Cybervyk
RvdH
Sep 27 2003, 03:58 AM
Still Have a issue with the file extensions...they open correct in winrar but they don't have the winrar icons...maybe you could fix that too?
RvdH
iss
Sep 27 2003, 10:30 AM
cybervyk,
I did like you said and had no problems. I did mod the .inf so it would recognize my rarereg.key by adding rarreg.key=a,,1
enigma06
Sep 27 2003, 02:59 PM
@RvdH
Here. This look like it works for mine. you forgot to put .exe for "Winrar" for
QUOTE
0x2,"Classes\WinRAR\DefaultIcon","",""%SystemDrive%\Programs\winrar\winrar",0"
So it looks like it was pointing to winrar not winrar.exe where the ico files are located i believe.
New Code
QUOTE
[Software.AddReg]
0x1,"Classes\.rar","","WinRAR"
0x1,"Classes\WinRAR","","WinRAR archive"
0x2,"Classes\WinRAR\DefaultIcon","",""%SystemDrive%\Programs\winrar\winrar.exe",0"
0x2,"Classes\WinRAR\shell\open\command","","%SystemDrive%\Programs\winrar\winrar.exe" "%1"
0x1,"Classes\.zip","","WinRAR.zip"
0x1,"Classes\WinRAR.zip","","WinRAR Zip archive"
0x2,"Classes\WinRAR.zip\DefaultIcon","",""%SystemDrive%\Programs\winrar\winrar.exe",0"
0x2,"Classes\WinRAR.zip\shell\open\command","","%SystemDrive%\Programs\winrar\winrar.exe" "%1"
0x1,"Classes\.cab","","Cab Archive"
0x1,"Classes\Cab Archive","","Cab archive"
0x2,"Classes\Cab Archive\DefaultIcon","",""%SystemDrive%\Programs\winrar\winrar.exe",0"
0x2,"Classes\Cab Archive\shell\open\command","","%SystemDrive%\Programs\winrar\winrar.exe" "%1"
cybervyk
Sep 27 2003, 05:27 PM
I have fixed the icon/association things. Icons appear just fine within WinRAR and probably other apps as well. I use the ERD explorer, where they do not appear. I have no idea that this can be fixed. If someone knows ...
Cybervyk