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.
Article Type
Technical Solution



Issue



When UAC is enabled in Microsoft Vista*, custom actions that call WiseScripts are not executed

Steps to reproduce:

  1. Using WiseScript Package Editor, create a WiseScript .exe that displays a message.
  2. Using Windows Installer Editor, create a new .wsi.
  3. Add one file to the Files page.
  4. Go to MSI Script tab.
  5. In the User Interface Sequence, add a Run WiseScript from Installation action. Browse to the .exe created in step1.
  6. Compile.
  7. Run the .msi on a Windows Vista computer with UAC enabled.

The .msi runs, but the message in the WiseScript does not appear.


Environment



Wise Installation Studio 7.0
Wise Installation Express 7.0
Wise Package Studio 7.0
Microsoft Vista

Cause



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.


Solution



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:

  1. Go to Installation Expert > Build Options page.
  2. 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.


Supplemental Materials

SourceDEFECT
ValueLB 56761
DescriptionLogged in Littlebuggy (Altiris - Lindon, Plymouth) database

Legacy ID



31815


Article URL http://www.symantec.com/docs/TECH25919


Terms of use for this information are found in Legal Notices