Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
131 additions
and
6 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
PSScripts/File Operations/Create ISO Image From Zip/4. CreateISOImageFromZip.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#Install Git | ||
$GitExec = 'C:\DOWNLOAD\Git.exe' | ||
$GitDownloadURL = 'https://github.com/git-for-windows/git/releases/download/v2.11.0.windows.3/Git-2.11.0.3-64-bit.exe' | ||
|
||
Invoke-WebRequest $GitDownloadURL -OutFile $GitExec | ||
Start-Process -FilePath $GitExec -ArgumentList "/VERYSILENT" | ||
|
||
|
||
#CopyDropboxFolder | ||
$ALSamplesOnDropbox = 'https://dl-web.dropbox.com/installer?authenticode_sign=True&build_no=18.4.32&juno=True&juno_use_program_files=True&plat=win&tag=eyJUQUdTIjoiREJQUkVBVVRIOjptc2llOjplSndOeThFS2drQVFBTkJma1RsSHpPek83RXpkbzhKQUNJeHVJcmpRR21td2R0RG8zX1AtM2hmYXpfUm9wdkVaQjlnWFVNMzNLcjNyVjMyODNsbzd4ZEtsODZGY3VNT0wwdExQVzJJVFZRMUJZRk5BamptbmNXaFN0MlpDSmxYeEVsZ0M3dGlSOTJhQ3F6WW5HSlNkaU5qdkR3OXpJQkV-QE1FVEEifQ&tag_token=AFwGRXyc0r87R2jXxKHV74_pLsMkSRfyOO1l6k8V--vw0A' | ||
$DropboxExec = 'C:\DOWNLOAD\Dropbox.exe' | ||
Invoke-WebRequest $ALSamplesOnDropbox -OutFile $DropboxExec | ||
Start-Process -FilePath $DropboxExec | ||
|
||
|
||
#Install waldo's modules | ||
Find-Module | where author -eq 'waldo' | Install-Module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import-navmodules | ||
|
||
find-module | where author -eq 'waldo' | Update-Module | ||
|
||
$AppJson = Get-ObjectFromJSON '.\app.json' | ||
$LaunchJson = Get-ObjectFromJSON '.\.vscode\launch.json' | ||
|
||
Start-NAVApplicationObjectInWebClient ` | ||
-WebServerInstance $LaunchJson. ` | ||
-WebClientType Web ` | ||
-ObjectType Page ` | ||
-ObjectID 70050000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import-module 'C:\Program Files\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1' | ||
|
||
$AppJson = Get-ObjectFromJSON '.\app.json' | ||
|
||
Get-NAVAppInfo -ServerInstance navision_main -Tenant default | | ||
where Publisher -eq $AppJson.publisher | | ||
Uninstall-NAVApp | ||
|
||
Get-NAVAppInfo -ServerInstance navision_main | | ||
where Publisher -like $AppJson.publisher | | ||
Unpublish-NAVApp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$ConflictFiles = Get-ChildItem 'C:\Users\waldo\Dropbox\GitHub\iFacto.Products.Distri\Upgrade_Distri92_NAV2017CTP27\Conflicts' | ||
|
||
$Conflicts = @() | ||
foreach($ConflictFile in $ConflictFiles){ | ||
Write-host $ConflictFile.BaseName | ||
$ObjectConflictHints = @() | ||
$ObjectConflictHints = (Get-Content $ConflictFile.FullName | Where-Object {$_ -like '*ConflictHint*'}).TrimStart() | ||
|
||
foreach ($ObjectConflictHint in $ObjectConflictHints){ | ||
$Conflict = New-Object PSObject | ||
$Conflict | Add-Member -MemberType NoteProperty -Name 'Object' -Value $ConflictFile.BaseName | ||
$Conflict | Add-Member -MemberType NoteProperty -Name 'ConflictHint' -Value $ObjectConflictHint | ||
$Conflicts += $Conflict | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
PSScripts/NAV Upgrades/Conflicts/RemoveAllButModifiedConflicts.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
$InterestingFiles = Get-ChildItem (join-path $MergeResult.Mergeresultfolder ConflictModified) | ||
|
||
#ConflictFiles | ||
$ConflictFiles = Get-ChildItem (join-path $MergeResult.Mergeresultfolder '*.CONFLICT') | ||
foreach ($ConflictFile in $ConflictFiles){ | ||
if (-not($InterestingFiles.BaseName.Contains($ConflictFile.BaseName))){ | ||
Write-Host "Deleted conflictfile $($ConflictFile.Name)" | ||
Remove-Item $ConflictFile.FullName | ||
} | ||
} | ||
|
||
#OriginalFiles | ||
$OriginalFiles = Get-ChildItem (join-path $MergeResult.Mergeresultfolder 'ConflictOriginal') | ||
foreach ($OriginalFile in $OriginalFiles){ | ||
if (-not($InterestingFiles.BaseName.Contains($OriginalFile.BaseName))){ | ||
Write-Host "Deleted Original File $($OriginalFile.Name)" | ||
Remove-Item $OriginalFile.FullName | ||
} | ||
} | ||
|
||
#TargetFiles | ||
$TargetFiles = Get-ChildItem (join-path $MergeResult.Mergeresultfolder 'ConflictTarget') | ||
foreach ($TargetFile in $TargetFiles){ | ||
if (-not($InterestingFiles.BaseName.Contains($TargetFile.BaseName))){ | ||
Write-Host "Deleted Target File $($TargetFile.Name)" | ||
Remove-Item $TargetFile.FullName | ||
} | ||
} | ||
|
||
#ResultFiles | ||
<# | ||
$ResultFiles = Get-ChildItem $MergeResult.Mergeresultfolder | ||
foreach ($ResultFile in $ResultFiles){ | ||
if (-not($InterestingFiles.BaseName.Contains($ResultFile.BaseName))){ | ||
Write-Host "Deleted Result File $($ResultFile.Name)" | ||
Remove-Item $ResultFile.FullName | ||
} | ||
} | ||
#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters