Method #2 - apply from an elevated command prompt.
 
I'm a little unclear about the requirement. If the MSI requires elevation, any 
applied MSP will prompt for elevation as needed and all non-impersonated 
in-script actions will run elevated (same as the MSI, adding an MSP doesn't 
change how that works).
 
If the original MSI doesn't require elevation and the MSP introduces that 
requirement (due to some new thing its doing) then LUA patching won't 
accommodate that requirement. You really should use a major upgrade (and 
possibly a bootstrapper that gives you a working upgrade path) to replace that 
original MSI.
 
Blair
 
> From: jacob.hoo...@greenheck.com
> To: wix-users@lists.sourceforge.net
> Date: Tue, 25 Jun 2013 17:10:15 +0000
> Subject: Re: [WiX-users] Require admin rights to msp
> 
> Digitally sign the original MSI, include the public cert in the 
> MsiPatchCertificate table, and then sign the MSP with the same certificate.
> 
>     <PatchCertificates>
>       <DigitalCertificate Id="MyCompany" SourceFile="MyCompany.cer"/>
>     </PatchCertificates>
> 
> And in the wixproj,
> 
>   <Target Name="SignCabs" DependsOnTargets="UsesSignTool">
>     <Exec Command="&quot;$(SignToolPath)&quot; sign /t 
> http://timestamp.digicert.com /a &quot;%(SignCabs.FullPath)&quot;" />
>   </Target>
>   
>   <Target Name="SignMsi" DependsOnTargets="UsesSignTool">
>     <Exec Command="&quot;$(SignToolPath)&quot; sign /d &quot;My App 
> Setup&quot; /t http://timestamp.digicert.com /a 
> &quot;%(SignMsi.FullPath)&quot;" />
>   </Target>
> 
> I use custom logic to detect the location of SignTool, but that should get 
> you started.  Note, group policy can still disable LUA patching.
> 
> -----Original Message-----
> From: chintala srinivas [mailto:chentala.srini...@gmail.com] 
> Sent: Tuesday, June 25, 2013 11:53 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Require admin rights to msp
> 
> Hi,
> 
> I have a patch(.msp) file which will works fine only if it runs from 
> administrative command prompt on UAC on machine.
> Can anyone please let me know how to give admin privileges to .msp.
> 
> Regards,
> Srinivas.
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to