[svn] / trunk / xvidextra / src / installer / CheckUpdate.ps1 Repository:
ViewVC logotype

Diff of /trunk/xvidextra/src/installer/CheckUpdate.ps1

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2142, Mon Oct 17 14:43:24 2016 UTC revision 2143, Mon Oct 17 14:46:59 2016 UTC
# Line 171  Line 171 
171  $hash = $hash.ToLower() -replace '[-]',''  $hash = $hash.ToLower() -replace '[-]',''
172  $rkey = 'HKCU:\SOFTWARE\GNU\XviD'  $rkey = 'HKCU:\SOFTWARE\GNU\XviD'
173  $pf = (Get-ItemProperty -Path $rkey -Name PerfCount).PerfCount  $pf = (Get-ItemProperty -Path $rkey -Name PerfCount).PerfCount
 $rkey = (Set-ItemProperty -Path $rkey -Name PerfCount -Value 0 -Type DWord)  
174  $scriptpath = $MyInvocation.MyCommand.Path  $scriptpath = $MyInvocation.MyCommand.Path
175  $script:xvid_dir = Split-Path $scriptpath  $script:xvid_dir = Split-Path $scriptpath
176  $tmp = $env:temp  $tmp = $env:temp
# Line 182  Line 181 
181  }  }
182    
183  $url = $FileContent["Update"]["url"]  $url = $FileContent["Update"]["url"]
184  $url = $url + "&p=" + $pf + "&h=" + $hash  $url = $url + "&h=" + $hash
185  $object = Get-WebClient  $object = Get-WebClient
186  $localPath = “$tmp\update.xml”  $localPath = “$tmp\update.xml”
187  $object.DownloadFile($url, $localPath)  $object.DownloadFile($url, $localPath)

Legend:
Removed from v.2142  
changed lines
  Added in v.2143

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4