MSI install in silent mode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TThai

    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
  • Phil Wilson

    #2
    Re: MSI install in silent mode

    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("W indowsInstaller .Installer")
    obj.uilevel = 2
    obj.InstallProd uct("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_AllU sers in the Property table to be
    ALL instead of ME if you want a per-machine installation.
    --
    Phil Wilson [MVP Windows Installer]
    ----
    "TThai" <tpthai@pepco.c om> wrote in message
    news:7fedd9b2.0 309120925.1ba1d 9ab@posting.goo gle.com...[color=blue]
    > 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[/color]


    Comment

    • David Guyer [MS]

      #3
      Re: MSI install in silent mode

      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.
      --------------------[color=blue]
      >Reply-To: "Phil Wilson" <phil.wilson@un isys.spamcom>
      >From: "Phil Wilson" <phil.wilson@un isys.spamcom>
      >References: <7fedd9b2.03091 20925.1ba1d9ab@ 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: <e0fhvfVeDHA.18 88@TK2MSFTNGP12 .phx.gbl>
      >Newsgroups: microsoft.publi c.dotnet.genera l
      >NNTP-Posting-Host: 192.59.186.207
      >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
      >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:108316
      >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
      >
      >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("W indowsInstaller .Installer")
      >obj.uilevel = 2
      >obj.InstallPro duct("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.[/color]
      That[color=blue]
      >leaves mainly "Everyone" or "Just me" choices in the UI to be resolved,[/color]
      and you[color=blue]
      >can fix that by getting Orca (install from Orca.msi in the Platform SDK,[/color]
      Windows[color=blue]
      >Installer section) and editing FormFolder_AllU sers in the Property table[/color]
      to be[color=blue]
      >ALL instead of ME if you want a per-machine installation.
      >--
      >Phil Wilson [MVP Windows Installer]
      >----
      >"TThai" <tpthai@pepco.c om> wrote in message
      >news:7fedd9b2. 0309120925.1ba1 d9ab@posting.go ogle.com...[color=green]
      >> 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[/color]
      >
      >
      >[/color]

      Comment

      • David Guyer [MS]

        #4
        Re: MSI install in silent mode

        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.
        --------------------[color=blue]
        >Newsgroups: microsoft.publi c.dotnet.genera l
        >From: davguy@online.m icrosoft.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.publi c.dotnet.genera l
        >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.
        >--------------------[color=green]
        >>Reply-To: "Phil Wilson" <phil.wilson@un isys.spamcom>
        >>From: "Phil Wilson" <phil.wilson@un isys.spamcom>
        >>References: <7fedd9b2.03091 20925.1ba1d9ab@ 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: <e0fhvfVeDHA.18 88@TK2MSFTNGP12 .phx.gbl>
        >>Newsgroups: microsoft.publi c.dotnet.genera l
        >>NNTP-Posting-Host: 192.59.186.207
        >>Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
        >>Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:108316
        >>X-Tomcat-NG: microsoft.publi c.dotnet.genera l
        >>
        >>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("W indowsInstaller .Installer")
        >>obj.uilevel = 2
        >>obj.InstallPr oduct("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.[/color]
        >That[color=green]
        >>leaves mainly "Everyone" or "Just me" choices in the UI to be resolved,[/color]
        >and you[color=green]
        >>can fix that by getting Orca (install from Orca.msi in the Platform SDK,[/color]
        >Windows[color=green]
        >>Installer section) and editing FormFolder_AllU sers in the Property table[/color]
        >to be[color=green]
        >>ALL instead of ME if you want a per-machine installation.
        >>--
        >>Phil Wilson [MVP Windows Installer]
        >>----
        >>"TThai" <tpthai@pepco.c om> wrote in message
        >>news:7fedd9b2 .0309120925.1ba 1d9ab@posting.g oogle.com...[color=darkred]
        >>> 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[/color]
        >>
        >>
        >>[/color]
        >[/color]

        Comment

        Working...