July 17, 200620 yr Hi,I know there are many threads about installing 7zip silently, but none with file associations.Registry import doesn't work because absolute paths are stored!Does anybody have a working AUTOIT script?(I am not very skilled in coding scripts)
July 17, 200620 yr Author Thanks, but unfortunately all paths are hardcoded inside reg-file so it won't work with non english installation etc.also this takes no effect until restart. This is why I am looking for an AUTOIT or similar.
July 17, 200620 yr Here's the dirty way of doing it. You can have AutoIt write all of the values to the registry without using absolute paths. I'd love to do this for you but it'd take too long.RunWait('7z442.exe /S')sleep(200)Run(@ProgramFilesDir & '\7-Zip\7zFM.exe')WinWait('7-Zip File Manager', '')WinActivate('7-Zip File Manager', '')Send('!T')Sleep(100)Send('O')WinWait('Options', '')sleep(200)ControlClick('Options', '', 1023)ControlClick('Options', '', 'Button2')WinWait('7-Zip File Manager', '')WinClose('7-Zip File Manager', '') Edited July 17, 200620 yr by redfive19
July 17, 200620 yr There is an native .msi release now (for 4.42), anyone knows switchs availables ? Perhaps there is an option for extensions ...
July 17, 200620 yr Use a switchless? GOOGLE PERHAPS??? http://www.ryanvm.net/forum/viewtopic.php?t=2067 Edited July 17, 200620 yr by T D
July 17, 200620 yr I prefer use original .msi if switchs exist for extensions because I'm french ... but if doesn't exist I have already a regtweaks ... but it's always best to use original setup options to keep more compatibilty in the future.
July 18, 200620 yr Author This au3 script should work for german version:BlockInput(1)Run(@ProgramFilesDir & '\7-Zip\7zFM.exe')sleep(500)If WinExists("7-Zip Dateimanager") ThenWinActivate('7-Zip Dateimanager', '')Send('!E')Sleep(100)Send('O')WinWait('Optionen', '')sleep(200)ControlClick('Optionen', '', 1023)ControlClick('Optionen', '', 'Button1')ControlClick('Optionen', '', 1)ControlClick('Optionen', '', 'Button2')WinWait('7-Zip Dateimanager', '')WinClose('7-Zip Dateimanager', '')EndIfBlockInput(0)Nevertheless I still need some reg tweaks for default compressing settings, visible grid lines etc...but this script enables all archive associations without the need of reboot.
July 19, 200620 yr Based on this post below for registeringIZArcHow about...@ECHO OFFCMDOW @ /HIDSETLOCALSET SC=HKLM\SOFTWARE\ClassesSET Extn=001 7z arj bz2 cab chm cpio deb gz iso lzh nsis rar rpm tar z zipFOR %%i IN (%Extn%) DO (REG ADD %SC%\.%%i /VE /D "7-Zip.%%i" /F)FOR %%j IN (%Extn%) DO ( REG ADD %SC%\7-Zip.%%j /VE /D "7z Archive" /F REG ADD %SC%\7-Zip.%%j\DefaultIcon /VE /D "\"%PROGRAMFILES%\7-Zip\Formats\%%j.dll\"" /F REG ADD %SC%\7-Zip.%%j\shell\open\command /VE /D "\"%PROGRAMFILES%\7-Zip\7zFM.exe\" \"%%1\"" /F)REG ADD %SC%\7-Zip.001\DefaultIcon /VE /D "\"%PROGRAMFILES%\7-Zip\Formats\split.dll\"" /FENDLOCALEXITIt's not autoit but will that do?:EDIT:simplified the script a bit. Edited July 19, 200620 yr by jaws75
Create an account or sign in to comment