Custom actions that execute WiseScripts do not run on Vista with UAC enabled
|Article:TECH25919|||||Created: 2007-01-10|||||Updated: 2008-04-24|||||Article URL http://www.symantec.com/docs/TECH25919|
|NOTE: If you are experiencing this particular known issue, we recommend that you Subscribe to receive email notification each time this article is updated. Subscribers will be the first to learn about any releases, status changes, workarounds or decisions made.|
When UAC is enabled in Microsoft Vista*, custom actions that call WiseScripts are not executed
Steps to reproduce:
- Using WiseScript Package Editor, create a WiseScript .exe that displays a message.
- Using Windows Installer Editor, create a new .wsi.
- Add one file to the Files page.
- Go to MSI Script tab.
- In the User Interface Sequence, add a Run WiseScript from Installation action. Browse to the .exe created in step1.
- Run the .msi on a Windows Vista computer with UAC enabled.
The .msi runs, but the message in the WiseScript does not appear.
Wise Installation Studio 7.0
Wise Installation Express 7.0
Wise Package Studio 7.0
The Stub32.exe that is used to create the WiseScript .exe has two exported functions. These functions cause Windows Vista to display a prompt asking to trust the program. When the .exe is being called from a Windows Installer custom action, the prompt does not occur and the .exe does not execute.
This issue has been fixed for Wise Installation Studio\Express 7 SP1 and Wise Package Studio 7 SP3.
Workaround: Call the .msi from an .exe wrapper. This can be accomplished by performing the following:
- Go to Installation Expert > Build Options page.
- In the .EXE Options field select Single-File .EXE.
The .exe that is created will contain the .msi. When the end user executes the .exe, they will be prompted by UAC to trust the application. Once they select Allow to trust the program, the .msi will be extracted and executed. Since the user clicked Allow on the prompt when executing the .exe, the WiseScript .exe files inside the .msi will be allowed to run.
|Description||Logged in Littlebuggy (Altiris - Lindon, Plymouth) database|
Article URL http://www.symantec.com/docs/TECH25919