How to prevent windows minimizing

Topics: Archive - General
Mar 21, 2014 at 3:23 PM
Hello

I'm trying to prevent all windows from minimizing when using the Show-InstallationWelcome cmdlet. I can see from the documentation that -MinimizeWindows is a parameter but I can't see how to use it.

Does anyone know what value is required or what the correct use is please?

Thank you,

Duncan.
Mar 21, 2014 at 4:29 PM
I've found that if I change the value from $true to $false on line 2893 (AppDeployToolkitMain.ps1 version 3.1) then I get the expected result but it would be good to get the same results without changing any code.
Coordinator
Mar 21, 2014 at 5:16 PM
Hi Duncan,

That's exactly how you use the parameter!

-MinimizeWindows $false

Seán

Mar 24, 2014 at 9:06 AM
Hi Seán

Thanks for your reply. I've tried using the parameter $false but it makes no difference, the windows still minimize :(


Duncan.
Coordinator
Mar 26, 2014 at 10:34 PM
Hi Duncan,

Looks like this was broken in a previous update, it will be fixed in v3.1.1

Thanks,
Seán
Apr 9, 2014 at 2:54 AM
I'm running PSADT v.3.1.1 and may have found a bug where if there is no value set for -MinimizeWindows the script will error out stating 'must be boolean'. Perhaps the function has no default value, which I think should be set to $true.
Coordinator
Apr 9, 2014 at 12:50 PM
Value is set to $true already. Can you screengrab what the issue is?

Thanks, Dan
Apr 10, 2014 at 8:25 PM
Here is message taken from the PSAppDeployToolkit.log

[10-04-2014 14:17:23] [Initialization] Current Culture is [en-US] and UI language is [EN]
[10-04-2014 14:17:23] [Initialization] Deployment type is [Installation]
[10-04-2014 14:17:23] [Initialization] Installation is running in [Interactive] mode.
[10-04-2014 14:17:24] [Pre-Installation] Missing an argument for parameter 'MinimizeWindows'. Specify a parameter of type 'System.Boolean' and try again. ()
[10-04-2014 14:17:24] [Pre-Installation] Displaying Dialog Box with message: [Missing an argument for parameter 'MinimizeWindows'. Specify a parameter of type 'System.Boolean' and try again. ()]...