Major Posted February 3, 2005 Share Posted February 3, 2005 Hello,I have read the forum and i have found a method to do unattended install winrar 3.42, but when i install it, it isn´t registered neither copied my setting.reg, the batch file is:RunOnceEx.cmd:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing application" /fREG ADD %KEY%\030 /VE /D "WinRar" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\WinRAR3.42\wrar342.exe /s" /fREG ADD %KEY%\030 /V 2 /D "%systemdrive%\WinRAR3.42\rar.cmd" /fREG ADD %KEY%\030 /V 3 /D "REGEDIT /S %systemdrive%\WinRAR3.42\Setting.reg" /fExitand RaR.cmd:cmdow @ /HID@echo offcopy %systemdrive%\WinRAR3.42\RARREG.KEY %systemdrive%\Archivos de programa\WinRAR\RARREG.KEYcopy %systemdrive%\WinRAR3.42\winrar.exe %systemdrive%\Archivos de programa\WinRAR\winrar.exeExitAny suggestions pleaseThanks Link to comment Share on other sites More sharing options...
totoymola Posted February 3, 2005 Share Posted February 3, 2005 copy %systemdrive%\WinRAR3.42\RARREG.KEY %systemdrive%\Archivos de programa\WinRAR\RARREG.KEYcopy %systemdrive%\WinRAR3.42\winrar.exe %systemdrive%\Archivos de programa\WinRAR\winrar.exeJust curious, why do you have to copy winrar.exe again?And I think the problem is you missed the quotes. It should be copy "%systemdrive%\WinRAR3.42\RARREG.KEY" "%systemdrive%\Archivos de programa\WinRAR\RARREG.KEY"Or just use "%ProgramFiles%\WinRAR\RARREG.KEY"I'm not sure if the %programfiles% environment variable will work on your version of windows.. Link to comment Share on other sites More sharing options...
Major Posted February 3, 2005 Author Share Posted February 3, 2005 I copie it again because i have read that in order to register it, i must copie rarreg.key and the program again, and to get my preferences i must copie the setting.reg.I have tried putting the quotes, but without resultscopy "%systemdrive%\WinRAR3.42\RARREG.KEY %systemdrive%\Archivos de programa\WinRAR\RARREG.KEY"copy "%systemdrive%\WinRAR3.42\winrar.exe %systemdrive%\Archivos de programa\WinRAR\winrar.exe" Link to comment Share on other sites More sharing options...
Major Posted February 3, 2005 Author Share Posted February 3, 2005 Sorry, now it works partially, i have forgotten to put more quotes:copy "%systemdrive%\WinRAR3.42\RARREG.KEY" "%systemdrive%\Archivos de programa\WinRAR\RARREG.KEY"copy "%systemdrive%\WinRAR3.42\winrar.exe" "%systemdrive%\Archivos de programa\WinRAR\winrar.exe"it has been registered but it hasn´t copied my setting.regThanks you Totoymola Link to comment Share on other sites More sharing options...
Major Posted February 3, 2005 Author Share Posted February 3, 2005 Thank you very much Totoymola.Now it works completely with my setting. i have put the name of the setting diferent (without "S", that is why it didn´t recognize itThank you again. Link to comment Share on other sites More sharing options...
Astalavista Posted February 3, 2005 Share Posted February 3, 2005 incorrect your regkey must be inside the winrar.exeuse winrar to open winrar.exe and just add your key. simple u can also add the /S to winrar.exe so u dont need a switch anymore. http://img1.imagevenue.com/loc154/183_snap1.jpg Link to comment Share on other sites More sharing options...
Major Posted February 3, 2005 Author Share Posted February 3, 2005 Okay, i will try it astalavista, it seems better.Thank you man Link to comment Share on other sites More sharing options...
Astalavista Posted February 3, 2005 Share Posted February 3, 2005 the path to least resistance is always best.in other words why do it the hard way when u can do it the easy way? Link to comment Share on other sites More sharing options...
Major Posted February 3, 2005 Author Share Posted February 3, 2005 I have the idea to make unattended installation of the windows xp and my applications in the future and also for my friends. but first i am trying to install the applications silently to try if it works or not. Link to comment Share on other sites More sharing options...
totoymola Posted February 3, 2005 Share Posted February 3, 2005 Astalavista's suggestion is the easiest solution for your problem. Just repack your WinRAR installer. That is what we do.Here is how to do it, just in case you are interested.1. I assume you have WinRAR installed on your system. Download the original installer of WinRAR here.2. Using WinRAR, extract the files of the SFX to an empty folder.3. Copy your rarreg.key to that folder.4. Select all files in that folder and select "Add to archive..".5. In the "General" tab, select Best Compression, Create SFX, Create Solid Archive, Put Authenticity Verification, Put Recovery Record, and Lock Archive.6. Click the comment tab, and paste this comment.Title=WinRAR 3.42Text{ <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> <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> <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> <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> <b>WinRAR archiver is distributed as is</b>.No warranty of any kind is expressed or implied. You use at yourown risk. Neither the author nor the agents of the author will beliable for data loss, damages, loss of profits or any other kindof loss while using or misusing this software. </body> </html>}Path=WinRARSavePathOverwrite=1Delete=*.lngDelete=rarlng.dllDelete=rarext.dllDelete=register.frmDelete=rar_site.txtDelete=register.txtDelete=order.txtDelete=Dos.sfxDelete=os2.sfxDelete=Formats\ace.fmtDelete=Formats\arj.fmtDelete=Formats\cab.fmtDelete=Formats\gz.fmtDelete=Formats\lzh.fmtDelete=Formats\tar.fmtDelete=Formats\uue.fmtDelete=Formats\bz2.fmtDelete=Formats\iso.fmtDelete=Formats\unacev2.dllDelete=Formats\7z.fmtDelete=Formats\7za.dllDelete=Formats\z.fmtPresetup=uninstall.exe /cleanSetup=uninstall.exe /setup7. And the most important part, click "OK". Now, for your registry settings, just run it after installing WinRAR. Your code should be similar to this.REG ADD %KEY%\030 /V 1 /D "%systemdrive%\WinRAR3.42\wrar342.exe /s" /fREG ADD %KEY%\030 /V 3 /D "REGEDIT /S %systemdrive%\WinRAR3.42\Setting.reg" /fNote: You don't have to copy another WinRAR.exe to the installation directory. You only need the rarreg.key. Link to comment Share on other sites More sharing options...
Astalavista Posted February 3, 2005 Share Posted February 3, 2005 totoymolai repacked with 7zip sfx so much smaller! LOL Link to comment Share on other sites More sharing options...
tjhart85 Posted February 3, 2005 Share Posted February 3, 2005 Yeah, but where's the coolness of "hacking" the WinRar installation, using WinRar!?BTW how much smaller did the 7zip make it? Link to comment Share on other sites More sharing options...
MCT Posted February 3, 2005 Share Posted February 3, 2005 i just tested it, i got Winrar - Best compression 1.81MB7-Zip SFX - Best Compression - 1.59MBof course it depends on the size of your files , but, IMO its not worth the hassel in making it with 7zip Link to comment Share on other sites More sharing options...
totoymola Posted February 3, 2005 Share Posted February 3, 2005 Yeah, but where's the coolness of "hacking" the WinRar installation, using WinRar!?You can hack 7Zip too. But personaly, I still prefer WinRAR. I find it much easier. Link to comment Share on other sites More sharing options...
DarXyde Posted February 3, 2005 Share Posted February 3, 2005 Anyone knows,a code for registering extensions of winrar ? ... to make a reg key or something like that... 10x :)I have make an SFX from my already installed winrar, it works fine... i just wannt to know how can i register extensions ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now