Old 14th May 2017, 23:33   #1
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 242
Question how can extract rar file?

how can extract rar files?
ZipDLL::extractall cant work for rar files
r2du-soft is offline   Reply With Quote
Old 15th May 2017, 01:32   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,611
At least try to search the forum before asking questions!

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 15th May 2017, 02:51   #3
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 242
I know it can be done this way:

HTML Code:
Section

ExecDos::exec '"$PLUGINSDIR\UnRAR.exe" x "$ExeDir\RarFile.Rar" "$ExeDir\MyRar\" /y'
	
SectionEnd


Function .onInit

InitPluginsDir
File /oname=$PLUGINSDIR\UnRAR.exe "${NSISDIR}\ExeFiles\UnRAR.exe"

FunctionEnd

I want to know the DLL gets the job done?
I need to dll for extract rar file,i search and found unrar.dll in forum but i dont know how i can send parameter x to that for working,i try but application suspend process and closed

HTML Code:
System::Call "UnRAR::RAROpenArchiveEx('$ExeDir\12.rar','c:\')"

Last edited by r2du-soft; 15th May 2017 at 05:35.
r2du-soft is offline   Reply With Quote
Old 15th May 2017, 12:45   #4
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 242
is possible give example for plugin: UnRARDLL.dll

Download Link:
http://www.rarlab.com/rar/UnRARDLL.exe
for extract rar file?

with system::Call and without System::Call
r2du-soft is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump