Results 1 to 5 of 5

Thread: Deploying App / Data

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Deploying App / Data

    Hi Peeps,

    Is there anyway to configure VS2005 so that it deploys to a memory card rather than the ram?

    Cheers,

    Jiggy!

  2. #2
    New Member
    Join Date
    Jul 2007
    Posts
    3

    Re: Deploying App / Data

    How are you deploying now? Do you use a custom installer? You probably already know this, but when you install it asks where you want to install the app. You can choose the SD card. If you want it done automatically, there may be a way to do it with a custom installer. I have never done it though. Here is a URL for the installer: http://msdn2.microsoft.com/en-us/library/aa446504.aspx Here's another: http://msdn2.microsoft.com/en-us/library/ms838273.aspx Here's one with a video that is pretty good: http://msdn2.microsoft.com/en-us/win.../bb264341.aspx

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: Deploying App / Data

    Thanks mate, I will look into this and let you know how I get on. My main reason for deploying to the SD card is so the application and data does not get lost if the battery goes flat!

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Deploying App / Data

    I have all my databases on the SD card for that very reason (and that an SD card is so darn durable). I have never tried putting the actual program on there, and I wonder how it would even make sense. Suppose you did a hard re-boot of the system, such that all RAM was scrubbed. The OS would start up....and do what? Would it be expected to scan the SD card looking for programs to install? Would you have to manually install it from the SD card? Would you have to search for it and run it from the card?

    Because I didn't have any good answer to those questions, I restricted myself to only putting the database on the SD card, and leaving the program in RAM. The only one of those questions that is a viable solution is the concept of manually installing the program from the SD card, which really isn't much different from manually installing any other way. Therefore, I didn't worry about the program, only the data.

    Once I had made that decision, putting the data on the SD card wasn't particularly difficult. Since I created the DB on the fly (or added the functionality to do so), I was able to specify where the database was created:

    vb Code:
    1. Try
    2.             If System.IO.Directory.Exists("\SD Card") Then
    3.                 pName = "\SD Card\"
    4.             Else
    5.                 pName = AppPath() & "\"
    6.             End If
    7.             Do
    8.                 st1 = InputBox("Name the DB. No spaces, please.", "DB Name", "EffortData")
    9.                 If st1 = "" Then
    10.                     CreateDB = False
    11.                     Exit Function
    12.                 Else
    13.                     If st1.IndexOf(" ") > 0 Then
    14.                         MsgBox("No Spaces!", MsgBoxStyle.Exclamation, "Issue")
    15.                         st1 = ""
    16.                     End If
    17.                 End If
    18.             Loop While st1 = ""
    19.         Catch ex As Exception
    20.             Windows.Forms.MessageBox.Show("Uncertain failure." & Chr(10) & ex.Message)
    21.             CreateDB = False
    22.             Exit Function
    23.         End Try

    Wow, that was written so far back I used MsgBox!!!

    Anyways, that was a little snippet of code to create the database in either the SD card if it exists, or the program folder if the SD card was not available.
    My usual boring signature: Nothing

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: Deploying App / Data

    Thank you very much mate, it makes sense what you mentioned about the app. I will still hold that in the same.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width