Indigo Rose Software

Go Back   Indigo Rose Software Forums > TrueUpdate 3.5 > TrueUpdate 3.5 Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2008
AppleBag AppleBag is offline
Forum Member
 
Join Date: Jul 2008
Posts: 18
How to give user option to grab either a patch, or full install?

I would like to make true update display that there is an update available; and then check to see if a patch IS available, and then 2 things can happen:

1) User chooses to grab the patch and run it. or ..

2) user chooses to install full instal and run it instead of the patch.


Sometimes a patch may be available for the upgrade, sometimes not, so I'd like TU to figure this out for them, making the Full install always available, and the patch only available if it is made available on the server fo rthis upgrade, and then they just choose which they prefer.


Is this posible? thanks!
Reply With Quote
  #2  
Old 07-15-2008
Ulrich's Avatar
Ulrich Ulrich is offline
Indigo Rose Staff Member
 
Join Date: Apr 2005
Location: Sao Paulo, Brazil
Posts: 823
Of course this is possible.

Please post your project until the point where you got stuck, explaining how far you were able to go by yourself.

Ulrich
Reply With Quote
  #3  
Old 07-15-2008
AppleBag AppleBag is offline
Forum Member
 
Join Date: Jul 2008
Posts: 18
Hi

Sorry, I don't mean to make it more difficult for you, but I really haven't done anything special in my project yet, to paste. I just ran the wizard and went with most of the defaults it gives, just customizing the personal things, like server location, folder location, etc.

That's where I got stuck, lol. I'm brand spanking new to True update, and even LUA.
Reply With Quote
  #4  
Old 07-15-2008
Ulrich's Avatar
Ulrich Ulrich is offline
Indigo Rose Staff Member
 
Join Date: Apr 2005
Location: Sao Paulo, Brazil
Posts: 823
Ok, here is a sample updater. I just wrote the code at once, nothing was debugged yet, so expect to find some errors here and there. This is to give you the idea on the concept of how to make it work by yourself, not a full working solution.

So here is the skeleton for making it work:
  • Start building a new updater through the wizard. Once you come to the "Update Method" screen, choose Custom;
  • On the "Custom Update Method" screen, select the "Run Multiple Installer/Patch Files (HTTP)" option;
  • Insert a new screen in the Server Screens list, name it "Update Required 2" or something similar, and include a screen with Radio Buttons in it;
  • Edit the new screen, leaving only two radiobuttons, one for each installation method (full / patch only) and move it to the top;
  • Now get editing the Server Script code.
I commented out the g_tableFiles initialization, which I do only when I know which kind of install was requested from the user. Have a look at the code. As I said, I haven't tested it, but looking at the concept, you should be able to understand and make it work correctly in your updater without too much trouble.

Ulrich
Attached Files
File Type: tu2 Untitled.tu2 (99.8 KB, 12 views)
Reply With Quote
  #5  
Old 07-16-2008
AppleBag AppleBag is offline
Forum Member
 
Join Date: Jul 2008
Posts: 18
Thanks! I will play with this!
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
Setup Factory and VS 2005 vazir786 Setup Factory 7.0 Discussion 4 01-13-2006 09:47 PM
Key Features of Visual Patch 2.0 Ted Sullivan Visual Patch 2.0 0 04-08-2005 03:56 PM
What's New in Visual Patch 2.0? Ted Sullivan Visual Patch 2.0 0 04-08-2005 03:53 PM
Frequently Asked Questions Ted Sullivan Visual Patch 2.0 0 04-08-2005 03:49 PM
HOWTO: Make a Media Player Object Go Full Screen Support AutoPlay Media Studio 4.0 Examples 0 10-23-2002 12:23 PM


All times are GMT -6. The time now is 06:22 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