[windev] ShellExecute / Windows vista

David Little dlittle at coade.com
Tue Apr 14 15:29:00 GMT 2009


What does the app's manifest say?  You can open the .EXE in visual studio to see it - I'd bet it says "requiresAdmin".  You also didn't say what the name of the app was, but if the word 'setup' appears anywhere in the name, Vista will force upgraded credentials.  That's dumb, I know, but we had to rename our app's setup from c2setup to c2config because of that "feature"....

- David

-----Original Message-----
From: windev-bounces at windev.org [mailto:windev-bounces at windev.org] On Behalf Of truckleaj-windev at yahoo.co.uk
Sent: Tuesday, April 14, 2009 2:30 AM
To: windev at windev.org
Subject: [windev] ShellExecute / Windows vista

Hello

I have some code to invoke an application silently:

   se.cbSize = sizeof( se );
   se.lpFile = strTMSE;
   se.lpParameters = strArguments;
   se.nShow = SW_SHOWDEFAULT;
   se.fMask = SEE_MASK_NOCLOSEPROCESS;
   ShellExecuteEx( &se );
   if (se.hProcess != NULL)
   {


It works fine but on Vista a security box pops up saying the publisher could not be verified. The executable being run is bart of an installation from someone else. They provided an upgraded EXE file which was downloaded and placed directly in the TMSe program files folder. I am not sure if this is the reason for the security warning.

Ideas?

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.windev.org/pipermail/windev/attachments/20090414/7413bdc5/attachment.htm
-- 
Windev mailing list at Windev at windev.org

Lost your password?  Need to unsubscribe or change your delivery options?  
Go to http://lists.windev.org/mailman/listinfo/windev
--
Search the Windev Archives - www.windev.org


More information about the Windev mailing list