PDA

View Full Version : Including Release Notes for multiple updates


smc0862
06-25-2008, 06:26 AM
Our product updater handles multiple versions of our product patches. What I'd like to do is to also supply Release Notes for each of the patches and have the correct one displayed to the end user so the end user can see what was fixed prior to applying the patch.

Currently I have an internal array in the server script for the patch data. I can add another array element to reference a unique release note file per patch.

What I need to know (if it's possible) is how to include these release note files into the updater as a resource so they get downloaded to the end user. Then I need to know how to display the Scrolling Text dialog using the correct release note file determined at runtime.

Thanks,

-Shawn

Mark
06-26-2008, 11:27 AM
Hi smc0862,

There is no built-in way to automatically upload files, or include additional resource files with your TrueUpdate project. However it is possible to download anything that you want using the HTTP.Download() action.

Once you have downloaded the file you can then read it's contents using a TextFile.ReadToString() action.

You can then set the contents of the ScrollingText control on the On Preload event of your screen using the: DlgScrollingText.SetProperties() action.

It may seem complicated but once you get used to scripting with TrueUpdate it's actually pretty straightforward.

smc0862
06-30-2008, 06:01 AM
Mark,

Thanks for the suggestion. I'll give this a try. Sounds like it will work how I want it to.

-Shawn

smc0862
07-01-2008, 10:29 AM
Mark,

This mostly works and was quite easy to implement. What is happening now is the text file I created in NOTEPAD and uploaded to our website via FTP gets downloaded with the CRLF messed up (i.e. not converted back to a Windows recognizable format.

So the text in the Scrolling dialog is showing as 1 continuous line with block characters where the CRLF should be. I tried the HTTP.Download in both TEXT and BINARY options. Same result for both.

Thanks for any help.

-Shawn

smc0862
07-01-2008, 10:42 AM
I uploaded the text file in BINARY mode with FTP and used BINARY mode on the HTTP.Download and all is well.

Thanks for the help...

-Shawn