We have a WiX (v3.0.2315.0) project in VS2005 to build an installer
for one of our products. The installer makes use of the User element
to create a new user on the target machine for various purposes. I
have recently been instructed to make sure the user is able to
manipulate a registry key as part of the installation process. By
default, the user is only able to read this particular key, nothing
else.

My initial thought was to use the PermissionEx element nested under an
appropriate RegistryKey element. However, this doesn't seem to work as
the user has not been created by the time the installer attempts to
set the permissions on the registry key.

Another custom action run by our installer also relies on the user
being created, and by sequencing it after InstallFinalize, it worked.
It seems that I could write another custom action that sets the
required permissions, sequence it after InstallFinalize, and have
everything work. Am I on the right track? Did I miss something
important? Is there a better way to do this?

Matthew

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to