title: downloading and Installing msi from sharefile
body: <p>I am trying to put together a powershell script to download firefox msi from sharefile and silently install. </p>
  
  <p>I finally got the download part to work. However, installing does not. When I navigate to the folders where I downloaded firefox msi to (C:\, C:\users\public, and my desktop) I get the following errors:</p>
  
  <p>This app can't run on your PC</p>
  
  <p>This installation package could not be opened. Contact the application vendor to verify this is a valid windows installer package.</p>
  
  <p>I downloaded the exe from mozilla site and msi from front motion.</p>
  
  <p>The share the software is in is open to everyone on network.</p>
  
  <p>I get same errors for both exe and msi.</p>
  
  <p>This is my current script:</p>
  
  <pre><code>#Download and Run MSI package for Automated install
  $uri = "https://sharefile.com/app/#/home/shared/foe0295b-0fbf-4ad9-ad73-fc18d26ba705/FirefoxInstaller.msi"
  $out = "c:\FireFoxInstaller.msi"
  Invoke-WebRequest -uri $uri -OutFile $out
  Start-Process -FilePath "msiexec.exe" -ArgumentList "/i $out /quiet /norestart /l c:\installlog.txt"
  </code></pre>