Skip to content

InstallerPathのURLがダイレクトリンクではない場合にダウンロードに失敗する #1

@mkht

Description

@mkht

例えば、

InstallerPath = 'http://hoge.local/install.exe'

のようにファイルへの直接リンクであれば問題ないが、

InstallerPath = 'https://download.mozilla.org/?product=firefox-54.0.1&os=win&lang=ja'

のようなリダイレクトされるタイプのURLを指定するとダウンロードに失敗してエラーになる

詳細: [DESKTOP-MHVP83I]: [[cApplication]Install::[cFirefox]FireFox_Install] Use Installer ("https://download.mozilla.org/?product=firefox-54.0.1&os=win&lang=ja") for Install. (if the path of installer as http/https/ftp. will download it)
詳細: [DESKTOP-MHVP83I]: [[cApplication]Install::[cFirefox]FireFox_Install] Download file from 'https://download.mozilla.org/?product=firefox-54.0.1&os=win&lang=ja' to 'C:\Windows\TEMP\?product=firefox-54.0.1&os=win&lang=ja'
指定されたファイルが見つかりません。
    + CategoryInfo          : NotSpecified: (:) [], CimException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Set-TargetResource
    + PSComputerName        : localhost
 
引数が空の文字列であるため、パラメーター 'Path' にバインドできません。
    + CategoryInfo          : InvalidData: (:) []、CimException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand
    + PSComputerName        : localhost

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions