It would help if you gave some detail about the actual failure - "MSI installation fails" isn't very informative. A verbose log might help you too.
Running an MSI from an elevated prompt is not the same as UAC asking for elevation. When run from an elevated prompt the UI and execute sequences both run elevated. However the UAC prompt occurs at the start of the execute sequence - the UI sequence won't be elevated, so CAs there that require privilege will fail, and whether that is reported depends on error reporting in the CA code. As the saying goes, there are three main reasons why installs fail: custom actions, custom actions, and custom actions. Phil Wilson On Fri, Jan 24, 2014 at 2:52 PM, Mustafa Jamil <mustafa_ja...@hotmail.com> wrote: > Hello. > I have a WiX MSI that installs a bootloader. On EFI systems, it does so in > the EFI system partition. On BIOS systems, it chainloads the new boot option > to the Windows Boot Manager (and so running bcdedit shows the new option). > When I run my MSI on a BIOS system, everything works as expected. If I run > cmd as administrator and then install the MSI via msiexec, things work. If I > instead run cmd normally, or just double-click on the MSI, I'll get a UAC > prompt, and then things work as expected. > For EFI, the story is different. On an EFI-installed system, if I run cmd as > administrator and then install the MSI via msiexec, things work. But if I go > the UAC prompt route, my MSI installation fails. > This is confusing. I thought there is no difference between running a command > explicitly as administrator, and running a command by accepting the UAC > prompt, but this clearly shows there is in fact a difference. > Any ideas why I'm running into this behaviour? Any ideas how I can fix this, > or at least debug it further? > P.S. I use the Get/SetEnvironmentVariable API calls from my code to tweak the > EFI partition. This requires the SeSystemEnvironmentPrivilege, which I do > set, so that's not the issue, AFAIK. > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users