Jump to content

[APP][20Oct09]TICS-Installer-install plg in all cpr's[For all Plugins/Themes][RC3][6.5]


Recommended Posts

Guest MichelDiamond
Posted (edited)
Hey Micha, sorry for being so quiet, work stuff and all :D

The 3.0 version works well. It does strange things on the WM6.5 emulator like resetting the .cpr attributes, but I think that's more to do with the emulator than TICS since on a real device everything works fine (maybe there's a newer version, I need to check).

Hey Genix - thanx :P

I use the Emulator very seldom - I will have a look.

And heygood ideas:

There are a couple of requests I do have;

1. In most .plg files people insert header text to ID their plugin like <!-- MyPlugin --> for example. When TICS installs the .plg this line is transferred to the .cpr fine. But, when using -delete or -addchange this header text is left behind (same as ATPLugin does). So a bunch on install/uninstalls (especially when testing) leaves a lot of these junk headers in the .cpr.

Can you check the code to remove the header text as well when doing any .cpr updates?

Yes - I know - a .plg is a part to describe where to insert the Plugin, ad the part between, what is to insert. And if there's between a comment.. then it's transfered and won't be uninstalled.

But while installing TICS rewrites the whole .cpr -so there's the possibility...

Now the thoughts: Should I delete all Comments in .cpr during this process? Because there are so much junks from ATPluginInstaller as from TICs-Installation. Does anybody needs his comments from .plg in the .cpr at all? I think no. So I could delete it...

But sometimes comments could be helpful in .cpr's later... perhaps also add, that a comment, which is introduced by "<!--cpr ...

But removing of the junk could spped up Titanium - good idea.

2. How is TICS handling spaces and tabs in .plg's? I have formatted my .plg quite well (makes it easier for readability and debugging/changing), but when it goes to the .cpr it ends up qute a mess. It works obviously, but reading it is difficult. I'd just like to find out if TICS would prefer spaces or tabs to format the .plg?

TICS could it be indifferent - but not Titanium - because a .cpr with tabs would not work - so TICS replaces each tab with a Space. Otherwise Titanium wouldn't work. (same does ATPluginInstaller)

I could add a "normalization" while installation, that the whole .cpr looks like Microsoft intended it ;)

That a step of 2 spaces:

<Form>

  <Layer ID="ClockCondensed" Visible="False" Width="240" Height="34">

	<Layer ID="Page">

	  <Text ID="Text 2" Left="10" Top="4" Width="220" Height="34" FontFamily="Tahoma" FontSize="18" FontStyle="Regular" Wrap="False" VerticalAlignment="Top" Trimming="EllipsisCharacter">

		<TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0" />

		<TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF" />

	  </Text>

	  <!-- AM/PM -->

	  <Text ID="AMPM" Left="0" Top="4" Width="50" Height="20" FontFamily="Tahoma" FontSize="10.5" FontStyle="Regular" Wrap="False" VerticalAlignment="Top" Trimming="EllipsisCharacter">

		<TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0" />

		<TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF" />

	  </Text>

	</Layer>

  </Layer>


...

So Form is offset 0, LayerID for Pluginame offset 2, LayerID for Page offset 4 and the items 6 or 8 spaces as offset.

and that's all indifferent if or how much Tabs or Spaces are used in .plg

Would this be ok?

@Genix9: While developing my new plugins I noticed that, too. If you uninstall a plugin TICS leaves some rows of these junk headers in the cpr. All in all it´s working excellent. Compared with ATPluginInstaller it´s a real improvement. The only thing I don´t like is that I´ve to copy everytime the mortscript.exe to each plugin folder, so the plugins need more space on the device. I thought about removing the mortscript.exe after installing the plugin, but then the uninstall.mscr doesn´t work, because the setup.dll is using the mortscript.exe in the plugin folder. Maybe Micha can solve this small problems.

I know, but like said -uninstall.mscrwouldn't work. A setup.dll is a very internal thing which cannot rely on directory structures while installing a .cab (you know it from cab - there it also knows a plain file-structure - you can only install two different files with same name with a workaround - even in different directories)

I could talk with Mort, perhaps he has an idea.

But there's an advantage of usig Mortscript direct in Directory: Some Plugins, e.g. JMLToday need 4.2 , some Plugins uses newer 4.3beta - but it's not compatible to 100%at the moment. Some users hav 4.1 or lower - this wouldn't also work for some Plugins - and with this system each Plugin hasthe appropriate version of Mortscript.

I will try to contact Mort next days, ok?

Thanx for it - if you have further ideas, whichshould TICS_installer do - just tell it, I think especially for "-change" there could be some nice opportunities :lol:

Greetz

Micha

Edited by MichelDiamond
Posted
Now the thoughts: Should I delete all Comments in .cpr during this process? Because there are so much junks from ATPluginInstaller as from TICs-Installation. Does anybody needs his comments from .plg in the .cpr at all? I think no. So I could delete it...

But sometimes comments could be helpful in .cpr's later... perhaps also add, that a comment, which is introduced by "But removing of the junk could spped up Titanium - good idea.

I think removing generic comments, un-used .plg sections or other non-essential stuff would be great and definitely help Titanium's speed. I'd like to keep a special comment for plugin headers, so at least if you're editing the .cpr directly it's easier to find plugins and know where you are. Then on -delete the entire <header+plugin> section gets removed.

I could add a "normalization" while installation, that the whole .cpr looks like Microsoft intended it :D

...

So Form is offset 0, LayerID for Pluginame offset 2, LayerID for Page offset 4 and the items 6 or 8 spaces as offset.

and that's all indifferent if or how much Tabs or Spaces are used in .plg

Would this be ok?

Ah yes please! That would help a great deal :P

I know, but like said -uninstall.mscrwouldn't work. A setup.dll is a very internal thing which cannot rely on directory structures while installing a .cab (you know it from cab - there it also knows a plain file-structure - you can only install two different files with same name with a workaround - even in different directories)

I could talk with Mort, perhaps he has an idea....

Yeah, this might be tricky especially when it comes to the different versions of mscr. I know I'm always using the latest beta because it gives me a lot of the functions I need for my scripts, but other scripts/apps might break with it. I'm also on the stohelit board, so maybe we can throw around some ideas there?

Thanx for it - if you have further ideas, whichshould TICS_installer do - just tell it, I think especially for "-change" there could be some nice opportunities ;)

Cool, will definitely keep thinking on this :lol:

Guest MichelDiamond
Posted
I think removing generic comments, un-used .plg sections or other non-essential stuff would be great and definitely help Titanium's speed. I'd like to keep a special comment for plugin headers, so at least if you're editing the .cpr directly it's easier to find plugins and know where you are. Then on -delete the entire <header+plugin> section gets removed.

Ah yes please! That would help a great deal :D

Yeah, this might be tricky especially when it comes to the different versions of mscr. I know I'm always using the latest beta because it gives me a lot of the functions I need for my scripts, but other scripts/apps might break with it. I'm also on the stohelit board, so maybe we can throw around some ideas there?

Cool, will definitely keep thinking on this :P

OK - I asked Mort in sto-helit - let's see.

It will take a little time because of the other changes - I have much work @office - and can only develop mostly in Handy (and there's no C-Compiler ;) ) - so I think, the only one, which will come sooner ist TitaniumStarter 3.0

But - if I have a Test-Version for the new TICS, could you test it,too, before I attach it here for all? (you 2, contable? :lol: )

Greetz

Micha

Posted
OK - I asked Mort in sto-helit - let's see.

It will take a little time because of the other changes - I have much work @office - and can only develop mostly in Handy (and there's no C-Compiler :D ) - so I think, the only one, which will come sooner ist TitaniumStarter 3.0

But - if I have a Test-Version for the new TICS, could you test it,too, before I attach it here for all? (you 2, contable? :P )

Greetz

Micha

No problem at all, take your time - fully understand work should come first, same here ;) .

Yep, would be glad to test any test releases and give you feedback on how they go.

Cheers

Genix

  • 2 months later...
Guest Kal-Leo
Posted (edited)

Sorry to bother you MichelDiamond, but Im posting here beacuse I read it all the topic and that on xda, and couldnt know how to make the TICS to work...

Have Omnia II. What I do with the .exe file?? Ive try to execute in my cell but didnt work... Dont know what to do. Im only trying to install the titanium weather plugin and than be able to install some more, have already instaled the mortscript but didnt worked..

I've read all about the problem of the Splugin problem and everything else.

If you could help me to understand how to work Ill really appreciate. Thx in advance.

Edited by Kal-Leo
Guest MichelDiamond
Posted
Sorry to bother you MichelDiamond, but Im posting here beacuse I read it all the topic and that on xda, and couldnt know how to make the TICS to work...

Have Omnia II. What I do with the .exe file?? Ive try to execute in my cell but didnt work... Dont know what to do. Im only trying to install the titanium weather plugin and than be able to install some more, have already instaled the mortscript but didnt worked..

I've read all about the problem of the Splugin problem and everything else.

If you could help me to understand how to work Ill really appreciate. Thx in advance.

Hi Kal-Leo,

you need latestVersion (3.1) - this will work fine.

I mde a little remark to post #2 in xda-devs-hread, how to easy change a plugin from ATPluginInstaller to TICS. If you already kn how ATPluginInstaller works - then this could help:

http://forum.xda-developers.com/showpost.p...amp;postcount=2

Only a short descriion - perhaps so it's easier:

Only put the Files TICS_installer.exe, setup.exe, install.mscr, uninstall.mscr AND (don't forget!!!) Mortscript.exe in your Main Directory of your Plugin.

Then after installation of .cab install.mscr will be excuted - and inside this install.mscr is the call of TICS_installer.exe (one for portrait, one for landscape)

You can look into my Plugins like BlueProdigy (or TitaniumRSS, TitaniumStarter - also JMLToday, PlayIt or Contable Plugins ... ) - whatever - there you will find working calls for TICS.

Because of the "Current..." - Prameter of the Call, TICS is looking for your current .cpr and installs there (if it's SPlugins, the it installs to SPlugins)

IF you still have problems, you can send me your cab-Source-Files/Directory by PM (at xda-devs I see it faster, but you can also send it here) - please answer to this thread, if you sended it, then I will login and have a look.

Greetz & sorry for the later answer

Micha

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.