Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

How to get an arguments from exe files?

$
0
0

Hi there,

I have a problem with silent installation of this exe file - I cannot get any arguments to argument list from this exe file. How can I get some arguments from this file (NintexWorkflow2013int.exe)? I have tried Process Explorer but without any optimal result.

Any advice?


Below is my code sequence:

 

    $UrlList = @{
        "NintexWorkflow2013.exe" = "http://nintexdownload.com/sl/supportfiles/NintexWorkflow2013int.exe";
    }
   
    foreach ($filename in $UrlList.Keys) {
        $url = $UrlList.Get_Item($filename)
        try {
            ## Check if destination file already exists
            if (!(Test-Path "$WebPIfolder\$filename")) {
                ## Begin download
               Start-BitsTransfer -Source $url -Destination $WebPIfolder\$filename -DisplayName "Downloading `'$filename`' to $WebPIfolder" -Priority High -Description "From $url..." -ErrorVariable err
                If ($err) {Throw ""}
                Start-Process '$($WebPIfolder)\$($filename)' -ArgumentList "$arguments" -Wait
            } else {
                Write-Host " - File $fileName exists, skipping..."
            }
        } catch {
            Write-Warning " - Failed to install  `'$fileName`'"
            break
        }
    }


Viewing all articles
Browse latest Browse all 6937

Trending Articles