- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: The CA specification "Run 64-bit Powershell script" seams to have no influence
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The CA specification "Run 64-bit Powershell script" seams to have no influence
Hello,
I have the impression, that the CA specification "Run 64-bit Powershell script" does not work, has no influence.
Bug or feature?
Regards
Johannes
- Tags:
- Powershell CA
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
What version of installshield you are using?
When you set the "Run 64-bit Powershell script" you are not seeing the customaction running on a 32 bit or 64 bit machine?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Many thanks to you both!
This solution seams to work in 32-bit- and in 64-bit-environment.
But in my tests in about 40% , the messagebox pops up behind my dialog.
Is there a way to make it sure, that the box pops up in front?
Regards
Johannes
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
This behaviour is due to how the Windows OS handles the popups - and not caused by Installshield.
You would need to include something in the powershell to get the OS to handle the window and set it to the foreground.
An example of a windows API that could help:
SetForegroundWindow function:
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setforegroundwindow
There are some examples of powershell using this API here:
https://stackoverflow.com/questions/12801563/powershell-setforegroundwindow