DisableMsi machine policy - install dies, no message to user - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

DisableMsi machine policy - install dies, no message to user

G'day,

I'm using AI 7.7 build 28804

The relevant configurations from my project are:
- Installation Type: Per-user only
- Bootstrapper Execution Level: As Invoker

Target Machine:
- Windows Vista or Windows 7
- user is part of machine admin group
- the following machine policy is enabled in the registry:
  • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer
  • "DisableMSI"=dword:00000001
Steps To Reproduce:
1) login as user who is part of machine admin group
2) run the bootstrapper
3) note: the install type is per-user, so the UAC is never triggered
4) click through the dialogs until you reach the VerifyReadyDlg, then click the "Install" button
5) the ProgressDlg loads as usual, but then suddenly disappears
6) no errors messages are presented to the user
7) no processes related to the install are running (msiexec is not running, bootstrapper is not running)

Relevant Info From Log:
  • "Running product '{code}' with user privileges. DisableMsi policy is set to or defaulted to 1. This is the client and the user does not have full admin token. Evaulation is delayed until after credentials provided. This install could still be blocked"
  • ...
  • "Rejecting product '{code}': Non-assigned apps are disabled for non-admin users."
  • "Info 1625. This installation is forbidden by system policy. Contact your system administrator."
If I delete the "DisableMsi" registry key (or set the value to "0") and re-run the install, everything works perfectly.

I understand that machine policies exist for a reason, and that IT departments often enforce them; that is fine. However, my concerns with the current behavior are:
1) shouldn't the install fail immediately when the MSI is invoked, due to the DisableMsi policy?
2) when the install fails, the installer GUI disappears and no error message is reported to the user


Thanks for your help,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: DisableMsi machine policy - install dies, no message to user

Hi Todd,
1) shouldn't the install fail immediately when the MSI is invoked, due to the DisableMsi policy?
I believe the check for policies is done during InstallExecuteSequence, which is why the installation is not prevented from the very beginning.
2) when the install fails, the installer GUI disappears and no error message is reported to the user
I did replicate the issue when having Enhanced UI enabled. Thank you for reporting this. A fix will be included in a future version of Advanced Installer. In the meantime, if you still want to use the Enhanced User interface, you could do a check for the policy yourself and prevent the installation, until the bug is fixed.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: DisableMsi machine policy - install dies, no message to user

Hi Gabriel,

Thank you for confirming the problem and providing a work-around. I will probably check for the policy myself (perhaps as a Custom Launch Condition), as you suggested.

-Todd

Return to “Common Problems”