Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING 2 MSIs and a Powershell not working

AaronZ

Active Member
Messages
35
Solutions
2
Reaction score
7
Points
8
I am tasked with deploying updated software for Epic. Here is the situation.
  1. MSI to install the main application
  2. 2nd MSI to install an update to the first one
  3. Powershell script to copy files from the source directory to the local computer.
I have tried 2 different ways:
  1. Deployment with 3 items.
  2. Deployment with the first app and script
  3. Deployment with the 2nd app.
If I try 1, only the first app gets installed. I have dependencies set up for the 2nd app and Powershell script and it "should" run in that order. If I try 2, the app gets installed but the script does not run. I am assuming 3 will work since it is just an MSI installer.
I checked the Status Messages on the PC I am testing this on and there are messages indicating anything!

Please help me!!

PS: This is now the 2nd time posting this question. The first one was deleted with no message from a Mod or Admin.
 
I am tasked with deploying updated software for Epic. Here is the situation.
  1. MSI to install the main application
  2. 2nd MSI to install an update to the first one
  3. Powershell script to copy files from the source directory to the local computer.
I have tried 2 different ways:
  1. Deployment with 3 items.
  2. Deployment with the first app and script
  3. Deployment with the 2nd app.
If I try 1, only the first app gets installed. I have dependencies set up for the 2nd app and Powershell script and it "should" run in that order. If I try 2, the app gets installed but the script does not run. I am assuming 3 will work since it is just an MSI installer.
I checked the Status Messages on the PC I am testing this on and there are messages indicating anything!

Please help me!!

PS: This is now the 2nd time posting this question. The first one was deleted with no message from a Mod or Admin.
Since you are using powershell anyways, why are you not installing everything within it?
 
Does anyone else have any other way of getting 2 MSIs to install, and then run a PowerShell script? I have tried using a PowerShell script to do everything and it failed. I create programs in our environment using the following:
Code:
powershell.exe -ExecutionPolicy Bypass -File "filename.ps1"
But this does not work.
 
Here is the code:
Code:
Start-Process msiexec.exe -ArgumentList '-i "Epic February 2023 Workflow Conductor.msi" /qn /norestart' -Wait
Start-Process msiexec.exe -ArgumentList '-i "Epic February 2023 Workflow Conductor-Pack 2.msi" /qn /norestart'
Start-Sleep -Seconds 300

$wcdir="C:\Program Files (x86)\Epic\Workflow Conductor"
$progdata="C:\ProgramData\Epic\Config"
$pubdesk="C:\Users\Public\Desktop"
$foundir="C:\Program Files (x86)\Epic\Foundations"

##Just in case mkdir -Path $wcdir

Copy-Item "$PSScriptRoot\Epic.Env.Config" -Destination $wcdir -Recurse -force
Copy-Item "$PSScriptRoot\EpicComm.env" -Destination $wcdir -Recurse -force
Copy-Item "$PSScriptRoot\EpicComm.env" -Destination $foundir -Recurse -force
Copy-Item "$PSScriptRoot\EPIC.cli" -Destination $progdata -Recurse -force
Copy-Item "$PSScriptRoot\WorkflowConductor - Shortcut.lnk" -Destination $pubdesk -Recurse -force
Copy-Item "$PSScriptRoot\WarpDriveConfig-x64.reg" -Destination $wcdir -Recurse -force
Invoke-Command {reg import $wcdir\WarpDriveConfig-x64.reg *>&1 | Out-Null}
Copy-Item "$PSScriptRoot\LoginAsCurrentUser.reg" -Destination $wcdir -Recurse -force
Invoke-Command {reg import $wcdir\LoginAsCurrentUser.reg *>&1 | Out-Null}
 
Here is the code:
Code:
Start-Process msiexec.exe -ArgumentList '-i "Epic February 2023 Workflow Conductor.msi" /qn /norestart' -Wait
Start-Process msiexec.exe -ArgumentList '-i "Epic February 2023 Workflow Conductor-Pack 2.msi" /qn /norestart'
Start-Sleep -Seconds 300

$wcdir="C:\Program Files (x86)\Epic\Workflow Conductor"
$progdata="C:\ProgramData\Epic\Config"
$pubdesk="C:\Users\Public\Desktop"
$foundir="C:\Program Files (x86)\Epic\Foundations"

##Just in case mkdir -Path $wcdir

Copy-Item "$PSScriptRoot\Epic.Env.Config" -Destination $wcdir -Recurse -force
Copy-Item "$PSScriptRoot\EpicComm.env" -Destination $wcdir -Recurse -force
Copy-Item "$PSScriptRoot\EpicComm.env" -Destination $foundir -Recurse -force
Copy-Item "$PSScriptRoot\EPIC.cli" -Destination $progdata -Recurse -force
Copy-Item "$PSScriptRoot\WorkflowConductor - Shortcut.lnk" -Destination $pubdesk -Recurse -force
Copy-Item "$PSScriptRoot\WarpDriveConfig-x64.reg" -Destination $wcdir -Recurse -force
Invoke-Command {reg import $wcdir\WarpDriveConfig-x64.reg *>&1 | Out-Null}
Copy-Item "$PSScriptRoot\LoginAsCurrentUser.reg" -Destination $wcdir -Recurse -force
Invoke-Command {reg import $wcdir\LoginAsCurrentUser.reg *>&1 | Out-Null}
And Exactly what error are you getting?
 
None. When I run this from SCCM, it will install the first app and then nothing after it.
 
Back
Top