r/PowerShell • • 28d ago

Question InstallAnywhere logging with PS?

Hey All,

Does anyone have any experience with InstallAnywhere installers? Weve got some agent upgrades to do, and during our pilot group we ran into some strange failures. We tried to setup logging, but were pretty crunched for time so decided it was a next week problem.

The issue weve found is that InstallAnywhere doesnt advertise its processes the same way an MSI does, so you have to do some janky stuff.

Ive tried passing -RedirectStandardOutput and StandardError to a log file, but theyre either empty, or dont generate at all.

If anyone has any advice or any documentation they can point to thatd be awesome.

Thanks!

7 Upvotes

4 comments sorted by

3

u/BlackV 28d ago edited 28d ago

none of that would be powershell related, it'd all be install anywhere related, as it controls the output and any logging

normally those installers have a logging parameters and debug parameters that control this

I'd be starting with the basics of discovery /?, --help, --help and so on

EDIT: I do remember a tool someone posted in maybe here or sysadmin that finds install switches from installers

1

u/Intelligent-Pay-4398 28d ago

Yeah unfortunately, and I dont know why, none of the discovery flags have worked so far. And even the documentation which gives explicit instructions on how to enable logging during silent installs is wrong. Id like to say its "outdated" but that same page was updated 4 days ago and is just straight up incorrect lol.

But im currently diving into the InstallAnywhere manifest and seeing what I can find. Thanks!

1

u/Intelligent-Pay-4398 28d ago

For anyone following up on this issue, or coming across it via google, according to InstallAnywheres documentation, the discovery flags (-? /help, etc) can only be used prior to compiling the installation exe.

Note • On Windows, -help works only from the console launcher. Make sure to set the LaunchAnywhere to Console in the Windows area in the Platforms view on the Project page. (For an installed LaunchAnywhere to provide this information, you need to make sure it is explicitly set to Console Launcher on the action.)

From Revernera's documentation here:
Installer and Uninstaller Command-Line Arguments

Unless im misinterpreting the docs.