Re: unhelpful %_SB_ERRORCODE%
We have modified the SetupBuilder runtime now. When calling "Run Program",
the %_SB_RETURNEX% value always holds the GetLastError() error code if
CreateProcess failed or the error code provided by a failed ShellExecuteEx
API call.
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
Re: unhelpful %_SB_ERRORCODE%
Hi Steve,
> And if I just put ShellExecuteEx as a default, is there any problem with
> that?
I use the ShellExecute option without exception. CreateProcess does not
work properly with elevation on Vista and while it should NOT be a problem
with an elevated installer, I know there are problems with it under vista,
which is enough for me to use the ShellExecute option:)
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
Re: unhelpful %_SB_ERRORCODE%
Interesting.. looks like I'll go that way too.
Tx for the info, Arnor.
Steve Bywaters
1 Attachment(s)
Re: unhelpful %_SB_ERRORCODE%
Your example also *fails* on my test computer.. returning the infamous "-1"
(OK on my development computer)
Glad to know I'm not 'losing it'...!
As a matter of interest, this is the o/s
Steve Bywaters
Re: unhelpful %_SB_ERRORCODE%
> Your example also *fails* on my test computer.. returning the infamous
> "-1"
> (OK on my development computer)
>
> Glad to know I'm not 'losing it'...!
>
> As a matter of interest, this is the o/s
The next maintenance release will return the GetLastError() error code in
%_SB_RETURNEX%. Then you can see why it fails (if GetLastError returns an
error code) on your infamous "Kool Edition".
As I understand it, "Kool Edition" is a warez modified Windows version
(similar to Dark Edition and Black Moon Edition). "They" (and I don't mean
Microsoft here) modify the original Windows edition, add patches,
redistributions, anti-virus systems, Windows Genuine Advantage Validation
"fixes", etc. Then "they" repackage it and make it available. Illegal in
the country where I live. And of course, not a genuine nor a supported
Windows version.
So if my example also fails on your machine, then it's definitely caused by
this "unofficial" Windows hack.
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
Re: unhelpful %_SB_ERRORCODE%
I am (very mildly <g>) ashamed to say you are right... imy test machine is a
friend's spare machine, freshly re-installed with this funky version to try
it out..
I"m sure its illegal here too!!.. and I have been comtemplating
over-installing with the original XP (genuine)....
Its curious tho' that - since you say both Run both methods eventually use
CretaeProcess - I have to use ShellExecute to get it to work! Clarion
programs run..IE runs.. so far it all seems fine.. except for the SB std.
Run call!
But I agree you should lose no sleep over this..... ;-)
Steve
Re: unhelpful %_SB_ERRORCODE%
> I am (very mildly <g>) ashamed to say you are right... imy test machine is
> a friend's spare machine, freshly re-installed with this funky version to
> try it out..
>
> I"m sure its illegal here too!!.. and I have been comtemplating
> over-installing with the original XP (genuine)....
>
> Its curious tho' that - since you say both Run both methods eventually
> use CretaeProcess - I have to use ShellExecute to get it to work! Clarion
> programs run..IE runs.. so far it all seems fine.. except for the SB std.
> Run call!
>
> But I agree you should lose no sleep over this..... ;-)
The next SetupBuilder maintenance build can give you more information on why
a "Run Program" call fails.
But think of this. A hacker would like to "tune up" the original Clarion
6.3 Build 9056 to a "Clarion 2009 Kool Edition" (based on different official
builds). So he decides to replace some DLLs and LIBs with versions from
Build 9059, other libraries are replaced with files from Build 9058. Of
course, he also adds some 3rd-party products. Then he modifies Clarion
binaries to remove copyright information and to disable version verification
(so incompatible libraries cannot be detected by the runtime). After that
he repackages the whole thing -- please note that he does not have the
original installation project file so it's completely trial and error.
Then he compiles a Clarion test .app with "Clarion 2009 Kool Edition" and it
seems to work fine. Bingo - he is the master of the world - the hacker of
all hackers. But there might be situations where this tuned version does
not work because of negative site effects caused by his "smart"
modifications.
In fact, using programs compiled with Clarion 2009 Kool Edition would be an
"execute and pray" process. It's nearly impossible to say when any why
something does not work as expected.
The same happened with leaked Windows 7 pre-beta releases. The hacker
groups mixed all kind of Win7 binaries from different leaked pre-releases
and generated their own Windows 7. Of course, that thing looked like an
official Windows 7 build, but had the stability of "Windows Me".
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
Re: unhelpful %_SB_ERRORCODE%
Hi Friedrich,
> The same happened with leaked Windows 7 pre-beta releases. The hacker
> groups mixed all kind of Win7 binaries from different leaked pre-releases
> and generated their own Windows 7. Of course, that thing looked like an
> official Windows 7 build, but had the stability of "Windows Me".
That's because they are dumb. Doesn't mean a smart programmer like yourself
can't figure'em out and fix up 'eir mess!<g> You can do it!
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
Re: unhelpful %_SB_ERRORCODE%
>> The same happened with leaked Windows 7 pre-beta releases. The hacker
>> groups mixed all kind of Win7 binaries from different leaked pre-releases
>> and generated their own Windows 7. Of course, that thing looked like an
>> official Windows 7 build, but had the stability of "Windows Me".
>
> That's because they are dumb. Doesn't mean a smart programmer like
> yourself can't figure'em out and fix up 'eir mess!<g> You can do it!
<BG> ;-)
Friedrich
Re: unhelpful %_SB_ERRORCODE%
"...In fact, using programs compiled with Clarion 2009 Kool Edition would be
an "execute and pray" process. .."
Of course I'm *not* doing this - the (maybe-not-so-) Kool machine is the
'spare', for testing, not development/creation/compiletion... it is just
aniother platform to test installers (!!!) and installed programs.
Steve