Hi Keneth,
As my colleague Eusebiu pointed, the
ScreenX property and
ScreenY properties are correctly set by Windows Installer during the
Wizard Dialogs Stage, but when passing in the
Install Execution Stage these properties are reset to a default value:
- ScreenX = 1024
- ScreenY = 768
Any resolution lower than this, will trigger the launch condition.
There are other users which faced this problem:
In this case, you need to get the values of the Vertical and Horizontal Resolution when passing on the
Install Execution Stage and set the
ScreenX and
ScreenY with correct values. For this, you can use a custom action. For example, you can use the predefined
Run Windows PowerShell Script custom action and use the following script code:
Code: Select all
$MyScreenX = Get-WmiObject win32_videocontroller | select CurrentHorizontalResolution
$MyScreenY = Get-WmiObject win32_videocontroller | select CurrentVerticalResolution
AI_SetMsiProperty ScreenX $MyScreenX
AI_SetMsiProperty ScreenY $MyScreenY
Make sure you schedule this custom action in the
Install Execution Stage before the
Searches stage. You can also take a look on the
Use PowerShell to Discover Multi-Monitor Information article which may be useful to you.
The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.
If there is anything else I can help you with, please let me know.
Best regards,
Dan