InstallShield 2014 MSI installer. Executing a custom Action. The command below executes ok. I am making some changes to the .ps1 file and now see some red\error text that scrolls quickly by, in the command window.
File name and command line: = C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe "& \"[INSTALLDIR]Data\ConfigWebsit.ps1\""
I am fairly new to PowerShell, I did not write the scripts that I am trying to modify.
I am trying to log the output (total output, not just a line or two in the file). If I add the following, the execution of the script, and the install, fails...
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe "& \"[INSTALLDIR]Data\ConfigWebsit.ps1 > [INSTALLDIR]Configwebsit.ps1\""
This also fails...
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe "& \"[INSTALLDIR]Data\ConfigWebsit.ps1 > [INSTALLDIR]Configwebsit.ps1 | Out-File 'C:\path\to\your.log'\""
Can this be done?
Open in new window
should work, as doesOpen in new window
andOpen in new window