File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11
2- $ScriptDir = Split-Path - Path $PSCommandPath - Parent
3- $ExePath = $ScriptDir + ' \OpenWithPPGUI\bin\OpenWithPPGUI.exe'
4- $Version = [Diagnostics.FileVersionInfo ]::GetVersionInfo($ExePath ).FileVersion
2+ $ExePath = $PSScriptRoot + ' \OpenWithPPGUI\bin\OpenWithPPGUI.exe'
3+ $Version = [Diagnostics.FileVersionInfo ]::GetVersionInfo($ExePath ).FileVersion
54$DesktopDir = [Environment ]::GetFolderPath(' Desktop' )
6- $TargetDir = $DesktopDir + ' \OpenWithPP-' + $Version
7- Copy-Item $ScriptDir \OpenWithPPGUI\bin $TargetDir - Recurse
5+ $TargetDir = $DesktopDir + ' \OpenWithPP-' + $Version
6+
7+ Copy-Item $PSScriptRoot \OpenWithPPGUI\bin $TargetDir - Recurse
8+
89Remove-Item $TargetDir \OpenWithPPShellExtension.pdb - ErrorAction Ignore
910Remove-Item $TargetDir \OpenWithPPShellExtension.lib - ErrorAction Ignore
1011Remove-Item $TargetDir \OpenWithPPShellExtension.exp - ErrorAction Ignore
1112Remove-Item $TargetDir \OpenWithPPShellExtension.ilk - ErrorAction Ignore
13+
1214& ' C:\Program Files\7-Zip\7z.exe' a - t7z - mx9 " $TargetDir .7z" - r " $TargetDir \*"
You can’t perform that action at this time.
0 commit comments