admin or elevated privileges - msi installer

V

Viviana Vc

Hi all,

I have several questions regarding elevated privileges:
1) I need to create an installer that has to install the product
per-machine. So it is a per-machine installation. As by default this
needs to write stuff into HKLM registry key and to put files in places
where a limited user might not have the rights do I have to check for
elevated privileges or admin rights, or is this done somehow by default
by the MSI as it sees it's a per-machine installation?
2) One of my custom actions is installing a LSP (layered service
provider). This installing/uninstalling works only if the current user
is having admin rights. So in order for this custom action to work do I
need to make it deferred in system context, or should I at the beginning
of the installation check for elevated privileges or admin rights and
abort in case they fail? btw, which one should I check for: admin rights
or elevated privileges?
3) I also have to write in HKLM the TARGETDIR. As this is not a custom
action doesn't this mean that actually the whole installer needs
elevated privileges so I should check for those at the beginning? If
yes, does the MSI use those privileges when it sees that something
neeeds to be added in HKLM or do I have to specify this somehow?

Thanks in advance,
Viv
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top