Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 131,614 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,161 people online right now. Registration is fast and FREE... Join Now!




how do create update content file?

 
Reply to this topicStart new topic

how do create update content file?

mayana
post 15 Aug, 2008 - 12:16 PM
Post #1


New D.I.C Head

*
Joined: 15 Aug, 2008
Posts: 3

Hello!
How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks.
Mayana
User is offlineProfile CardPM

Go to the top of the page


eclipsed4utoo
post 15 Aug, 2008 - 01:36 PM
Post #2


D.I.C Regular

***
Joined: 21 Mar, 2008
Posts: 307



Thanked 16 times
My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM

Go to the top of the page

mayana
post 16 Aug, 2008 - 02:10 AM
Post #3


New D.I.C Head

*
Joined: 15 Aug, 2008
Posts: 3

I have something like this but it's working just to have xp style.
CODE

// Create manifest XML file
      private static void CreateManifest()
      {
         StreamWriter outStream = File.AppendText(fileName);
         try
         {
            outStream.WriteLine(
       "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");
            outStream.WriteLine(
       "+
       "xmlns='\"urn:schemas-microsoft-com:asm.v1\"'>");
       outStream.WriteLine(
       "+
   "outStream.WriteLine(? outStream.WriteLine(?name='\"Microsoft." "+
   "+executableName+"." +   executableName+"\"");' ?"+
   "processorArchitecture='\"X86\"");'"+
   " version='\"1.0.0.0\"'>");
   outStream.WriteLine(
     "<DESCRIPTION>.NET control deployment tool</DESCRIPTION>");
       outStream.WriteLine("<DEPENDENCY>");
       outStream.WriteLine("<DEPENDENTASSEMBLY>");
       outStream.WriteLine(
        "+
   "? type='\"win32\"' ?processorArchitecture="+
   "'\"X86\"' version='\"6.0.0.0\"' ?publicKeyToken"+
   "='\"6595b64144ccf1df\"' ?Windows.Common-Controls"+
   "\? name='\"Microsoft."'>");
            outStream.WriteLine("</DEPENDENTASSEMBLY>");
            outStream.WriteLine("</DEPENDENCY>");
            outStream.WriteLine("");
         }
         catch(System.Exception e)
         {
            Console.WriteLine(e.Message);
         }
         finally
         {
            outStream.Close();
         }
      }

User is offlineProfile CardPM

Go to the top of the page

dineeshd
post 16 Aug, 2008 - 02:16 AM
Post #4


D.I.C Addict

Group Icon
Joined: 30 Jun, 2008
Posts: 557



Thanked 16 times

Dream Kudos: 575
My Contributions


mayana, we need to have a detailed explanation of your project for further help.
User is offlineProfile CardPM

Go to the top of the page

mayana
post 16 Aug, 2008 - 03:49 AM
Post #5


New D.I.C Head

*
Joined: 15 Aug, 2008
Posts: 3

Here is full text of my task: "We need simple GUI application (manifest utility) intended for creating update content files (manifest files) that could be subsequently used for applications auto updating.
Auto updating algorithm (simplified) the utility should serve to looks as follow. You don’t need to implement this algorithm.
1) Application connects to some resource and downloads its manifest file.
2) It parses the downloaded file and checks if newer version is available.
3) If there is newer version application connects to update source and downloads all the newer/changed files from ones mentioned in the downloaded manifest file.
4) After/if all update files are downloaded successfully they are copied to update destination.
The utility should take a set of files as input parameter and generate XML based manifest file as output one. Files should be pointed by folder name they are located in with ability to exclude unwanted ones. Besides files to be included it should be possible to set several additional options that are explained below.
1) File transfer type (HTTP or file copy).
2) Use of validation for files included in update (either should file integrity be validated during update or not). Some integrity validation method should be anticipated in generated manifest file.
3) Update location (file server directory or web URL).
4) New application version.
5) Post processor executable (the executable that should be executed after update). The executable must be a part of the update.
6) Update destination (the folder update should be copied to, either existing/installation or new one)."
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 04:30AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month