That error is being floated up from the installer engine. I’m guessing the package MSI doesn’t define a default install path, so unless you can provide one in some other way (perhaps modifying the MSI itself), it can’t run. It may also be attempting to access a user-specific path, which won’t exist under the LCM’s execution context.
Emito good catch however I just copied it incorrectly. My actual code has the the colon. Thanks for looking!
Actually the way Netbackup client is designed to install is by using a file called “silentclient.cmd”. In this file, there is a line that reads "SET INSTALLDIR=C:\Program Files\Veritas". This is probably what the installer engine that Don is referring to is looking for. But the error reads “Could not find the DestininationPath” so Im not sure if that is the same variable. Then at the bottom of this cmd file, there is a line that reads "setup.exe -s /REALLYLCOAL /RESPFILE:‘%RESPFILENAME%’ " which actually does the install.
So you would think I could just do path = "e:\packages\NetBackup_7.7.1_Win\PC_Clnt\x64\silentclient.cmd " but that gives me the same error. This is ideal but I wasnt sure if powershell understands .cmd files so thats why I just tried using the msi file. When I try running silentclient.cmd from a powershell command it says it doesnt know what a cmd file is.
The bigger question is should I even use Netbackup. Does Powershell DSC offer a decent bare metal backup solution for VMware backups?