File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3434 "uninstaller" : {
3535 "script" : [
3636 " $7z_path = friendly_path -Path $(Get-CommandPath -Command '7z.exe')" ,
37- " $codecs_dir = Join-Path -Path $(Split-Path -Path $7z_path -Parent) -ChildPath 'Codecs'" ,
38- " Get-ChildItem -Path $dir -Exclude '*.json', 'ReadMe.txt' | ForEach-Object {" ,
39- " Remove-Item -Path \" $codecs_dir\\ $($_.Name)\" -Recurse -Force -ErrorAction SilentlyContinue" ,
37+ " if ($null -ne $7z_path) {" ,
38+ " $codecs_dir = Join-Path -Path $(Split-Path -Path $7z_path -Parent) -ChildPath 'Codecs'" ,
39+ " Get-ChildItem -Path $dir -Exclude '*.json', 'ReadMe.txt' | ForEach-Object -Process {" ,
40+ " Remove-Item -Path \" $codecs_dir\\ $($_.Name)\" -Recurse -Force -ErrorAction SilentlyContinue" ,
41+ " }" ,
4042 " }"
4143 ]
4244 },
You can’t perform that action at this time.
0 commit comments