Windows 10 64bit VM
Hello again,
I wrote a ps1 script to install the MSI Package for RealVNC as a Custom Action.
It didn't work, so I found the Installer actions on your blog and replicated them in a batch
on the target system to do some troublshooting:
Code: Select all
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -InputFormat None -NoProfile -File "C:\VNCInstall.ps1"
This works. I have it placing text into a log file whether true or false to indicate the outcome of the logic.
However when I run the ps1 as a Custom Action I can just about see the VNC MSI unpacking in the background then it disappears.
The custom action script is also trapping $Error but nothing comes out.
I'm trying to remember is this scenario is strictly forbidden: install an MSI from within an MSI.
I thought I might have read something about that.
Should this work?
EDIT: I tried post commit but that didn't work either.