Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Install 7zip silently with file associations

- - - - -

  • Please log in to reply
9 replies to this topic

#1
muchlux

muchlux

    Junior

  • Member
  • Pip
  • 81 posts
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)


How to remove advertisement from MSFN

#2
bledd

bledd

    msfn is a friend of mine!

  • MSFN Sponsor
  • 1,733 posts
i use this

Attached Files

  • Attached File  7zip.reg   14.21KB   210 downloads


#3
muchlux

muchlux

    Junior

  • Member
  • Pip
  • 81 posts
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.

#4
bledd

bledd

    msfn is a friend of mine!

  • MSFN Sponsor
  • 1,733 posts
ah i understand you now

sorry, i've never needed to use autoit

#5
redfive19

redfive19

    Junior

  • Member
  • Pip
  • 96 posts
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 by redfive19, 17 July 2006 - 11:17 AM.


#6
Sonic

Sonic

    Sonic

  • Patrons
  • 1,603 posts
There is an native .msi release now (for 4.42), anyone knows switchs availables ? Perhaps there is an option for extensions ...

#7
T D

T D

    Go MSFN!

  • Member
  • PipPipPipPipPip
  • 940 posts
Use a switchless? GOOGLE PERHAPS??? :w00t:
http://www.ryanvm.ne...opic.php?t=2067

Edited by T D, 17 July 2006 - 12:25 PM.


#8
Sonic

Sonic

    Sonic

  • Patrons
  • 1,603 posts
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.

#9
muchlux

muchlux

    Junior

  • Member
  • Pip
  • 81 posts
This au3 script should work for german version:

BlockInput(1)
Run(@ProgramFilesDir & '\7-Zip\7zFM.exe')
sleep(500)
If WinExists("7-Zip Dateimanager") Then
WinActivate('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', '')
EndIf
BlockInput(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.

#10
jaws75

jaws75

    Member

  • Member
  • PipPip
  • 124 posts
Based on this post below for registering
IZArc
How about...

@ECHO OFF
CMDOW @ /HID
SETLOCAL
SET SC=HKLM\SOFTWARE\Classes
SET Extn=001 7z arj bz2 cab chm cpio deb gz iso lzh nsis rar rpm tar z zip
FOR %%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\"" /F
ENDLOCAL
EXIT

It's not autoit but will that do?

:EDIT:
simplified the script a bit.

Edited by jaws75, 19 July 2006 - 04:31 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN