it doesent work why?
You have commented out the ShowMessage() lines.
Could you un-comment them and tell me what they say??
(then you probably see why this doesn't work, for instance the extra dot in the wrong place)
After that gives us the complete command line you expect will be carried out.
(also note that if there is already a .7z file in your directory it will be included in the new 7z-file. Was that the intention?)
(debugging it like this will probably give you the answer already)
(Also... please always put code around code-tags)
[code]
Place your code here
[/code]