Post-Installation not completeing

Topics: Archive - General
Dec 15, 2014 at 4:44 PM
I have two commands that are supposed to Activate an office product, but the code doesn't execute.
#*===============================================
#* INSTALLATION 
$installPhase = "Installation"
#*===============================================

    # Perform installation tasks here
    $LyncArgs = "/config","SilentLyncConfig.xml"
    Execute-Process -FilePath "$dirfiles\Setup.exe" -Arguments $LyncArgs

#*===============================================
#* POST-INSTALLATION
$installPhase = "Post-Installation"
#*===============================================

# Perform post-installation tasks here
    cscript.exe 'C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS' /inpkey:XXXX-XXXX-XXXX-XXXX-XXXX
    cscript.exe 'C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS' /act
and here is what the log shows:
[24-11-2014 20:30:21] [Initialization] Session 0 detected.
[24-11-2014 20:30:21] [Initialization] Installation is running in [NonInteractive] mode.
[24-11-2014 20:30:21] [Installation] Working Directory is [C:\Windows\ccmcache\o\Files]
[24-11-2014 20:30:21] [Installation] Executing [C:\Windows\ccmcache\o\Files\Setup.exe /config SilentLyncConfig.xml]...
[24-11-2014 20:34:41] [Installation] Execution completed successfully with exit code [3010]. A reboot is required.
[24-11-2014 20:34:49] [Post-Installation] Microsoft_Lync2013Client__EN_01 Installation completed with exit code [0].
[24-11-2014 20:34:49] [Post-Installation] ----------------------------------------------------------------------------------------------------------
and the log stops there.

Could it be because I'm not using Execute-Process? I guess I assumed that it would still execute just using the process name since it's in the PATH env variable.
Developer
Dec 15, 2014 at 4:53 PM
I'm sure it executes but since you don't use Execute-Process, the operation does not get logged and we get no feedback on what exit code cscript.exe ended with.
Marked as answer by therealjoshuad on 12/15/2014 at 9:58 AM
Dec 15, 2014 at 4:58 PM
I realized my mistake as soon as I started typing for this thread, but I figured I'd might as well post to confirm. Thanks