MSI Installation

From OriginLab Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:50, 6 February 2012 (edit)
Barb (Talk | contribs)

← Previous diff
Revision as of 14:39, 7 February 2012 (edit) (undo)
Barb (Talk | contribs)

Next diff →
Line 21: Line 21:
# [http://www.originlab.com/restricted/file_download.aspx?site=MA&file=/restricted/download_files/vcredist_x64-2010.exe vcredist_x64-2010.exe] # [http://www.originlab.com/restricted/file_download.aspx?site=MA&file=/restricted/download_files/vcredist_x64-2010.exe vcredist_x64-2010.exe]
-It may be convenient to list them all in a batch file and use the /q switch.+It may be convenient to list them all in a batch file and use the /quiet switch. Then each will install silently in sequence. If they are already installed, they will remain installed.
-Then each will install silently in sequence. If they are already installed, they will remain installed.+
REM VCRedist.BAT REM VCRedist.BAT
- vcredist_x86.exe /q+ vcredist_x86.exe /quiet
- vcredist_x86_2008.exe /q+ vcredist_x86_2008.exe /quiet
- vcredist_x86_2010.exe /q+ vcredist_x86_2010.exe /quiet
- vcredist_x64_2008.exe /q+ vcredist_x64_2008.exe /quiet
- vcredist_x64_2010.exe /q+ vcredist_x64_2010.exe /quiet
-You can also include the Origin 8.6 MSI in this batch file. See below about running the Origin 8.6 MSI from the command line.+You can also include the Origin 8.6 MSI in this batch file. See the sections below about running the Origin 8.6 MSI from the command line.
==Running the MSI directly== ==Running the MSI directly==
Line 36: Line 35:
==Running the MSI on the command line silently or passively== ==Running the MSI on the command line silently or passively==
-You can run the MSI on the command line either silently (no user interaction) or passively (no user interaction, but shows status dialog).<br><br>+You can run the MSI on the command line either silently (no user interaction) using the /quiet switch, or passively (no user interaction, but shows status dialog) using the /passive switch.<br><br>
-The command is:(all on one line)<br>+The command using the /passive switch is:(all on one line)<br>
msiexec /i "<name of msi file>.msi" msiexec /i "<name of msi file>.msi"
[TRANSFORMS="<transform>.Mst"] /passive [TRANSFORMS="<transform>.Mst"] /passive
Line 51: Line 50:
-You can also include the required MS installers as follows:+You can also include the required MS installers as follows using the /quiet switch:
(Note: the line starting with msiexec must all be on one line) (Note: the line starting with msiexec must all be on one line)
REM ORIGIN86MSI.BAT REM ORIGIN86MSI.BAT
- vcredist_x86.exe /q+ vcredist_x86.exe /quiet
- vcredist_x86_2008.exe /q+ vcredist_x86_2008.exe /quiet
- vcredist_x86_2010.exe /q+ vcredist_x86_2010.exe /quiet
- vcredist_x64_2008.exe /q+ vcredist_x64_2008.exe /quiet
- vcredist_x64_2010.exe /q+ vcredist_x64_2010.exe /quiet
msiexec /i "Origin86Setup32Bit.msi" msiexec /i "Origin86Setup32Bit.msi"
TRANSFORMS="Origin86MSITransform.Mst" /passive TRANSFORMS="Origin86MSITransform.Mst" /passive
Line 65: Line 64:
==Running a Transform== ==Running a Transform==
-OriginLab provides an optional MSI transform (.mst file) that allows you to +OriginLab provides an optional MSI transform (.mst file) that allows you to:
# preset the User Files Folder to the default path used by Origin 8.6, and # preset the User Files Folder to the default path used by Origin 8.6, and
# preset the FLEXnet license server machine, # preset the FLEXnet license server machine,
so that those choices will not need to be made by users when they first start Origin 8.6. so that those choices will not need to be made by users when they first start Origin 8.6.
-[http://www.originlab.com/restricted/file_download.aspx?site=MA&file=/restricted/download_files/86_MSI_Transform_Example.zip Example MSI transform and batch file download]<br>In this example, in addition to editing the use_server.lic file discussed below, you must also edit the batch file MSIInstallOrigin86Sample.bat. The batch file runs the five Microsoft redistributable exes. Also, you must edit the user name, company name, serial number, etc. in the batch file. <br>+[http://www.originlab.com/restricted/file_download.aspx?site=MA&file=/restricted/download_files/86_MSI_Transform_Example.zip Example MSI transform and batch file download]<br>
 +In this example, in addition to editing the use_server.lic file discussed below, you must also edit the batch file MSIInstallOrigin86Sample.bat. The batch file runs the five MS redistributable exes. Also, you must edit the user name, company name, serial number, etc. in the batch file. <br>
-To preset the FLEXnet server, create a text file named '''use_server.lic''' of the form: (add your FLEXnet server name)+The example download includes a use_server.lic file, but you can also (optionally) create this text file yourself using the form: (add your FLEXnet server name)
SERVER <FLEXnet server computer name> ANY SERVER <FLEXnet server computer name> ANY
USE_SERVER USE_SERVER
and include this file in the folder containing the MSI and MST files. and include this file in the folder containing the MSI and MST files.
-To include the transform add the following to the command line: +To include the transform, add the following to the command line:
TRANSFORMS="Origin86MSITransform.Mst" TRANSFORMS="Origin86MSITransform.Mst"
The examples above include the transform already. To omit the transform, remove the part TRANSFORMS="Origin86MSITransform.Mst" The examples above include the transform already. To omit the transform, remove the part TRANSFORMS="Origin86MSITransform.Mst"
-==Uninstall==+==Uninstalling Origin==
-To uninstall, choose one of the following:<br>+To uninstall Origin, choose one of the following options:<br>
-*Run the Add or Remove Files shortcut in the OriginLab | Origin 8.6 program folder created by the msi installer, <br>+*Run the Add or Remove Files shortcut in the OriginLab | Origin8.6 program folder created by the msi installer, <br>
-*Or open the MS Windows control panel's Add or Remove Programs program and look for Origin 8.6 and select Change, <br>+*Or open the MS Windows control panel's Add or Remove Programs program and look for Origin 8.6 Sr1 and select Change, <br>
-*Or run the command<br>+*Or run the command for the 32-bit MSI:<br>
>msiexec /x "Origin86Setup32Bit.msi"<br> >msiexec /x "Origin86Setup32Bit.msi"<br>
or the following for the 32-bit and 64-bit MSI:<br> or the following for the 32-bit and 64-bit MSI:<br>
>msiexec /x "Origin86Setup64and32Bit.msi"<br> >msiexec /x "Origin86Setup64and32Bit.msi"<br>

Revision as of 14:39, 7 February 2012

Go back to Multi-user Site Deployment

Contents

Download the installer

About Required Microsoft DLLs

Origin 8.6 is built using Microsoft (MS) Visual C++ 2010, and thus it requires certain MS DLLs to run. These DLLs need to exist on the computer where Origin 8.6 runs. MS provides installers for these DLLs called redistributable exes. Depending on the state of your computer and OS, you may need to run five MS redistributable exes on the computers that will run Origin 8.6.

  • 1-3 are needed for both 32-bit and 64-bit OS.
  • 4 and 5 are needed for 64-bit OS only.

Download the MS redistributable exes:

  1. vcredist_x86.exe
  2. vcredist_x86-2008.exe
  3. vcredist_x86-2010.exe
  4. vcredist_x64-2008.exe
  5. vcredist_x64-2010.exe

It may be convenient to list them all in a batch file and use the /quiet switch. Then each will install silently in sequence. If they are already installed, they will remain installed.

REM   VCRedist.BAT
vcredist_x86.exe /quiet
vcredist_x86_2008.exe /quiet
vcredist_x86_2010.exe /quiet
vcredist_x64_2008.exe /quiet
vcredist_x64_2010.exe /quiet

You can also include the Origin 8.6 MSI in this batch file. See the sections below about running the Origin 8.6 MSI from the command line.

Running the MSI directly

You can run the Origin 8.6 MSI directly by double-clicking on the .msi file on the local machine. During installation, you must enter your serial number. After installation, a program folder named OriginLab\Origin8.6 will appear in the Start Programs menu list.

Running the MSI on the command line silently or passively

You can run the MSI on the command line either silently (no user interaction) using the /quiet switch, or passively (no user interaction, but shows status dialog) using the /passive switch.

The command using the /passive switch is:(all on one line)

msiexec /i "<name of msi file>.msi" 
[TRANSFORMS="<transform>.Mst"] /passive 
INSTALLDIR="<destination directory>" 
USERNAME="<client user or computer name>" 
COMPANYNAME="<company or department name>" 
PIDKEY="<serial number>" 

For example: (all on one line)

C:\OriginMSI>msiexec /i  "Origin86Setup32Bit.msi"
TRANSFORMS="Origin86MSITransform.Mst" /passive 
INSTALLDIR="C:\Program Files\OriginLab\Origin 8.6\" USERNAME="my name" 
COMPANYNAME="my company" PIDKEY="sf8t5-9354-7222222"


You can also include the required MS installers as follows using the /quiet switch: (Note: the line starting with msiexec must all be on one line)

REM    ORIGIN86MSI.BAT 
vcredist_x86.exe /quiet
vcredist_x86_2008.exe /quiet
vcredist_x86_2010.exe /quiet
vcredist_x64_2008.exe /quiet
vcredist_x64_2010.exe /quiet
msiexec /i  "Origin86Setup32Bit.msi"
TRANSFORMS="Origin86MSITransform.Mst" /passive 
INSTALLDIR="C:\Program Files\OriginLab\Origin 8.6\" USERNAME="my name" 
COMPANYNAME="my company" PIDKEY="sf8t5-9354-7222222"

Running a Transform

OriginLab provides an optional MSI transform (.mst file) that allows you to:

  1. preset the User Files Folder to the default path used by Origin 8.6, and
  2. preset the FLEXnet license server machine,

so that those choices will not need to be made by users when they first start Origin 8.6.

Example MSI transform and batch file download
In this example, in addition to editing the use_server.lic file discussed below, you must also edit the batch file MSIInstallOrigin86Sample.bat. The batch file runs the five MS redistributable exes. Also, you must edit the user name, company name, serial number, etc. in the batch file.

The example download includes a use_server.lic file, but you can also (optionally) create this text file yourself using the form: (add your FLEXnet server name)

SERVER <FLEXnet server computer name> ANY
USE_SERVER

and include this file in the folder containing the MSI and MST files.

To include the transform, add the following to the command line:

TRANSFORMS="Origin86MSITransform.Mst"

The examples above include the transform already. To omit the transform, remove the part TRANSFORMS="Origin86MSITransform.Mst"

Uninstalling Origin

To uninstall Origin, choose one of the following options:

  • Run the Add or Remove Files shortcut in the OriginLab | Origin8.6 program folder created by the msi installer,
  • Or open the MS Windows control panel's Add or Remove Programs program and look for Origin 8.6 Sr1 and select Change,
  • Or run the command for the 32-bit MSI:
>msiexec /x "Origin86Setup32Bit.msi"

or the following for the 32-bit and 64-bit MSI:

>msiexec /x "Origin86Setup64and32Bit.msi"