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. Setup & Deployment project - "All User" installation

Setup & Deployment project - "All User" installation

Scheduled Pinned Locked Moved C#
csharpdotnetsysadminhelpworkspace
5 Posts 3 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.
  • R Offline
    R Offline
    Ruchi Gupta
    wrote on last edited by
    #1

    Hi All, For my .NET Windows application (C#), I build the installation setup from .NET framework (Setup & Deployment Project). I am unable to find the property, which I can set to give user the choice for installation i.e. whether installation will take place for the logged in user or for everyone [Everyone /"Just me" thingy]:doh: Any help is appreciated Thanks Ruchi:confused:

    S H 2 Replies Last reply
    0
    • R Ruchi Gupta

      Hi All, For my .NET Windows application (C#), I build the installation setup from .NET framework (Setup & Deployment Project). I am unable to find the property, which I can set to give user the choice for installation i.e. whether installation will take place for the logged in user or for everyone [Everyone /"Just me" thingy]:doh: Any help is appreciated Thanks Ruchi:confused:

      S Offline
      S Offline
      sreejith ss nair
      wrote on last edited by
      #2

      So u are in C# right ? good shoot. First you create a new project File > New >project >Setup and deployment > Setup. Just mentione the name and location where you want to keep your setup file. Second Stage > Right now you are in FileSystem Window. Am i right ? Ok. Here you can see Application Folder ,user's Desktop, User's Programs Menu some thing like this. third stage > Choose add project from File Menu and choose existing project. After this you have to mention for which project file that you need to create setup file. Choose you project directroy.Choose the file yourprojectname.csproj. Just wait a second. After this stage right click the application folder and choose the option Add > Project Output. Choose all in ProjectListBox except DebugOut Put And Source File. Then choose Cofiguration Tab and select Active. then click ok. You will get some file in the second Splited window of FileSystem Window. Here you can view the two part of FileSystem Window.One is FileSystem on Target Machine and the other window is Output files. Select the application folder and right click on the next window.You will get a popup window with an option add. Choose the Add and go for the File option. Here you can choose all aditional resouces file that you are going to use in your project.eg. icon's, configuration file etc. Choose the all required files holding ctl key and add it. Here you got some more file right. Ok. Next thing is if you want to give short cut to your project, then right click on the file Primary output from xxxx(Active) and choose create shot cut. Now u will get one more file and rename it to what ever you want. Choose the property of that shortcut and choose the Icon and browse in application folder. In application forlder you will get your project icon. And create the project(build). If your project is error free then your effort will always successfull. enjoy coding. hai, feel free to contact Sreejith SS Nair

      R 1 Reply Last reply
      0
      • R Ruchi Gupta

        Hi All, For my .NET Windows application (C#), I build the installation setup from .NET framework (Setup & Deployment Project). I am unable to find the property, which I can set to give user the choice for installation i.e. whether installation will take place for the logged in user or for everyone [Everyone /"Just me" thingy]:doh: Any help is appreciated Thanks Ruchi:confused:

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        I don't know what in the hell the other guy is trying to tell you, but I've been developing installer packages since Windows Installer 1.0 beta. The solution is simple: the ALLUSERS property is what you're looking for. You can both get and set this property. The default Windows Installer project in VS.NET does include a dialog that sets this accordingly (see the Windows Installer SDK in MSDN[^] for more information). This in turn changes the meaning of pre-defined folder properties, like DesktopFolder. Depending on the user's access privileges and the setting of ALLUSERS, the DesktopFolder - for example - would point to either the user's desktop folder or the All Users' desktop folder.

        Microsoft MVP, Visual C# My Articles

        R 1 Reply Last reply
        0
        • H Heath Stewart

          I don't know what in the hell the other guy is trying to tell you, but I've been developing installer packages since Windows Installer 1.0 beta. The solution is simple: the ALLUSERS property is what you're looking for. You can both get and set this property. The default Windows Installer project in VS.NET does include a dialog that sets this accordingly (see the Windows Installer SDK in MSDN[^] for more information). This in turn changes the meaning of pre-defined folder properties, like DesktopFolder. Depending on the user's access privileges and the setting of ALLUSERS, the DesktopFolder - for example - would point to either the user's desktop folder or the All Users' desktop folder.

          Microsoft MVP, Visual C# My Articles

          R Offline
          R Offline
          Ruchi Gupta
          wrote on last edited by
          #4

          Thanks Heath for the reply. The solution you suggested works by specifying command line params like this msiexec /I mysetup.msi ALLUSERS=2 But I couldn't find a way such that I set this property at the time I create MSI file from the .NET "Setup & Deployment" project. I am sorry I am a little novice there. Please suggest. Thanks Ruchi

          1 Reply Last reply
          0
          • S sreejith ss nair

            So u are in C# right ? good shoot. First you create a new project File > New >project >Setup and deployment > Setup. Just mentione the name and location where you want to keep your setup file. Second Stage > Right now you are in FileSystem Window. Am i right ? Ok. Here you can see Application Folder ,user's Desktop, User's Programs Menu some thing like this. third stage > Choose add project from File Menu and choose existing project. After this you have to mention for which project file that you need to create setup file. Choose you project directroy.Choose the file yourprojectname.csproj. Just wait a second. After this stage right click the application folder and choose the option Add > Project Output. Choose all in ProjectListBox except DebugOut Put And Source File. Then choose Cofiguration Tab and select Active. then click ok. You will get some file in the second Splited window of FileSystem Window. Here you can view the two part of FileSystem Window.One is FileSystem on Target Machine and the other window is Output files. Select the application folder and right click on the next window.You will get a popup window with an option add. Choose the Add and go for the File option. Here you can choose all aditional resouces file that you are going to use in your project.eg. icon's, configuration file etc. Choose the all required files holding ctl key and add it. Here you got some more file right. Ok. Next thing is if you want to give short cut to your project, then right click on the file Primary output from xxxx(Active) and choose create shot cut. Now u will get one more file and rename it to what ever you want. Choose the property of that shortcut and choose the Icon and browse in application folder. In application forlder you will get your project icon. And create the project(build). If your project is error free then your effort will always successfull. enjoy coding. hai, feel free to contact Sreejith SS Nair

            R Offline
            R Offline
            Ruchi Gupta
            wrote on last edited by
            #5

            Thanks Sreejith for the reply. Actually I could create the setup project, but problem I have is in specifying property such that at the time of installation it asks me, if the installation is to be done for "All Users" or "Logged in user" Thanks Ruchi

            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