Hey all,
Searched for this, so this must just be me missing something extremely unfortunate.
Where the code breaks
<code> ## <Perform Installation tasks here> $AginityPath = '.\Files\AginityNetezzaWorkbenchSetupx64.exe' $NZODBCPath = '.\files\nzodbcsetup.exe' $NZOLEDBPath = '.\Files\nzoledbsetup64.exe' Execute-Process -Path $AginityPath -Parameters "/s ACCEPTEULA=TRUE ALLUSERS=FALSE" </code>
Checking the log I get the following error
<code>
[Installation] :: Function failed, setting exit code to [60002].
Error Record:
[Installation] :: Function failed, setting exit code to [60002].
Error Record:
Message : The term '.\Files\AginityNetezzaWorkbenchSetupx64.exe' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
InnerException :
FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
ScriptStackTrace : at Execute-Process<Process>, C:\App\Netezza\Toolkit\AppDeployToolkit\AppDeployToolkitMain.ps1:
line 2803
at <ScriptBlock>, C:\App\Netezza\Toolkit\Deploy-Application.ps1: line 144
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1
PositionMessage : At C:\App\Netezza\Toolkit\AppDeployToolkit\AppDeployToolkitMain.ps1:2803 char:35
+ … ifiedPath = Get-Command -Name $Path -CommandType 'Application' -Total …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Execute-Process 3/27/2018 6:22:54 PM 12532 (0x30F4)
</code>
So it seems to be trying to take my Path variable I set and running that as a command. I have tried just putting the raw path into the the path argument, with no avail, I have tried single and double quotes, I have tried praying directly to Jeffrey Snover but my prayers are unanswered.
The part that really makes me confused is when I run the .ps1 file, the installation goes through properly, and I verified everything properly is installed and configured as I lay out further along in my script. Any advice is appreciated. I’ve been scratching my head over this simple issue all day.