How to perform multiple installations in PSAPPDEPOYTOOLKIT?

Hi there,

I am trying to install an MSI file, followed by a registry entry and lastly a copy file function. But looking at the logs it’s stopping at the MSI execution.

How do I get it to carry out the other tasks in the script?

These 3 tasks

Execute-MSI -Action Install -Path "$dirFiles\E80.87_CheckPointVPN_Site.msi" -Parameters "/QN /norestart"
        powershell.exe -command "New-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings -Name 'Microsoft.Explorer.Notification.{5F9DDECE-6A92-0295-6D91-CB7159F2572A}'; Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\'Microsoft.Explorer.Notification.{5F9DDECE-6A92-0295-6D91-CB7159F2572A}' -Name Enabled -Value 0 -Type DWord -Force "
      Copy-File -Path "$dirSupportFiles\*.*" -Destination "C:\Program Files (x86)\CheckPoint\Endpoint Connect\res"

Log File

Any help is much appreciated.

Thank you

Can you confirm if the MSI requires a reboot before completing if it is ran manually? Per the log it does appear that it’s asking for a reboot after the installation.
With regards to the registry key setting, is that something that has to be applied for the user/all users on the system you are deploying to? If so, the best option for doing this is using the “Invoke-HKCURegistrySettingsForAllUsers” function, the information for this is provided in the documentation for the toolkit.
Lastly, try using the variable $envProgramFilesX86 for the destination path, sometimes this works better than the absolute path.


Additionally, with regards to the copy, please see this post as it could be beneficial: