Silent installation to "all users"

R

Richard

I'm using a .net Setup Project to install my .net Windows
Application. I want the application installed for "all
users". The Installation Folder dialog in the User
Interface Editor includes a nice radio button for doing
just that. But I want the installation to be silent. I
achieve this by deleting all the forms from the User
Interface Editor. But then the user can't select the radio
button and I can't see a way of doing so programmatically.

Can it be done?
 
A

Adam Semel

Hey Richard,

What you need to do is pass the installation the ALLUSERS property with
a value of 1. You can implement this in two ways. You can call your install
from the command line with the flowing syntax (please note this is case
sensitive):

msiexec /i <path to your package> ALLUSERS=1

If you want your package to always run "per machine" without using the
command line parameter, you can use a tool like Orca to add the ALLUSERS
property to the property table with a value of one. Orca can be downloaded
for free the Microsoft web site at
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/. For assistance
using Orca please knowledge base article Q255905 HOWTO: Use the Orca
Database Editor to Edit Windows Installer Files which can be viewed at
http://support.microsoft.com/?id=255905.

Adam Semel
Windows Installer Team
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top