PDA

View Full Version : XP Run As warning



NewsArchive
11-12-2009, 02:42 AM
Does anyone know of anyway I can prevent the XP Run As window from
appearing?<g>

The installation program is code signed as is the exe being installed.

The script line that makes this window pop up is the
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\OSQL.exe

I'm using ShellExecute and tried both Run elevated on and off.

Basically run some SQL commands to a MS SQL Express 2008 installation.

Thanks!
--
--
Cheers
Richard

NewsArchive
11-12-2009, 02:43 AM
Hi Richard,

> Does anyone know of anyway I can prevent the XP Run As window from
> appearing?<g>

IMO, this can only happen if you have the "Run elevated from non-elevated
SetupBuilder application" option enabled.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
11-12-2009, 02:43 AM
>> Does anyone know of anyway I can prevent the XP Run As window from
>> appearing?<g>
>
> IMO, this can only happen if you have the "Run elevated from non-elevated
> SetupBuilder application" option enabled.

BTW, I think we'll change the runtime in such a way that this option is only
executed on Vista and better machines.

Friedrich

NewsArchive
11-12-2009, 02:44 AM
>> IMO, this can only happen if you have the "Run elevated from non-elevated
>> SetupBuilder application" option enabled.
>
> BTW, I think we'll change the runtime in such a way that this option is only
> executed on Vista and better machines.

Good idea!

We're wrapping dual run statements into an IF ELSE block based on the OS
version, so that would eliminate the need to do that.

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
11-12-2009, 02:44 AM
Hi Charles,

>> BTW, I think we'll change the runtime in such a way that this option is
>> only executed on Vista and better machines.
>
> Good idea!
>
> We're wrapping dual run statements into an IF ELSE block based on the OS
> version, so that would eliminate the need to do that.

Changed in the runtime now and will be available in the next maintenance
build. The installer only makes use of the "runas" verb to launch an
application elevated from an non-elevated SetupBuilder application if the
operating system is Vista or better. So the If..Else block is not required
any longer.

Friedrich

NewsArchive
11-12-2009, 02:44 AM
> Changed in the runtime now and will be available in the next maintenance
> build. The installer only makes use of the "runas" verb to launch an
> application elevated from an non-elevated SetupBuilder application if the
> operating system is Vista or better. So the If..Else block is not required
> any longer.

Cool<g>

Easier day by day...

:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
11-12-2009, 02:45 AM
Hi Friedrich,

> BTW, I think we'll change the runtime in such a way that this option is only
> executed on Vista and better machines.

I haven't run into this in SB since all my installs are elevated but I ran
into this when testing the "runas" verb and realized that it worked also on
XP<g> The MSDN docs I found specifically said it only worked on Vista and
above, but apparently it does also on XP;)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
11-12-2009, 02:45 AM
Hi Arnór,

>> BTW, I think we'll change the runtime in such a way that this option is
>> only executed on Vista and better machines.
>
> I haven't run into this in SB since all my installs are elevated but I ran
> into this when testing the "runas" verb and realized that it worked also
> on XP<g> The MSDN docs I found specifically said it only worked on Vista
> and above, but apparently it does also on XP;)

I noticed this some days ago. One of our test installers displayed the "Run
As" dialog on XP and I had no idea what was going on. I found out that the
"Run elevated from non-elevated SetupBuilder application" option was
enabled.

Friedrich