Indigo Rose Software
  #1  
Old 07-01-2006
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
Lightbulb Example: Simple Updater

Hey guys, i was needing a updater for my app and i came up with this, its nothing super, infact most of it is copyed stright from the manual (with a few edits), it will check for a connection, if ok it will download a zip file and install the contents to a predefined folder (would be app install folder) i put it all togeather into 1 function (Update()) , like i said, nothing super but it might help someone out,


so here it is, my 1st example

Last edited by RizlaUK; 02-01-2009 at 12:35 PM.
Reply With Quote
  #2  
Old 07-30-2006
esati esati is offline
Forum Member
 
Join Date: Jul 2006
Posts: 9
Arrow

i saw your project updater that is great
but can you tell me about this code
Code:
Folder.Create(_ProgramFilesFolder.."\\update_demo");
convert to HTML

qao
Reply With Quote
  #3  
Old 07-30-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
This is from the AMS 6 help file:

Quote:
Example 2
Folder.Create(_ProgramFilesFolder.."\\Flashy");

Creates a new folder called "Flashy" in the user's Program Files folder.

Note: _ProgramFilesFolder is a built-in variable that contains the path to the user's Program Files folder.
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #4  
Old 07-30-2006
esati esati is offline
Forum Member
 
Join Date: Jul 2006
Posts: 9
Quote:
Originally Posted by Intrigued
This is from the AMS 6 help file:
ok i understand you but can i use with html code
<html>
<script></script>

qao
Reply With Quote
  #5  
Old 07-30-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Do you want to create a folder using HTML code?
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #6  
Old 07-30-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Take a look at this simple project. I believe I have an example like it posted here or on amsuser.com. But, it takes the path as exampled above and puts such into a String which then is used to replace a placeholder in the HTML file (which is just six (6) '######' symbols).

So, the file is "read" into a String in AMS. The the String (which is all of the HTML code now) is searched for six (6) '######' symbols. When it finds (if) it then procedes to change that out for the _ProgramFilesFolder builtin variable and the folder path.

Try the project out and also check out the code in the On Show event area.

Notice how I have two HTML files? One is a template (holds the HTML code with the six (6) '######' symbols). And the other is where we 'paste in' the new searched string data. Or, the updated String information.

Best of luck and I hope this helps.

The file is over at amsuser.com, here:

http://www.amsuser.com/ams/examples/...-Intrigued.apz
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #7  
Old 07-31-2006
esati esati is offline
Forum Member
 
Join Date: Jul 2006
Posts: 9
the link you have specified has corrupted please uptade the link
Reply With Quote
  #8  
Old 07-31-2006
csd214 csd214 is offline
Forum Member
 
Join Date: Oct 2001
Location: Norway
Posts: 939
Quote:
Originally Posted by esati
the link you have specified has corrupted please uptade the link
No, the link is nott corrupted. Please check your Internet settings.
Reply With Quote
  #9  
Old 07-31-2006
esati esati is offline
Forum Member
 
Join Date: Jul 2006
Posts: 9
when i download your link in my pc performance this message
Reply With Quote
  #10  
Old 07-31-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Try this:

Right-click on the link and choose Save Link As and choose where you want to save such.
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #11  
Old 08-01-2006
rhosk's Avatar
rhosk rhosk is offline
Indigo Rose Customer
 
Join Date: Aug 2003
Location: Maine, USA
Posts: 1,692
Nope, fwiw, file doesn't work for me either.
__________________
Regards,

-Ron

Music | Video | Pictures
Reply With Quote
  #12  
Old 08-01-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Each time I click on the link it works for me and others.

Check your I.E./Firefox settings and any Popup Stopper type programs settings, if you have such installed.
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #13  
Old 08-01-2006
sue sue is offline
Indigo Rose Customer
 
Join Date: Mar 2004
Location: Michigan
Posts: 168
Hi Intrigued,

I get the same error when attempting to open/unzip the file - it downloads fine.

The file downloads with a zip extension - can you unzip it on your computer? Are you using winzip to zip it up?

Thanks!!!

Sue
Reply With Quote
  #14  
Old 08-01-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
If that one does not work I did an update that also now is in the form of a custom Function:

http://www.indigorose.com/forums/showthread.php?t=16876
__________________
Intrigued
www.amsuser.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What do i need to create a simple DLL for AMS? Wonderboy AutoPlay Media Studio 6.0 17 03-29-2006 12:02 PM
Simple Print Paragraph? publishers AutoPlay Media Studio 5.0 4 03-28-2005 07:24 PM
Simple HTML slideshow format Brett General Chat 1 10-30-2004 06:16 AM
Few simple questions... daveinmb AutoPlay Media Studio 5.0 7 03-22-2004 02:49 AM
A simple database and printing?? patrick6 AutoPlay Media Studio 5.0 34 03-14-2004 07:17 PM


All times are GMT -6. The time now is 01:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software