Hello Guys i would like your help in the following. I have a folder that contains some msi files that i am installing with powershell. the code is as follows.
Start-Process -FilePath $(Join-Path -Path $PSScriptRoot -ChildPath "VS2010_Runtimes_x86.msi") -ArgumentList '/qb' -Wait
i use the same command to install the rest of the msi files. I have a different folder thats called Project that lives inside the original folder. I would like to copy all the files that are inside project folder to a different directory.
Copy-Item -Path $(Join-Path -Path $PSScriptRoot -ChildPath "Project") -Destination "C:\Program Files (x86)\Hewlett Packard Enterprise\Records Manager" -Recurse
The code for copying files does not work :(
My entire code is:
Start-Process -FilePath $(Join-Path -Path $PSScriptRoot -ChildPath "VS2010_Runtimes_x86.msi") -ArgumentList '/qb' -Wait
Start-Process -FilePath $(Join-Path -Path $PSScriptRoot -ChildPath "VS2013_Runtimes_x86.msi") -ArgumentList '/qb' -Wait
Start-Process -FilePath $(Join-Path -Path $PSScriptRoot -ChildPath "HPE_RM_x86.msi") -ArgumentList '/qb' -Wait
Remove-Item 'C:\Users\Public\Desktop\HPE RM Queue Processor.lnk'
Remove-Item 'C:\Users\Public\Desktop\HPE RM Desktop.lnk'
Copy-Item -Path $(Join-Path -Path $PSScriptRoot -ChildPath "Project") -Destination "C:\Program Files (x86)\Hewlett Packard Enterprise\Records Manager" -Recurse