Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Building a SqlConnection string during installation

Building a SqlConnection string during installation

Scheduled Pinned Locked Moved C#
questionsysadminhelpworkspace
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gammaza
    wrote on last edited by
    #1

    Hi there, can anyone please help me? I wrote a program with a deployment project too. How can i add a sqlconnection setup during the deployment / installation of the program ? Thanks in advance.

    N 1 Reply Last reply
    0
    • G Gammaza

      Hi there, can anyone please help me? I wrote a program with a deployment project too. How can i add a sqlconnection setup during the deployment / installation of the program ? Thanks in advance.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Why do you need to create the connections tring at setup time? You can create a custom action in your install package to write the connection string.

      only two letters away from being an asset

      G 1 Reply Last reply
      0
      • N Not Active

        Why do you need to create the connections tring at setup time? You can create a custom action in your install package to write the connection string.

        only two letters away from being an asset

        G Offline
        G Offline
        Gammaza
        wrote on last edited by
        #3

        I dont know what the client's datasource address is so i want him to be able to enter it on setup of the website. How does one create a custom action in your install package to write a connection string? :~

        N 1 Reply Last reply
        0
        • G Gammaza

          I dont know what the client's datasource address is so i want him to be able to enter it on setup of the website. How does one create a custom action in your install package to write a connection string? :~

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/custom_actions.asp[^]

          only two letters away from being an asset

          G 1 Reply Last reply
          0
          • N Not Active

            http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/custom_actions.asp[^]

            only two letters away from being an asset

            G Offline
            G Offline
            Gammaza
            wrote on last edited by
            #5

            Im sorry but i can't find anything in custom actions that i want to get a connection string from the client during the installation.

            N 1 Reply Last reply
            0
            • G Gammaza

              Im sorry but i can't find anything in custom actions that i want to get a connection string from the client during the installation.

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              Create dialog to display within your install package asking the user to supply connection string details. Use a custom action, possibly of type 2, to run an exe that adds this info to the config file.


              only two letters away from being an asset

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups