i build a package to deploy 7-zip. That works fine.
Now i want to define the file extensions that opens with 7-zip (they are not set by default und i didnt find any switch) with the following cmd script:
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hi,
i build a package to deploy 7-zip. That works fine.
Now i want to define the file extensions that opens with 7-zip (they are not set by default und i didnt find any switch) with the following cmd script:
SET SC=HKLM\SOFTWARE\Classes
SET Extn=7z-0 arj-4 bz2-2 bzip2-2 cab-7 cpio-7 deb-11 gz-14 gzip-14 iso-8 lha-6 lzh-6 rar-3 rpm-10 split-9 swm-15 tar-13 taz-5 tbz-2 tbz2-2 tgz-14 tpz-14 wim-15 z-5 zip-1
FOR %%j IN (%Extn%) DO (
FOR /F "tokens=1,2 delims=-" %%A IN ("%%j") DO (
REG ADD %SC%\.%%A /VE /D "7-Zip.%%A" /F
REG ADD %SC%\7-Zip.%%A /VE /D "%%A Archive" /F
REG ADD %SC%\7-Zip.%%A\DefaultIcon /VE /D "%PROGRAMFILES%\7-Zip\7z.dll,%%B" /F
REG ADD %SC%\7-Zip.%%A\shell\open\command /VE /D "\"%PROGRAMFILES%\7-Zip\7zFM.exe\" \"%%1\"" /F
)
)
The Script works in a normal cmd.
So ive created a new Programm in the 7-Zip package (commandline: config.cmd. After that, i added the new Programm to my TS.
But it always fails with the Error Code 0x800700FF
Whats wrong?
Share this post
Link to post
Share on other sites