HI,
I am trying to execute following code to remove reader setup before installing my msi.
Execute-Process -FilePath “$envWinDir\System32\cscript.exe” -Parameters “’$dirSupportFiles\Cleaner1.vbs’” -WindowStyle ‘Hidden’
Everytime it runs, it gives error: [Pre-Installation] :: Execution failed with exit code [1]. and did not uninstall anything from pc and gives installation failed message.
Vbs files when ran externally is working good. No issues. But when executing from .ps1 it gave this error, any suggestion.