PDA

View Full Version : Error control after register C7 template



NewsArchive
03-29-2009, 12:29 AM
I have this part in the script...
Register all pending Clarion Templates
It does the job for both C6 and C7!
BUT I have this code after it:
If %_SB_ERRORCODE% Does Not Equal "0" Then
Display Message Box "Your template should be registrered now." --
"Templates Registrered"
Else
Display Message Box "There was a problem while registrering your
templa..." -- "Registration unsuccesful"
End

And these work ok for C6, but not for C7. Yesterday I got the "unsuccesful"
message, however the templates were registrered perfectly in C7. What changes
from one version to the other?

--
Jorge Alejandro Lavera - Huenuleufu Development SRL
www.ClarionDevelopment.com - Custom development.
www.ClarionTemplates.com - Templates for Clarion.
www.IP-Tree.com - Analyze and document your network.
www.InBack.com - Protect your data.

NewsArchive
03-29-2009, 12:30 AM
Hi Jorge,

>I have this part in the script...
> Register all pending Clarion Templates
> It does the job for both C6 and C7!
> BUT I have this code after it:
> If %_SB_ERRORCODE% Does Not Equal "0" Then
> Display Message Box "Your template should be registrered now." --
> "Templates Registrered"
> Else
> Display Message Box "There was a problem while registrering your
> templa..." -- "Registration unsuccesful"
> End
>
> And these work ok for C6, but not for C7. Yesterday I got the
> "unsuccesful"
> message, however the templates were registrered perfectly in C7. What
> changes from one version to the other?

%_SB_ERRORCODE% holds the return value from clarioncl.exe.

What's the value of %_SB_ERRORCODE% in your case? By the way, if
%_SB_ERRORCODE% does not equal 0 then you'll also have no entry for the
template registration in your uninstall .log (means, the template will not
be unregistered during the uninstallation process).

--
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

NewsArchive
03-29-2009, 12:30 AM
Hmm, I'm lost... so for Clarion 7 "successful" would be %_SB_ERRORCODE%
equal 0 ?

--
Jorge Alejandro Lavera - Huenuleufu Development SRL
www.ClarionDevelopment.com - Custom development.
www.ClarionTemplates.com - Templates for Clarion.
www.IP-Tree.com - Analyze and document your network.
www.InBack.com - Protect your data.

NewsArchive
03-30-2009, 01:06 AM
Jorge,

> Hmm, I'm lost... so for Clarion 7 "successful" would be %_SB_ERRORCODE%
> equal 0 ?

Two problems:

1. The documentation is incorrect. It should read:

---

If the function succeeds, the %_SB_ERRORCODE% return value is zero.

If the function fails, the return value is nonzero.

---

Changed in the latest internal documentation now.

2. %_SB_ERRORCODE% for previous C7 template registration actions is not
handled at all (always returns 0).

As far as I know, the Clarion registration DDE process does not return an
error code if template registration "failed".

We'll try to modify the installer runtime it in such a way that it returns
nonzero (error) for C2-C6 if the file to be registered does not exist or if
the DDE conversation with the Clarion IDE cannot be created.

--
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

NewsArchive
03-30-2009, 01:07 AM
Ah, that explains a lot.
Thanks!

--
Jorge Alejandro Lavera - Huenuleufu Development SRL
www.ClarionDevelopment.com - Custom development.
www.ClarionTemplates.com - Templates for Clarion.
www.IP-Tree.com - Analyze and document your network.
www.InBack.com - Protect your data.