Welcome to MSDN Blogs Sign in | Join | Help

UAC in MSI Notes: Modifying System in InstallExecuteSequence outside of Script

This is the eleventh in a series of notes about UAC in MSI. Per the earlier caveat, these are just my notes and not an official position from the Windows Installer team. The previous entries

  1. Introduce...
    1. ...the UAC in MSI Notes series
    2. ...my view of the root problem
    3. ...the conflicting per-user definition
    4. ...it'll be just like Managed Installs
    5. ...the jagged edge to user
    6. ...my relief providing framework
  2. Architecture Insights
    1. The "Saw Tooth" Diagram
    2. Credential Prompt and Permissions
  3. Common Package Mistakes
    1. The AdminUser Mistake
    2. Modify System with InstallUISequence Custom Action
This entry will talk about the third common mistake we found packages making with UAC in MSI: improperly modifying the system during a custom action in the InstallExecuteSequence.

Server Custom Actions Modifying the System

Given the pre-Vista operating systems did not enforce the architectural intent to that modifying the system should not occur outside the script of the InstallExecuteSequence, application compatibility testing found a number of packages that had custom actions failing. Here's the "saw tooth" diagram I draw on my whiteboard to illustrate this mistake.

 

With the permissions changes in the context of UAC, that the server outside the script is always executed as Standard User causes the Application Compatibility problems to show up. The red “no” circle is where this mistake is generally made. This mistake is generally mitigated by moving the custom action into the script (represented by the green circle in the above diagram).

Conversations Around this Mistake

Generally folks make this mistake due to lack of awareness as they followed that they needed to be in the server via InstallExecuteSequence.

If the custom action is logging its errors, the trick is to look for an error code that translates to Access Denied.

Published Saturday, September 23, 2006 10:46 AM by rflaming
Filed under:

Comments

# DevInstall.Com » Understanding UAC in Vista and Windows Installer

# DevInstall.Com » Understanding UAC in Vista and Windows Installer

# How UAC in Vista will impact your Setup (updated Sep 26)

Windows Vista introduces a security concept called User Account Control (UAC) which has multiple impacts
Tuesday, September 26, 2006 3:07 PM by InstallSite Blog

# UAC in MSI Notes: How do I get the shield on the advertised shortcut?

This is the nineteenth in a series of notes about UAC in MSI. Per the earlier caveat, these are...
Saturday, September 30, 2006 8:01 PM by Setup Sense and Sensibility
New Comments to this post are disabled
 
Page view tracker