Help - Search - Members - Calendar
Full Version: winrar 3.40
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
buletov
silent install + reconfiguration to use ZIP as a default (in context menu),

if anyone want to use this, here it is:

CODE
start /wait Bin\WinRAR\wrar340.exe /s


Removed by admin. Use file attachment for such a long file.
smknight
That's cool... seems like a lot to do just that, but very cool. Do you know if there would be any way to have both of these on the context menu for WinRAR:
add to <archive>.zip
add to <archive>.rar

The goal as far as I'm concerned to be able to quickly and conviently use zip and rar formats while only installing WinRAR instead of WinRAR and WinZip.
sleepnmojo
This reminds me of the part in scary movie where the guy busts out a weed trimmer, to trim something. Trim that thing down man. All that profile crap can go.

Shrink it down by combining common keys too.
CODE
 [HKEY_CURRENT_USER\Software\WinRAR\General]
"LimitLog"=dword:00000000
[HKEY_CURRENT_USER\Software\WinRAR\General]
"Log"=dword:00000000
becomes
CODE
 [HKEY_CURRENT_USER\Software\WinRAR\General]
"LimitLog"=dword:00000000
"Log"=dword:00000000
RogueSpear
Personally I prefer using InstallShield Repackager to make everything in an MSI file. With WinRAR I ended up having to use the single step snapshot method, but it works great. All my settings preconfigured and I nuked all the extraneous txt files too. Plus it puts the shortcut just where I want it.
a06lp
QUOTE (sleepnmojo @ Sep 20 2004, 08:47 PM)
CODE
 [HKEY_CURRENT_USER\Software\WinRAR\General]
"LimitLog"=dword:00000000
"Log"=dword:00000000

That whole thing became these 3 lines?!?!? woot.gif


Q - anyone know about the above Q about making the Context menu say .rar and .zip? I like that idea....
swampy
If you choose "add to archive" instaed of "add to filename.rar" in the context menu, you are one click away from a zip file instead of rar.
smknight
swampy, you are right of course, but I'd still be interested in having add to <archive>.zip and add to <archive>.rar to save that extra couple clicks if possible.

A big part of unattended installs is about saving clicks. tongue.gif
buletov
well, regsnap made that reg file, and i have better things to do that
removing a bunch of lines that can and don't have to be removed newwink.gif
buletov
QUOTE (smknight @ Sep 21 2004, 01:40 AM)
That's cool... seems like a lot to do just that, but very cool.  Do you know if there would be any way to have both of these on the context menu for WinRAR:
add to <archive>.zip
add to <archive>.rar

possible, but not in winrar options...
the context menu type of archive depends on default in winrar settings
--=ddSHADOW=--
i have the coorporate version email me at 19_shadow@gmx.net i use only
CODE
REG ADD %KEY%\050 /VE /D "Winrar 3.40 FINAL" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\WinRar\Winrar3.40.exe /s /W" /f
buletov
QUOTE
i have the coorporate version
CODE
REG ADD %KEY%\050 /VE /D "Winrar 3.40 FINAL" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\WinRar\Winrar3.40.exe /s /W" /f


uhm....the reg file is optional, used only to custiomize contex menu and default archive format
xper
QUOTE (--=ddSHADOW=-- @ Sep 21 2004, 11:14 AM)
i have the coorporate version
CODE
REG ADD %KEY%\050 /VE /D "Winrar 3.40 FINAL" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\WinRar\Winrar3.40.exe /s /W" /f

What the hell you think you are doing?
realmad.gif

This is not a warez site! Links/Requests to warez and/or illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing activation/timebombs/keygens or any other illegal activity will also not be tolerated. If you ignore any of the aforementioned you will receive a final warning. If you choose to continue, you will be banned without notice.
buletov
i was wondering why you (or somebody) didn't delete his post...
--=ddSHADOW=--
i just sayed coorporate version because i have unlock the deafult rar setup file and just put my original version of winrar licence file. I dont support warez i use only original programs like burstcopy i have original licence i have translated the program so i'll get original program. Soory for misunderstanding. I just wanted to share that unlocked winrar setup file.
buletov
well there isn't much use of that...
sleepnmojo
QUOTE (--=ddSHADOW=-- @ Sep 21 2004, 12:03 PM)
i just sayed coorporate version because i have unlock the deafult rar setup file and just put  my original version of winrar licence file. I dont support warez i use only original programs like burstcopy i have original licence i have translated the program so i'll get original program. Soory for misunderstanding. I just wanted to share that unlocked winrar setup file.

Making a guide how to do it would probably have been the best thing to say in this situation, not throw up your email address.

If someone is interested, I can post it, but I didn't think there was that much interest in it since it is pretty basic.
prathapml
@sleepnmojo
Do go ahead and post a guide for this. 'Coz doing the archive-modifying to include license file for me (back in the days of v3.20) was not successful. It'd be nice to see how someone who got it working has done it.
RogueSpear
I don't want to sound evangelical about repacking to MSI files, but this is what I did in order to make an unattended install that sets all the settings, makes the shortcut where I want it, and places my reg key for me.

If you want I could send you an archive of my repackager archive without my license key. All you would have to do is plop yours in and build (provided you have access to Installshield Repackager).
sleepnmojo
Since WinRAR makes its installer based off its own product, you will need WinRAR.
  1. Download WinRAR
  2. Extract wrar340.exe using WinRAR to C:\winrar
  3. Add RarReg.key to C:\winrar

    Now you need to make the installer
  4. Open up WinRAR, and in the address bar put C:\winrar
  5. Select all the files.
  6. Hit the add button. This should bring up a dialog about making a new archive. Use the following options.

  7. Add the following comment
    CODE
    Path=WinRAR
    SavePath
    Setup=uninstall.exe /setup
    Presetup=uninstall.exe /clean
    Overwrite=1
    Delete=*.lng
    Delete=rarlng.dll
    Delete=rarext.dll
    Delete=register.frm
    Delete=rar_site.txt
    Delete=register.txt
    Delete=order.txt
    Delete=Dos.sfx
    Delete=os2.sfx
    Delete=Formats\ace.fmt
    Delete=Formats\arj.fmt
    Delete=Formats\cab.fmt
    Delete=Formats\gz.fmt
    Delete=Formats\lzh.fmt
    Delete=Formats\tar.fmt
    Delete=Formats\uue.fmt
    Delete=Formats\bz2.fmt
    Delete=Formats\iso.fmt
    Delete=Formats\unacev2.dll
    Delete=Formats\7z.fmt
    Delete=Formats\7za.dll
    Delete=Formats\z.fmt
    Title=WinRAR 3.40 Corporate Edition
    Text
    {
     <html>
     <body bgcolor="#ececec">
     <style>
      body {
       color: #000000;
       background-color: #ffffff;
       font-family: "MS Sans Serif";
       font-size: 12;
       scrollbar-3dlight-color:#f0f0f0;
       scrollbar-arrow-color:#f0f0f0;
       scrollbar-darkshadow-color:#909090;
       scrollbar-face-color:#909090;
       scrollbar-highlight-color:#f0f0f0;
       scrollbar-shadow-color:#f0f0f0
      }
      em {color: navy;  font-style: normal}
     </style>
     &nbsp;&nbsp; <b>WinRAR is a powerful archiver</b>. It
      provides complete support of <em><b>RAR</b></em> and
      <em><b>ZIP</b></em> files, unpacks <em>7Z</em>, <em>ACE</em>,
      <em>ARJ</em>, <em>BZ2</em>, <em>CAB</em>, <em>GZ</em>,
      <em>ISO</em>, <em>JAR</em>, <em>LZH</em>, <em>TAR</em>,
      <em>UUE</em>, <em>Z</em>. Among WinRAR features are strong compression,
      volumes, encryption, self-extracting modules, backup
      facilities.<br><br>
     &nbsp;&nbsp; <b>WinRAR is shareware</b>. Anyone may use
      it during a test period of 40 days. Following this test
      period or less, if you wish to continue to use WinRAR,
      you must register.<br><br>
     &nbsp;&nbsp; <b>There are no additional license fees</b>, apart from
      the cost of registration, associated with the creation
      and distribution of RAR archives or self-extracting
      archives. Legally registered owners may use their copies
      of WinRAR to produce and distribute those archives free of
      any additional RAR royalties.<br><br>
     &nbsp;&nbsp; <b>WinRAR archiver is distributed as is</b>.
    No warranty of any kind is expressed or implied. You use at your
    own risk. Neither the author nor the agents of the author will be
    liable for data loss, damages, loss of profits or any other kind
    of loss while using or misusing this software.
     </body>
     </html>
    }
  8. Hit Ok.
Your file should be in the c:\winrar folder.
--=ddSHADOW=--
hehe you was faster then me , thats the way. But it is not necessarily to lock the archiv.
Then you use
CODE
REG ADD %KEY%\050 /VE /D "Winrar 3.40 FINAL" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\WinRar\Winrar3.40.exe /s /W" /f


to install silent

For lazy people use the file attachted and just add the files from winrar folder

Rename the fille to .exe
swampy
Hi sleepnmojo, I just usually install the new winrar, it doesn't delete your key, then go to winrar folder, select all, and follow what you do, same script.
Just saves making new folders & lots of time
buletov
well, you could have the key on cd next to the ordinary setup and copy it using the same batch you used to install winrar...much less hasle
prathapml
That's exactly the quickest and easiest method if you're anyway doing it unattended - let the batch file do all the menial tasks, huh?
CODE
start /wait %systemdrive%\install\Applications\wrar340.exe /S
copy /Y %systemdrive%\install\Applications\rarreg.key %programfiles%\WinRAR
mazin
So far, I haven't seen new ideas in all methods mentioned here for WinRAR. newwink.gif All of your ideas were discussed here and here. tongue.gif
RogueSpear
I haven't seen any mention of my method. At this point I have repackaged in neighborhood 50 to 60 applications, commercial and freeware, from QuickTime Alternative to an custom Oracle V9.02 client install.

I find that .msi files install pretty easy both in script and via GPO. Sure command line switches have their place, but to install an application preconfigured, pre-registered, and with a minimum of excess baggage (file_id.diz for example), I have not found a better solution. Another benefit with msi files is that you can directly edit them. I did this with Daemon Tools to eliminate the desktop shortcut, put it in the directory I wanted, and supress the reboot prompt.

If you have the cash (or your employer), pick up a copy of InstallShield AdminStudio. While it may be a pig with resources, it's never done me wrong yet.
mazin
@RogueSpear

WOW! You're talking to a MSI player! I appreciate your work. Actually, I've created my own MSI for WinRAR 3.3, but not yet for 3.4.
CoffeeFiend
I like adminstudio too, but sometimes when you just need to extract some files... Something like a WinRAR sfx works just fine too... There's many many ways to deploy apps and I don't always use the same one either. I'll even use AutoIt when it's I really have to (or to save a lot of time).
mazin
I create MSIs for pleasure in my spare time. cool.gif
sleepnmojo
QUOTE (mazin @ Sep 23 2004, 03:45 PM)
I create MSIs for pleasure in my spare time. cool.gif

You must not have a job tongue.gif
mazin
QUOTE (sleepnmojo @ Sep 24 2004, 12:54 AM)
You must not have a job

I have two jobs. Database Programmer & Administrator (MS Access) as a day-job, and Software Maintenance as an evening-job. tongue.gif tongue.gif
Unfortunately, I can't leave one of them because I extremely like both of them.
So, if I happen to have spare time, I enjoy creating MSIs, both for evening work and for pleasure. tongue.gif tongue.gif
jessc
does anyone know if there is a flag (as in /s after the winrar.exe) to stop it putting winrar in the start menu?
prathapml
Well, the shell-extensions were a good part about winrar, so I don't know why you'd want to do that....
But there's no switch for that, and the alternative is here:
CODE
RD /S /Q %UserProfile%\Start Menu\Programs\WinRAR
Put that line in your batch-file, and it will delete the winrar group in StartMenu>>Programs.

Hoping this helps...
mazin
QUOTE (prathapml @ Sep 24 2004, 04:53 PM)
CODE
RD /S /Q %UserProfile%\Start Menu\Programs\WinRAR

That's what I use. Just add quotes.
buletov
you should rather consider moving the winrar group under the accessiories subsection...
lilweirddude
sorry if i missed it but where do i get rarreg.key from?
CoffeeFiend
QUOTE (buletov @ Sep 24 2004, 01:38 PM)
you should rather consider moving the winrar group under the accessiories subsection...

That's what I do as well (but to another group as if I move every other odd app to accessories, it gets filled way fast).

I also unassociate .jar files (so ProjectX runs instead of open with WinRAR...)
buletov
QUOTE (lilweirddude @ Oct 2 2004, 01:25 AM)
sorry if i missed it but where do i get rarreg.key from?

buy winrar
lilweirddude
doh!
i was looking in the wrong place for it
my bad
mazin
QUOTE (lilweirddude @ Oct 2 2004, 06:37 PM)
i was looking in the wrong place for it

You are at UTOPIA, here! laugh.gif
lilweirddude
i was searching the registry for it when it was in my winrar folder the whole time




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.