[windev] ShellExecute / Windows vista
truckleaj-windev@yahoo.co.uk
truckleaj-windev at yahoo.co.uk
Tue Apr 14 15:29:45 GMT 2009
David
I think I got to the bottom of it. The executable was "blocked". If you rig=
ht-click it and do "unblock" then it functions.
Andrew
________________________________
From: David Little <dlittle at coade.com>
To: truckleaj-windev at yahoo.co.uk; windev at windev.org
Sent: Tuesday, 14 April, 2009 16:29:00
Subject: RE: [windev] ShellExecute / Windows vista
What does the app's manifest say?=A0 You can open the .EXE in visual studio=
to see it - I'd bet it says "requiresAdmin".=A0 You also didn't say what t=
he name of the app was, but if the word 'setup' appears anywhere in the nam=
e, Vista will force upgraded credentials.=A0 That's dumb, I know, but we ha=
d to rename our app's setup from c2setup to c2config because of that "featu=
re"....
- David
-----Original Message-----
From: windev-bounces at windev.org [mailto:windev-bounces at windev.org] On Behal=
f 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:
=A0=A0=A0se.cbSize =3D sizeof( se );
=A0=A0=A0se.lpFile =3D strTMSE;
=A0=A0=A0se.lpParameters =3D strArguments;
=A0=A0=A0se.nShow =3D SW_SHOWDEFAULT;
=A0=A0=A0se.fMask =3D SEE_MASK_NOCLOSEPROCESS;
=A0=A0=A0ShellExecuteEx( &se );
=A0=A0=A0if (se.hProcess !=3D NULL)
=A0=A0=A0{
It works fine but on Vista a security box pops up saying the publisher coul=
d 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?=A0 Need to unsubscribe or change your delivery options?=
=A0 =
Go to http://lists.windev.org/mailman/listinfo/windev
--
Search the Windev Archives - www.windev.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.windev.org/pipermail/windev/attachments/20090414/016b1373=
/attachment.htm
More information about the Windev
mailing list