PDA

View Full Version : Option to NOT unregister a template



NewsArchive
05-17-2010, 02:19 AM
Is there a configuration that can be set to register a TPL file during
install and NOT un-register it during an uninstall?

The script is correctly leaving the file in place since "Remove on
Uninstall" is not checked but the template still gets unregistered.

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
05-17-2010, 02:19 AM
Hi Lee,

> Is there a configuration that can be set to register a TPL file during
> install and NOT un-register it during an uninstall?
>
> The script is correctly leaving the file in place since "Remove on
> Uninstall" is not checked but the template still gets unregistered.

In fact, this is not handled consistently. If the "Remove on Uninstall"
option is not marked then the template "unregistration" function should not
be processed. This was not a problem in pre-C7 versions because the
uninstall simply skipped that command. But it's definitely an issue when
doing C7.x installs. I'll change the installer runtime to handle this
scenario.

Thanks,
Friedrich

NewsArchive
05-17-2010, 08:52 AM
Friedrich,

> I'll change the installer runtime to handle this scenario.

Thanks.

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
05-18-2010, 02:10 AM
Changed. This will be available in the next maintenance build.

Friedrich

NewsArchive
05-18-2010, 02:10 AM
Friedrich,

> Changed. This will be available in the next maintenance build.

Again, thank you.

Now, about that other issue<g> where the TPL file is deleted but the
un-register fails. Inevitably 1 template remains in the template
registry although the physical file is deleted. The physical deletion
is correct but not the fact it's left in the registry. That last bit
causes problems the next time you open the registry or it gets opened
when opening an APP.

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
05-18-2010, 02:11 AM
Lee,

> Again, thank you.
>
> Now, about that other issue<g> where the TPL file is deleted but the
> un-register fails. Inevitably 1 template remains in the template
> registry although the physical file is deleted. The physical deletion
> is correct but not the fact it's left in the registry. That last bit
> causes problems the next time you open the registry or it gets opened
> when opening an APP.

Sorry, I don't know. Template unregistration is done by clarioncl.exe and I
fear there is nothing we can do.

Do you see the template name in the uninstall .log?

Friedrich

NewsArchive
05-19-2010, 01:55 AM
Friedrich,

> Do you see the template name in the uninstall .log?

Yes. It's listed twice as are the other TPL files. I've attached a TXT
file with those two lines.

All other TPL's are unregistered and deleted from the HD. This single
TPL is deleted from the HD but not unregistered.

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/


|006|_0003_|G:\Program Files\SoftVelocity\Clarion71-7118\accessory\template\win\RPM_DD.TPL|90|2010/05/13|15:00:00||89189|2F9B3536||0|
|165|G:\Program Files\SoftVelocity\Clarion71-7118\Bin|G:\Program Files\SoftVelocity\Clarion71-7118\accessory\template\win\RPM_DD.TPL

NewsArchive
05-19-2010, 02:00 AM
Lee,

>> Do you see the template name in the uninstall .log?
>
> Yes. It's listed twice as are the other TPL files. I've attached a TXT
> file with those two lines.
>
> All other TPL's are unregistered and deleted from the HD. This single
> TPL is deleted from the HD but not unregistered.

Then I fear we can't do anything :-( The uninstall calls clarioncl.exe to
unregister the template.

Friedrich

NewsArchive
05-19-2010, 02:00 AM
Friedrich,

> Then I fear we can't do anything :-( The uninstall calls clarioncl.exe to
> unregister the template.

Is there any way to generate a debug log during an uninstall?

I guess I could create a custom uninstall and call ClarionCL manually.
So far it's -always- this one TPL file that's not uninstalled. But of
course once I do this it will be some OTHER file that gets left.<g>

Maybe I need to drive down to Florida with my rubber mallet and beat
someone about the head and shoulders? Nah, gas is too expensive!<g>

Oh well, such is life and the vicissitudes thereof!

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
05-19-2010, 02:09 AM
Lee,

> Is there any way to generate a debug log during an uninstall?
>
> I guess I could create a custom uninstall and call ClarionCL manually.
> So far it's -always- this one TPL file that's not uninstalled. But of
> course once I do this it will be some OTHER file that gets left.<g>
>
> Maybe I need to drive down to Florida with my rubber mallet and beat
> someone about the head and shoulders? Nah, gas is too expensive!<g>
>
> Oh well, such is life and the vicissitudes thereof!

The uninstall can generate a sbevents.txt debug .log, but it does not help
here because the custom uninstall actions are not logged. Good idea, btw!
We should add this to one of the next builds.

What happens if you call ClarionCL manually. Does it remove the template?

I checked the uninstall source codes and there is more code logic involved
than just passing the template file to the ClarionCL. Could you please send
me that specific template to friedrich (at) lindersoft (dot) com. Perhaps
one buffer in the uninstall process is too small and so the template name
can't be retrieved. I see one potential problem that would cause such an
unregister issue if the buffer is too small.

Friedrich

NewsArchive
05-19-2010, 02:11 AM
Friedrich,

> What happens if you call ClarionCL manually.

It fails. (see attached PNG)

It gets stranger.<g> The RPM_DD template is left in the registry but a
different file is left on the HD. The file left on the HD is the one
where I have "Remove on Uninstall" unchecked. This is the same file I
didn't want unregistered, LodestarABC. Any correlation there?

> I checked the uninstall source codes and there is more code logic involved
> than just passing the template file to the ClarionCL. Could you please send
> me that specific template to friedrich (at) lindersoft (dot) com. Perhaps
> one buffer in the uninstall process is too small and so the template name
> can't be retrieved. I see one potential problem that would cause such an
> unregister issue if the buffer is too small.

I'll get something to you later today. It's no major problem from my
point of view - who's going to uninstall RPM anyway?!<g>

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
05-19-2010, 02:14 AM
> > What happens if you call ClarionCL manually.
>
> It fails. (see attached PNG)

Oops! I used the filename, not the #TEMPLATE name. When using the
template name it errors out but DOES remove the entry in the template
registry. Very odd!

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
05-19-2010, 02:15 AM
> I'll get something to you later today. It's no major problem from my
> point of view - who's going to uninstall RPM anyway?!<g>

<G> ;-)

Friedrich

NewsArchive
05-21-2010, 12:57 AM
Friedrich,

> Could you please send me that specific template

Sent an email yesterday afternoon.

It included a few links so it might have ended up as spam in the
trash! If I need to send it again just let me know.

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
05-21-2010, 12:57 AM
Hi Lee,

> Sent an email yesterday afternoon.
>
> It included a few links so it might have ended up as spam in the
> trash! If I need to send it again just let me know.

Received. Sorry for the delay in responding. Quite a few Wise users
consider the switch to SetupBuilder and this slows down reaction time <g>

Friedrich

NewsArchive
05-22-2010, 07:21 AM
Hi Lee,

>> Could you please send me that specific template
>
> Sent an email yesterday afternoon.
>
> It included a few links so it might have ended up as spam in the
> trash! If I need to send it again just let me know.

I debugged it and your template unregistration issue is caused by a too
small "template header" buffer in the uninstall application. Hey, you
really have too many items in your template "History" <g>

So SetupBuilder is to blame here <g>. The next SB build comes with an
increased buffer size for the template header.

Friedrich

NewsArchive
05-22-2010, 07:22 AM
Friedrich,

> The next SB build comes with an
> increased buffer size for the template header.

As always, thank you!

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
05-22-2010, 07:22 AM
Don't let it go to your header<g>

Jeff Slarve

NewsArchive
05-22-2010, 07:22 AM
Jeff,

> Don't let it go to your header<g>

I'll do my best!<g>

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/