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?
rider_hdlive,
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.