[wix-users] Prompt for Windows Credentials in Wix for Admin Privileges

Edwin Castro egcastr at gmail.com
Fri Nov 24 10:34:56 PST 2017


All standard actions will do The Right Thing (R). If you're not getting
prompted then you're doing something else wrong, like running custom
actions requiring elevation in immediate mode.

You should consider asking why something works or doesn't work the way you
expect instead of asking how to implement a specific solution to a problem
you have not fully described. This is especially true when experts are
telling you that you're trying to do something bad, not recommended, or not
a best practice.

When asking why, you must explain what you are doing and why as well as
what you expect and why you think you are observing behavior that doesn't
match your expectations. This information is critical for providing the
best advice for your specific scenario.

If you ask about a bad solution, then all you'll get is a lot of responses
not to do it. Remember the customer is not always right, especially when
highly specialized technology is involved. The Windows Installer is *not* a
scripting language.

--
Edwin G. Castro

On Nov 24, 2017 01:01, "Ven H via wix-users" <wix-users at lists.wixtoolset.org>
wrote:

Thanks a lot for your response Nir. What you are referring to is Custom
Action, right? I also have Registry key creation, Adding files to Program
Files location, Custom Services, IIS setting changes (creating sites and
app pools), Database deployment and so on. I am not sure how to handle
these without Admin privileges.

Regards,
Venkatesh

On Fri, Nov 24, 2017 at 1:20 PM, Nir Bar via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> You should author any action that requries admin privileges as deferred
> with Impersonate="no"This will ensure that admin rights are granted for
> these actions without needing the LaunchCondition.
>
>
>
>
>
> --Independent WiX Expert. Creator of-
> JetBA: WPF Bootstrapper User Interface Framework
>
> JetBA++: Native Qt Bootstrapper User Interface Framework
>
>
>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/



More information about the wix-users mailing list