PDA

View Full Version : Registring a template based on pre-existing template file not replaced



NewsArchive
03-30-2009, 01:09 AM
This is a rather peculiar subject, I know.
The case is: I have a template set, the Langaard chain, which includes the 0-hazzle, 0-mezz and 0-overlapz template released by Langaard before purchased by AdiTech. When I install these, I use a TemplateSetup.Exe (God knows where it came from) that
check if a #INCLUDE is already present, and if not, it appends the #INCLUDE('Massupdate.tpw') to the Langaard.tpl.
Now, when I install these templates on a fresh install of C7, the Langaard.tpl is already present because it was present in the last build, but not removed during uninstall of C7. It can't be replaced. When Langaard.tpl is not installed, the template
is of course not queued for registring either.

Any ideas how I can handle registring this template if registertemplates is checked, but file skipped during installation?

Bjarne

NewsArchive
03-31-2009, 01:58 AM
Bjarne,

> Any ideas how I can handle registring this template if
> registertemplates is checked, but file skipped during installation?

What you can try is to *not* mark the "Register as Template in the Clarion
Registry" checkbox in the File Properties.

Instead, check in your script if you have to register the file. If this is
the case, use "Register Clarion Templates (Queue existing Clarion Template
for registration)" to queue the template for later registration.

--
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
04-02-2009, 01:25 AM
Thanks, but can't get that to work.
I added the queing right after the file was supposed to be installed - or not.

Queue existing Clarion Template for registration "%CLA_TEMPLATE%\Langaard.tpl"

It doesn't work with or without the "register as template" is checked on the file.
%_SB_ERRORCODE% is -1, so it claims success on the queueing.

I also tried
Queue existing Clarion Template for registration "C:\SetupFiler\Langaard.tpl"
since the dialog indicates I should select a file from my own computer. Same result. BTW, I found that cancelling the filedialog clears the filename field.

Bjarne

NewsArchive
04-02-2009, 01:26 AM
Yes, you are right :-( When I suggested this solution, I tested it in the
latest SB7 beta and this works fine. But unfortunately, there is a bug in
the SB6 "Queue existing Clarion Template for registration" function. It
executes the registration process instead of just "queuing" the file.

So the next SB6 maintenance build will fix this. And of course, it will
work in the upcoming new SB7 beta.

--
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
04-02-2009, 01:26 AM
Good enough for me

Bjarne Havnen