470,834 Members | 1,522 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,834 developers. It's quick & easy.

MSI install in silent mode

Hi, I've created an application that uses crystal report in VB dotnet
environment. I've created an MSI package to be installed on the
client pc to make the crystal report to work. However, the MSI
requires User Intervention. Does anyone know how to create MSI in a
silent mode in visual studio. This application will be pushed to the
client from the server and the MSI package needs to be in a silent
mode meaning all the user intervention should be pre-defined or
pre-answered in the package. Any help is greatly appreciated.

Thanks,
Teresa
Jul 21 '05 #1
3 41288
You can do it in command line mode:
msiexec /i <path to msi file> /q
where /q has a choice of flavors of quietness, qn, qb, qb+ etc

Another choice is a vb script (or program equivalent) to this:

set obj = createobject("WindowsInstaller.Installer")
obj.uilevel = 2
obj.InstallProduct("path to your.msi")

The default installation folder depends on ProductName and Manufacturer
properties in the setup project's properties, so that would be automatic. That
leaves mainly "Everyone" or "Just me" choices in the UI to be resolved, and you
can fix that by getting Orca (install from Orca.msi in the Platform SDK, Windows
Installer section) and editing FormFolder_AllUsers in the Property table to be
ALL instead of ME if you want a per-machine installation.
--
Phil Wilson [MVP Windows Installer]
----
"TThai" <tp****@pepco.com> wrote in message
news:7f**************************@posting.google.c om...
Hi, I've created an application that uses crystal report in VB dotnet
environment. I've created an MSI package to be installed on the
client pc to make the crystal report to work. However, the MSI
requires User Intervention. Does anyone know how to create MSI in a
silent mode in visual studio. This application will be pushed to the
client from the server and the MSI package needs to be in a silent
mode meaning all the user intervention should be pre-defined or
pre-answered in the package. Any help is greatly appreciated.

Thanks,
Teresa

Jul 21 '05 #2
Or, you can just delete all the dialogs from the User Interface editor. I
think Nick's suggestions are technically better, but this is another
approach.
---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Phil Wilson" <ph*********@unisys.spamcom>
From: "Phil Wilson" <ph*********@unisys.spamcom>
References: <7f**************************@posting.google.com >
Subject: Re: MSI install in silent mode
Date: Fri, 12 Sep 2003 11:01:46 -0700
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <e0**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: 192.59.186.207
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:108316
X-Tomcat-NG: microsoft.public.dotnet.general

You can do it in command line mode:
msiexec /i <path to msi file> /q
where /q has a choice of flavors of quietness, qn, qb, qb+ etc

Another choice is a vb script (or program equivalent) to this:

set obj = createobject("WindowsInstaller.Installer")
obj.uilevel = 2
obj.InstallProduct("path to your.msi")

The default installation folder depends on ProductName and Manufacturer
properties in the setup project's properties, so that would be automatic. Thatleaves mainly "Everyone" or "Just me" choices in the UI to be resolved, and youcan fix that by getting Orca (install from Orca.msi in the Platform SDK, WindowsInstaller section) and editing FormFolder_AllUsers in the Property table to beALL instead of ME if you want a per-machine installation.
--
Phil Wilson [MVP Windows Installer]
----
"TThai" <tp****@pepco.com> wrote in message
news:7f**************************@posting.google. com...
Hi, I've created an application that uses crystal report in VB dotnet
environment. I've created an MSI package to be installed on the
client pc to make the crystal report to work. However, the MSI
requires User Intervention. Does anyone know how to create MSI in a
silent mode in visual studio. This application will be pushed to the
client from the server and the MSI package needs to be in a silent
mode meaning all the user intervention should be pre-defined or
pre-answered in the package. Any help is greatly appreciated.

Thanks,
Teresa



Jul 21 '05 #3
Umm.. I mean Phil's suggestions. My apologies!

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Newsgroups: microsoft.public.dotnet.general
From: da****@online.microsoft.com (David Guyer [MS])
Organization: Microsoft
Date: Fri, 12 Sep 2003 19:37:01 GMT
Subject: Re: MSI install in silent mode
X-Tomcat-NG: microsoft.public.dotnet.general
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Or, you can just delete all the dialogs from the User Interface editor. I
think Nick's suggestions are technically better, but this is another
approach.
---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Phil Wilson" <ph*********@unisys.spamcom>
From: "Phil Wilson" <ph*********@unisys.spamcom>
References: <7f**************************@posting.google.com >
Subject: Re: MSI install in silent mode
Date: Fri, 12 Sep 2003 11:01:46 -0700
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <e0**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: 192.59.186.207
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:108316
X-Tomcat-NG: microsoft.public.dotnet.general

You can do it in command line mode:
msiexec /i <path to msi file> /q
where /q has a choice of flavors of quietness, qn, qb, qb+ etc

Another choice is a vb script (or program equivalent) to this:

set obj = createobject("WindowsInstaller.Installer")
obj.uilevel = 2
obj.InstallProduct("path to your.msi")

The default installation folder depends on ProductName and Manufacturer
properties in the setup project's properties, so that would be automatic.

That
leaves mainly "Everyone" or "Just me" choices in the UI to be resolved,

and you
can fix that by getting Orca (install from Orca.msi in the Platform SDK,

Windows
Installer section) and editing FormFolder_AllUsers in the Property table

to be
ALL instead of ME if you want a per-machine installation.
--
Phil Wilson [MVP Windows Installer]
----
"TThai" <tp****@pepco.com> wrote in message
news:7f**************************@posting.google .com...
Hi, I've created an application that uses crystal report in VB dotnet
environment. I've created an MSI package to be installed on the
client pc to make the crystal report to work. However, the MSI
requires User Intervention. Does anyone know how to create MSI in a
silent mode in visual studio. This application will be pushed to the
client from the server and the MSI package needs to be in a silent
mode meaning all the user intervention should be pre-defined or
pre-answered in the package. Any help is greatly appreciated.

Thanks,
Teresa



Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by TThai | last post: by
3 posts views Thread by Chad Smith | last post: by
4 posts views Thread by Steve Teeples | last post: by
3 posts views Thread by Jean-Marc Blaise | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.