简体   繁体   中英

Enabling installer rights using installer created through Wix

I have created an installer using Wix on a dialog page i am running as an admin i want a checkbox that if checked should install for the current user(admin) and all other users in the system , is it possible using Wix?

And how would the installer checks the rights that the current user has?

For example if i am installing on a standard user account then how would the installer would know what account is it?

Thanks

As I understand, u need to have a special gui window for the checkboxes? U could see here for a good tutorial.

Another ur problem is to check current user and his rights? u need to use some standard env variables. Use

    <Condition Message="Message text">Privileged</Condition>

to check admin rights. If this condition is passing - ur running as an administrator.

For checking the current user, use LogonUser env variable. Eg u can create a custom dialog, where u could check whether it needs to be installed "for all" users or just for current. next step - checking for admin rights.

And.. use more google...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM