View Full Version : Running programs at end of install
NewsArchive
05-16-2008, 01:28 AM
Hi all,
At some point someone (Jane???) posted some information on how to
solve the problem with running an application at the end of an
elevated installer.
While I ponder that, is there any reason NOT to add a run program at
the end with the condition to run on everything except Vista and
W2008Server?
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
05-16-2008, 01:28 AM
Arnór,
> While I ponder that, is there any reason NOT to add a run program at
> the end with the condition to run on everything except Vista and
> W2008Server?
We are doing exactly this in our own SetupBuilder installation.
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
05-16-2008, 01:29 AM
Hi Friedrich,
>> While I ponder that, is there any reason NOT to add a run program at
>> the end with the condition to run on everything except Vista and
>> W2008Server?
>
>We are doing exactly this in our own SetupBuilder installation.
The checkbox still showed up in the install when running under
vista... And the program runs under Vista if it's checked.
I use the Run Program function and set the "Checkbox text" and check
the "Run program once the installation exits" on the "Finish dialog".
On the Conditions I unchecked the "OS Independent" and everything is
checked except for Windows Vista and Windows Server 2008.
What am I doing wrong?
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
05-16-2008, 01:29 AM
>
> What am I doing wrong?
>
See:
http://www.lindersoft.com/forums/showthread.php?p=12767&highlight=finish#post12767
Friedrich
NewsArchive
05-16-2008, 01:30 AM
Hi Friedrich,
>See:
>http://www.lindersoft.com/forums/showthread.php?p=12767&highlight=finish#post12767
Ok, but I'm curious: What does the condition on the RUN do? It seems
to me that it doesn't do anything since it allows the checkbox and the
run on OS where it's not checked???
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
05-16-2008, 01:30 AM
Arnór,
> Ok, but I'm curious: What does the condition on the RUN do? It seems
> to me that it doesn't do anything since it allows the checkbox and the
> run on OS where it's not checked???
To be honest, looks like a bug to me. Item in review.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
05-16-2008, 01:31 AM
> The checkbox still showed up in the install when running under
> vista... And the program runs under Vista if it's checked.
>
> I use the Run Program function and set the "Checkbox text" and check
> the "Run program once the installation exits" on the "Finish dialog".
> On the Conditions I unchecked the "OS Independent" and everything is
> checked except for Windows Vista and Windows Server 2008.
>
> What am I doing wrong?
Create TWO different versions of the Finish Dialog. One for Vista/2008 (no
checkbox), one for everything else.
Test for your OS version and hide/show one or the other as needed.
Does that help?
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging 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
05-16-2008, 01:31 AM
Hi all,
>While I ponder that, is there any reason NOT to add a run program at
>the end with the condition to run on everything except Vista and
>W2008Server?
Darn, the checkbox still shows up in Vista...
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
05-16-2008, 01:32 AM
Hi all,
>At some point someone (Jane???) posted some information on how to
>solve the problem with running an application at the end of an
>elevated installer.
I've got the temp part solved, but does anyone remember the specifics
on this one?
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
05-16-2008, 01:33 AM
Hi Arnor
Is it this article from Jane, you are missing ?
Kind regards
Viggo Poulsen
Installers have often offered the user a "do you want to run the app now?"
option when they finish installing.
This is highly discouraged under Vista, both because the installation
program is most likely running elevated, and it may be running under the
credentials of somebody other than the account that will actually be using
the app.
A very clever gentleman named Andrei Belogortseff has come up with an
amazing end-run around this problem:
http://www.codeproject.com/vista-security/RunNonElevated.asp
I've written a little Clarion demo app and a proof-of-concept SB6.5 script
making use of his solution.
On a Vista machine, if I run the installer as an ordinary user but supply an
administrator account name and password when confronted by the elevation
prompt,
using the regular SB6 "run" command, the app is launched at the end with
that administrator's username and running elevated.
using the DLL, it launches without elevation and under the context of the
original user (not the over-the-shoulder administrator.)
If you'd like to play with it, you can download the Clarion source and SB
script here:
http://www.beachbunnysoftware.com/clarion/nonelev.htm
You'll need to download one zip file from Andrei's article and extract the
DLL. You'll need to modify the source paths in my SB6 script also unless
you extract the zipfile into a folder called C:\Source.
Jane
NewsArchive
05-16-2008, 01:33 AM
I would not use this method because it causes problems under Windows Server
2008 and does not work reliable on all Vista (SP1) versions. It worked okay
in the early versions of Vista, but not in the later builds.
That's why there is not built-in feature in SetupBuilder do handle this.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
05-16-2008, 02:16 AM
> To be honest, looks like a bug to me. Item in review.
Unbelievable. This was a very very long-standing bug (more than 5 years).
Fixed now and will be part of the next build.
Thanks for bringing this to my attention, Arnór!
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
05-17-2008, 07:19 AM
Hi Friedrich,
>Unbelievable. This was a very very long-standing bug (more than 5 years).
>Fixed now and will be part of the next build.
>
>Thanks for bringing this to my attention, Arnór!
Welcome;) Does this only affect the RUN or does it also affect other
functions?
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
05-17-2008, 07:20 AM
Hi Arnór,
>>Thanks for bringing this to my attention, Arnór!
>
> Welcome;) Does this only affect the RUN or does it also affect other
> functions?
Only the "Run Program..." function. The compiler did not generate the
target operation system condition code (was always set to "OS Independent").
This goes back to SetupBuilder 5 (alpha).
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
05-17-2008, 07:20 AM
Hi Friedrich,
>Only the "Run Program..." function. The compiler did not generate the
>target operation system condition code (was always set to "OS Independent").
>This goes back to SetupBuilder 5 (alpha).
I'm always happy to break someone else's code<g>
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
05-17-2008, 07:21 AM
Hi Friedrich,
>I would not use this method because it causes problems under Windows Server
>2008 and does not work reliable on all Vista (SP1) versions. It worked okay
>in the early versions of Vista, but not in the later builds.
>
>That's why there is not built-in feature in SetupBuilder do handle this.
Ok. Thanks Friedrich and Viggo:)
What we need is a thing to de-elevate<g>
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
05-18-2008, 04:38 AM
Hi Arnór,
>
> I'm always happy to break someone else's code<g>
>
Thanks so much for this <g>. I have absolutely no idea why and how this
slipped through all the years. I even developed a workaround for Vista with
two different dialogs and never noticed that it is a bug in the runtime.
Took 10 seconds to fix it in the SetupBuilder source codes. But developing
the workaround took 10 minutes - what a waste of time <g>.
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.