From: Mike [MSFT] on 10 Feb 2010 19:03 I assume you are seeing the first PCA dialog on this page? http://msdn.microsoft.com/en-us/library/bb756937.aspx After you change your manifest file, does the program automatically try to elevate? You might also try the same test by right clicking the program and choosing "Run as administrator". -Mike "Neal Bade" <neal(a)tharo.com> wrote in message news:ems0dQQqKHA.3824(a)TK2MSFTNGP06.phx.gbl... > I managed to get self-extracting exe to invoke the "Add Printer" > wizard by starting a 64-bit executable that calls rundll32 and > passes the "printui.dll,PrintUIEntry" command line. > > Unfortunately, after the driver is installed, the Windows > "Program Compatibility Assistant" pops up a dialog box that > says "The program might not have installed correctly". > > I did some research on MSDN regarding the PCA (Program compatibility > assistant) and I quote: > > "The best option to exclude a program from PCA is to include, with the > program, an application manifest with run level (either Administrator or > as limited users) marking for UAC. This marking means the program is > tested to work under UAC (and Windows Vista and Windows Server 2008). PCA > checks for this manifest and will exclude the program." > > So I added a program manifest for the self-extracting exe, with the > relevant parts being: > > <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> > <security> > <requestedPrivileges> > <requestedExecutionLevel level="requireAdministrator" > uiAccess="false" /> > </requestedPrivileges> > </security> > </trustInfo> > > This does not seem to affect the PCA at all. I still get the annoying > dialog box about the program not being installed correctly. > > Any ideas? > > Neal Bade > www.tharo.com
From: Neal Bade on 12 Feb 2010 10:16
Yes I do get the elevation prompt, either by running the exe with the associated manifest, or by "run as administrator". in both cases I still get the "program might not have installed correctly". Neal Mike [MSFT] wrote: > I assume you are seeing the first PCA dialog on this page? > http://msdn.microsoft.com/en-us/library/bb756937.aspx > > After you change your manifest file, does the program automatically try > to elevate? You might also try the same test by right clicking the > program and choosing "Run as administrator". > > -Mike > > "Neal Bade" <neal(a)tharo.com> wrote in message > news:ems0dQQqKHA.3824(a)TK2MSFTNGP06.phx.gbl... >> I managed to get self-extracting exe to invoke the "Add Printer" >> wizard by starting a 64-bit executable that calls rundll32 and >> passes the "printui.dll,PrintUIEntry" command line. >> >> Unfortunately, after the driver is installed, the Windows >> "Program Compatibility Assistant" pops up a dialog box that >> says "The program might not have installed correctly". >> >> I did some research on MSDN regarding the PCA (Program compatibility >> assistant) and I quote: >> >> "The best option to exclude a program from PCA is to include, with the >> program, an application manifest with run level (either Administrator >> or as limited users) marking for UAC. This marking means the program >> is tested to work under UAC (and Windows Vista and Windows Server >> 2008). PCA checks for this manifest and will exclude the program." >> >> So I added a program manifest for the self-extracting exe, with the >> relevant parts being: >> >> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> >> <security> >> <requestedPrivileges> >> <requestedExecutionLevel level="requireAdministrator" >> uiAccess="false" /> >> </requestedPrivileges> >> </security> >> </trustInfo> >> >> This does not seem to affect the PCA at all. I still get the annoying >> dialog box about the program not being installed correctly. >> >> Any ideas? >> >> Neal Bade >> www.tharo.com > |