Setup & Deployment project - "All User" installation
-
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:
-
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:
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
-
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:
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, likeDesktopFolder
. Depending on the user's access privileges and the setting ofALLUSERS
, theDesktopFolder
- for example - would point to either the user's desktop folder or the All Users' desktop folder.Microsoft MVP, Visual C# My Articles
-
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, likeDesktopFolder
. Depending on the user's access privileges and the setting ofALLUSERS
, theDesktopFolder
- for example - would point to either the user's desktop folder or the All Users' desktop folder.Microsoft MVP, Visual C# My Articles
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 -
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
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