Old 31st January 2010, 15:14   #1
TheRainer
Junior Member
 
Join Date: Jan 2010
Posts: 1
Question WinRAR and RAR files support for NSIS

Hello,

Does NSIS support RAR files, encrypted and with password protection, from WinRAR?

If yes: How?

If not: Can anybody implement it?

Thanks for help,
Rainer
TheRainer is offline   Reply With Quote
Old 31st January 2010, 15:56   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,542
If this is for some type of copy protection, its not really going to help much since NSIS is not good at keeping secrets

If you can't find a plugin that does what you want, you can always use a external unpacker

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 31st January 2010, 18:29   #3
Lodester
Junior Member
 
Join Date: Jan 2010
Posts: 19
Why not just package and call rar.exe from your NSIS installer and do whatever you need to/want. That ships with winrar has a lot more functionality anyway.
Lodester is offline   Reply With Quote
Old 31st January 2010, 18:33   #4
CG!
Junior Member
 
CG!'s Avatar
 
Join Date: Nov 2009
Location: Germany
Posts: 48
Or you optionally detect an installed WinRAR installation.
This way an possibly installed WinRAR x64 can be used instead of your shipped UnRAR x86.

Religion must die, for mankind to live.
©Religulous:Bill Maher:2008
CG! is offline   Reply With Quote
Old 31st January 2010, 18:56   #5
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,368
Quote:
Originally posted by Lodester
Why not just package and call rar.exe from your NSIS installer and do whatever you need to/want. That ships with winrar has a lot more functionality anyway.
i'm sure that's an answer anders would have given, if it wasn't so easy to intercept the password for those encrypted rars.

i can't think of any other solution as long as there is no plugin with password support*

* hint to the developer of the 7-zip plugin
Yathosho is offline   Reply With Quote
Old 31st January 2010, 19:26   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Quote:
i'm sure that's an answer anders would have given, if it wasn't so easy to intercept the password for those encrypted rars.
I can vouch for that particularity being a problem. :-)

Anyway, redistributing rar.exe is not allowed under the WinRAR EULA.
MSG is offline   Reply With Quote
Old 31st January 2010, 19:35   #7
CG!
Junior Member
 
CG!'s Avatar
 
Join Date: Nov 2009
Location: Germany
Posts: 48
That's why i was refering to use an installed WinRAR/RAR.EXE or shipping the UnRAR.EXE/.DLL.
Dunno about the UnRAR.EXE, but the DLL is free to use and the APi is good documented.

Religion must die, for mankind to live.
©Religulous:Bill Maher:2008
CG! 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