muchlux Posted July 17, 2006 Posted July 17, 2006 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)
muchlux Posted July 17, 2006 Author Posted July 17, 2006 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.
bledd Posted July 17, 2006 Posted July 17, 2006 ah i understand you nowsorry, i've never needed to use autoit
redfive19 Posted July 17, 2006 Posted July 17, 2006 (edited) 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, 2006 by redfive19
Sonic Posted July 17, 2006 Posted July 17, 2006 There is an native .msi release now (for 4.42), anyone knows switchs availables ? Perhaps there is an option for extensions ...
T D Posted July 17, 2006 Posted July 17, 2006 (edited) Use a switchless? GOOGLE PERHAPS??? http://www.ryanvm.net/forum/viewtopic.php?t=2067 Edited July 17, 2006 by T D
Sonic Posted July 17, 2006 Posted July 17, 2006 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.
muchlux Posted July 18, 2006 Author Posted July 18, 2006 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.
jaws75 Posted July 19, 2006 Posted July 19, 2006 (edited) 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, 2006 by jaws75
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now