I am creating an Advanced Installer Professional 17.1.1 user-only installer, and have written an PowerShell Inline Script in the first Intell Execution Stage.
The "Plaform" paramter (Auto, x64, x86) is not saved, and will always return to x86 after the view have changed (go to another page and return to the custom action).