Re: How to raise rights...



Christian Kaiser wrote:
> Hi,
>
> I need some first push to find the way :)))
>
> For our setup (WISE, not MSI yet) I would like to find a way to enter
> registry entries in HKLM and HKCR. Thus I need the rights to do so
> even as "normal" user. Which means, I need a way to give the user
> these rights temporarily by asking for an admin user/password,
> setting the right, doing whatever necessary, and removing this right
> later in the install process.
>
> Could anybody please give me a hint where to search for such a task?

To answer your specific question

CredUIPromptForCredentials
LogonUser
ImpersonateLoggedOnUser
RevertToSelf

However, it is better to redesign your setup logic to make your application
installed *once* by administrator rather than every time for each user.


--
Eugene
http://www.gershnik.com


.



Relevant Pages

  • How to start my app after install
    ... I've developed an MFC aplication using visual studio 2008, ... I added a 'Setup and deployment' project to my ... the install process. ...
    (microsoft.public.vc.mfc)
  • Re: How to start my app after install
    ... I've developed an MFC aplication using visual studio 2008, ... I added a 'Setup and deployment' project to ... end of the install process. ...
    (microsoft.public.vc.mfc)
  • "Setup is starting Windows" but never do
    ... Install process hangs at "Setup is Starting Windows" message. ... If I specify Standard PC HAL during text mode of installation process, then the Setup does start Windows. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Windows XP freezes during install when detecting/installing devices
    ... If yes what is the Device Error code? ... The install process just loops, I'm still in the setup phase of ... still in setup. ...
    (microsoft.public.windowsxp.help_and_support)
  • Management Points
    ... I cut and pasted what im getting in the MSI error log. ... FilesInUse_Info = Setup has detected that it needs to update some files that are currently in use by other processes. ... WelcomeDialog_Info = This will install the Systems Management Server Management Point. ... UserExitDialog_Info = The SMS Management Point setup was cancelled. ...
    (microsoft.public.sms.admin)