Windows Phone @ MoDaCo: Developers: AppToDate Stub - Windows Phone @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Developers: AppToDate Stub


#4 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 18 April 2008 - 11:48 AM

COPYFLG_NO_OVERWRITE looks like the answer?

References:

http://www.sundialso....uk/cabinfo.htm

Let us know if you figure it out!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0

Sponsored Links


#5 User is offline   simonster 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 20-November 05
  • Location:Reading
  • Interests:Phones and Media Centers
  • Devices:Touch Dual (Niki) on T-Mobile

Posted 18 April 2008 - 02:41 PM

Paul,

Top news, I'll include this in HelloTwitFace when I update it on Saturday night (no I don't have anything better to do - is there anything better than code?)

Si

Touch Dual on T-Mobile, 8gb SDHC.
Hermes as a backup

Check out my blog:
http://mygeekout.com
0


#6 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 18 April 2008 - 03:21 PM

Hell no! :D

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#7 User is offline   supbro 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 12
  • Joined: 15-March 05
  • Location:San Diego, CA
  • Devices:HTC Titan/Sprint Mogul

Posted 21 April 2008 - 04:41 AM

Anyone figure out how to not overwrite when using the Visual Studio .cab creator?

-Doug Melton
supware.net

Ericsson T28z < SonyEricsson T68 < SonyEricsson T610 < Audiovox SMT5600 < TMobile SDA < Sprint Mogul
0


#8 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 21 April 2008 - 08:47 AM

I don't think it's exposed in VS.

An alternative i'm thinking is that you can install the stub as 'AppToDate Install' rather than 'AppToDate', then the first time ATD runs it looks for a shortcut called 'AppToDate Install' and deletes it... will work particularly well if I can get the setup dll working to launch ATD on install completion.

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#9 User is offline   supbro 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 12
  • Joined: 15-March 05
  • Location:San Diego, CA
  • Devices:HTC Titan/Sprint Mogul

Posted 21 April 2008 - 07:44 PM

View PostPaul (MVP), on Apr 21 2008, 01:47, said:

I don't think it's exposed in VS.

An alternative i'm thinking is that you can install the stub as 'AppToDate Install' rather than 'AppToDate', then the first time ATD runs it looks for a shortcut called 'AppToDate Install' and deletes it... will work particularly well if I can get the setup dll working to launch ATD on install completion.


Hmm, but then when you update my program, it will re-install "AppToDate Install"...

-Doug Melton
supware.net

Ericsson T28z < SonyEricsson T68 < SonyEricsson T610 < Audiovox SMT5600 < TMobile SDA < Sprint Mogul
0


#10 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 21 April 2008 - 07:48 PM

True, hadn't considered that!

Of course, it'd be deleted next time you ran ATD, but still.

I think the non-overwrite is the best way... if we can figure it out via VS!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#11 User is offline   chucky.egg 

  • Did I say that out loud?
  • PipPipPipPipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 4,724
  • Joined: 20-August 03
  • Location:Kent, England
  • Interests:Sleeping
  • Devices:Desire S
  • Twitter:@chucky_egg

Posted 21 April 2008 - 09:22 PM

I do my INF files by hand :D

0


#12 User is offline   simonster 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 20-November 05
  • Location:Reading
  • Interests:Phones and Media Centers
  • Devices:Touch Dual (Niki) on T-Mobile

Posted 22 April 2008 - 12:29 AM

View Postchucky.egg, on Apr 21 2008, 22:22, said:

I do my INF files by hand :D


Any chance you could post a working INF file, or at least the copy file section - I just can't get it to work and it's almost 2am

Ta

Si

Touch Dual on T-Mobile, 8gb SDHC.
Hermes as a backup

Check out my blog:
http://mygeekout.com
0


#13 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 22 April 2008 - 07:02 AM

I think this should work as the file description in the INF?

apptodate.lnk,,,0x00000010

I believe '0x00000010' is 'don't overwrite'?

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#14 User is offline   simonster 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 20-November 05
  • Location:Reading
  • Interests:Phones and Media Centers
  • Devices:Touch Dual (Niki) on T-Mobile

Posted 22 April 2008 - 11:17 AM

Quote

apptodate.lnk,,,0x00000010

I believe '0x00000010' is 'don't overwrite'?


I think I missed out one "," then. I'm finding the easist way to do this is to create the cab in VS (am using 2008), then edit the INF and CabWiz it.

Touch Dual on T-Mobile, 8gb SDHC.
Hermes as a backup

Check out my blog:
http://mygeekout.com
0


#15 User is offline   chucky.egg 

  • Did I say that out loud?
  • PipPipPipPipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 4,724
  • Joined: 20-August 03
  • Location:Kent, England
  • Interests:Sleeping
  • Devices:Desire S
  • Twitter:@chucky_egg

Posted 22 April 2008 - 12:11 PM

That's the right flag for No Overwrite.

This is my INF, which points to a .lnk file for AppToDate.Stub.exe (because I couldn't see a way to set the No Overwrite flag on an automatically created shortcut).
Seems to work

[Version]
Signature = "$Windows NT$"
Provider = "Chucky.Egg"
CESignature = "$Windows CE$"

[CEStrings]
AppName = "Nested Tasks"
InstallDir = %CE1%\%AppName%

[Shortcuts]
%AppName%,0,"Nested Tasks.exe"

[SourceDisksNames]
1 = , "Files",,.

[SourceDisksFiles]
"Nested Tasks.exe" = 1
"Nested Tasks Settings.exe" = 1
"Nested Tasks.xml" = 1
"Nested Tasks.ico" = 1
"AppToDate.Stub.exe" = 1
"AppToDate.lnk" = 1

[Files.NestedTasks]
"Nested Tasks.exe","Nested Tasks.exe",,
"Nested Tasks Settings.exe","Nested Tasks Settings.exe",,

[Files.AppToDate]
"Nested Tasks.xml","Nested Tasks.xml",,
"Nested Tasks.ico","Nested Tasks.ico",,

[Files.Windows]
"AppToDate.Stub.exe","AppToDate.Stub.exe",,0x00000010

[Files.StartMenu]
"AppToDate.lnk","AppToDate.lnk",,0x00000010

[DestinationDirs]
Files.NestedTasks=,%InstallDir%
Files.AppToDate=,"\Application Data\AppToDate"
Files.Windows=,%CE2%
Files.StartMenu=,%CE2%"\Start Menu\Programs"
Shortcuts=,%CE2%"\Start Menu\Programs"

[DefaultInstall]
Copyfiles=Files.NestedTasks,Files.AppToDate,Files.Windows,Files.StartMenu
CEShortcuts=Shortcuts

0


#16 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 22 April 2008 - 12:20 PM

Cool.

I did have one issue pointed out, and that is that if your app is installed, then apptodate is installed, then your app is uninstalled, it's going to uninstall the apptodate shortcut :D

Gonna see if I can set up the shortcut as 'readonly' to fix that tho!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#17 User is offline   chucky.egg 

  • Did I say that out loud?
  • PipPipPipPipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 4,724
  • Joined: 20-August 03
  • Location:Kent, England
  • Interests:Sleeping
  • Devices:Desire S
  • Twitter:@chucky_egg

Posted 22 April 2008 - 07:32 PM

Just a thought but...

From my point of view I want more people on ATD, so that I only have to post updates to one location. Call me lazy.
Do I specifically want/need the ATD shortcut? No.

What about including the Stub in my CAB, but linking to it from my apps menu system?
That removes the issue of different apps adding/deleting the icon, still gives my users a quick way to install it, and still helps (to a lesser extent, admittedly) publicise ATD. It may actually be more popular with some users, those who dont like their devices being "hijacked" by apps they didn't specifically choose to install.

The other thing I was just thinking was why don't I just include the current ATD CAB in mine?
There is a way to trigger a CAB that is inside another CAB (I think it requires a setup.dll, not read up on it yet) so my users could be given the option during installation. ATD self-updates anyway, so even if the version changes it'll just prompt them to download the latest.


The shortcut idea is nice in some ways, and I have no issues with it, but its starting to feel like a bodge.
I don't want to be causing problems for people (all 20 of them worldwide!) who install my apps.

Just thunking out loud... Flame me if you dare!

0


#18 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 22 April 2008 - 07:53 PM

You can do whatever you like!

You're under no obligation to include anything at all, and you can include as much or as little as you like. I generally would advise against packaging ATD in it's entirety tho?

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#19 User is offline   chucky.egg 

  • Did I say that out loud?
  • PipPipPipPipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 4,724
  • Joined: 20-August 03
  • Location:Kent, England
  • Interests:Sleeping
  • Devices:Desire S
  • Twitter:@chucky_egg

Posted 22 April 2008 - 08:16 PM

Oh, dont get me wrong.
I like it, and I want to use it myself. I cant see why anyone would NOT want to use it (Sorry Mark!)
And I want my apps to support it.

I just dont know what the "best" way to deliver it is.

One question:
ATM it installs to \Windows, where I expected it to go to \Program Files\ATD or something.
If I point a menu link to "\Windows\AppToDate.exe" will it always be there? - are you planning to change the install location?

And finally, how about putting logic in the Stub to check for a local copy of the full app, and then close the Stub and open the full version if it's there? (if not there prompt to download)

0


#20 User is offline   chucky.egg 

  • Did I say that out loud?
  • PipPipPipPipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 4,724
  • Joined: 20-August 03
  • Location:Kent, England
  • Interests:Sleeping
  • Devices:Desire S
  • Twitter:@chucky_egg

Posted 22 April 2008 - 08:32 PM

:D
Have I missed the point with the Stub?
My CAB installs it as "AppToDate.Stub.exe". Should I be installing it as "AppToDate.exe" instead?

That would make sense with the No Overwrite flag, and would mean that I can point my app to "AppToDate.exe" and expect it to be there.

0


#21 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 22 April 2008 - 09:00 PM

No no, the no overwrite is for the Start Menu shortcut?

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#22 User is offline   chucky.egg 

  • Did I say that out loud?
  • PipPipPipPipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 4,724
  • Joined: 20-August 03
  • Location:Kent, England
  • Interests:Sleeping
  • Devices:Desire S
  • Twitter:@chucky_egg

Posted 23 April 2008 - 07:54 AM

Oh, OK.

In that case how about adding the logic to the Stub to say "if the full version is installed run that and close me (the Stub)"?

0


#23 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,386
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 23 April 2008 - 08:24 AM

Hmm, good thinking!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


Sponsored Links

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!