Jump to content

Anyone with MATLAB, Multisim, PSpice switches?


TrickerZ

Recommended Posts

I need to install a bunch of engineering software on multiple machines. Was wondering if anyone's delt with MATLAB, Multisim, PSpice, or MathCAD. Says unrecognized installer using ussf, is there anything else I can try?

Link to comment
Share on other sites


I need to install a bunch of engineering software on multiple machines.  Was wondering if anyone's delt with MATLAB, Multisim, PSpice, or MathCAD.  Says unrecognized installer using ussf, is there anything else I can try?

I know that you can easily deploy Matlab using some config file. Read the doc located on the CD. I can't provide you more information on this, since i got a new job and i'm not working anymore with Matlab. But i know you can automate it

Good Luck.

Link to comment
Share on other sites

Matlab 6.5 WPI switch

prog[pn]=['Matlab 6.5']
uid[pn]=['MATLAB65']
desc[pn]=['Matlab 6.5']
cmd1[pn]=['"%CDROM%\\Software\\Matlab6.5\\setup.exe" -if %CDROM%\\Software\\Matlab6.5\\installer.ini']
cat[pn]=['Applications']
pn++

installer.ini

################################################################## 
#
# Name: installer.ini
#
# Purpose: Input file used by the PC Silent Installer for
# setting specific parameters required by the
# installer at runtime.
#
# $Revision: 1.6 $
#
# Instructions for running in Silent mode
#
# To run the installer in silent mode use:
# setup.exe -if <input file>
#
# where:
# -if <input file> specifies the name of the installer initialization
#      file required for silent mode. This file provides the installer
#      with required input without using the GUI.
#
# Note:
# This file (installer.ini) should be used as a template for your input file.
# Please ensure that required fields have all been defined.
#
#
# The MathWorks, Inc.
# 3 Apple Hill Drive
# Natick Mass. 01760-1500
# All Rights Reserved
#
#
##################################################################
#
# START INPUT FIELDS
#
# SPECIFY YOUR FINAL INSTALLATION PATH; Required
# For example: destination=C:\matlabR13
#

destination=C:\MATLAB6.5

# SPECIFY PLP; Required
# For example: plp=13-xxxxx-xxxxx-xxxxx-xxxxx.....
#

plp=13-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx

# SPECIFY USER NAME; Required
# For example: name=John Q. MATLABuser
#

name=

# SPECIFY YOUR COMPANY NAME; Required
#

company=

# SPECIFY OUTPUT LOG NAME; Optional
# This file records the results of the installation.
# For example: output=C:\temp\installer.log
#

outlog=

# SPECIFY PATH TO LICENSE FILE; Required for concurrent licenses only
# For example: license_path=C:\TEMP\license.dat
#

license_path=

# INSTALL LICENSE MANAGER FILES; Required for concurrent licenses only
# Installs license manager files to disk in $MATLAB\flexlm.
# NOTE: You only need to install the license manager files
# on your license server.
# Set to true or false; default is false.
#

lmgr_files=false

# INSTALL LICENSE MANAGER AS A SERVICE; Required for concurrent licenses only
# Installs license manager as a service on Windows NT and 2000.
# Note: The lmgr_files option (set in previous step) must also be set to true.
# Set to true or false (Default: false).
#

lmgr_service=false

# INSTALL HELP FILES; Optional
# Set to true or false to install Help files in English (Default: true).
#

help=

# INSTALL JAPANESE HELP; Optional
# Set to true or false to install Help files in Japanese (Default: false).
# If you set this to true, both English AND Japanese help files will be installed.
#

jhelp=

# INSTALL HELP ONLY; Optional
# Set to true or false to install only the help files (Default: false).
#

helponly=

# SPECIFY HELP SOURCE PATH; Optional
# This is the directory to install the help files **FROM**.
# For example: N:\mynetwork\doc_directory
#

helppath=

# SET TIME OUT (in milliseconds) FOR DISPLAYING DIALOGS; Required
# By default, the dialog boxes display on the screen for one second.
#

timeout=1000

# INSTALL ALL FILES WITH READ-ONLY PERMISSION; Optional
# Set to true or false (Default: false).
#

readonly=false

# CHECK FOR NEW AND UPDATED PRODUCTS; Optional
# The installer can check www.mathworks.com <http://www.mathworks.com/> for new and
# updated products that have been released after this CD was produced.
# Set to true or false (Default: true).
#

update_check=true

# REBOOT SYSTEM WHEN RECOMMENDED; Optional
# Set to true or false (Default: false).
#

reboot=false

# SPECIFY PRODUCTS YOU WANT TO INSTALL; Required
# By default, when product=all, the installer installs all the products/help for
# which you are licensed.
# To install specific products:
# 1. Comment out the product=all line by putting a pound sign (#) character
# at the beginning of the line.
# 2. Uncomment the product= line for the product(s) you want to install.
#

product=all
#product=MATLAB
#product=Simulink
#product=Aerospace Blockset
#product=CDMA Reference Blockset
#product=Communications Blockset
#product=Communications Toolbox
#product=Control System Toolbox
#product=Curve Fitting Toolbox
#product=Data Acquisition Toolbox
#product=Database Toolbox
#product=Datafeed Toolbox
#product=Dials and Gauges Blockset
#product=DSP Blockset
#product=Embedded Target for Motorola MPC555
#product=Embedded Target for TI C6000 DSP
#product=Excel Link
#product=Extended Symbolic Math
#product=Filter Design Toolbox
#product=Financial Derivatives Toolbox
#product=Financial Time Series Toolbox
#product=Financial Toolbox
#product=Fixed-Point Blockset
#product=Fuzzy Logic Toolbox
#product=Garch Toolbox
#product=Image Processing Toolbox
#product=Instrument Control Toolbox
#product=LMI Control Toolbox
#product=Mapping Toolbox
#product=MATLAB COM Builder
#product=MATLAB Compiler
#product=MATLAB Excel Builder
#product=MATLAB Link for Code Composer Studio
#product=MATLAB Report Generator
#product=MATLAB Runtime Server
#product=MATLAB Web Server
#product=Model-Based Calibration Toolbox
#product=Model Predictive Control Toolbox
#product=Mu-Analysis and Synthesis Toolbox
#product=Neural Network Toolbox
#product=Nonlinear Control Design Blockset
#product=Optimization Toolbox
#product=Partial Differential Equation Toolbox
#product=Real-Time Windows Target
#product=Real-Time Workshop
#product=Real-Time Workshop Embedded Coder
#product=Requirements Management Interface
#product=Robust Control Toolbox
#product=SB2SL (converts models to Simulink)
#product=Signal Processing Toolbox
#product=SimMechanics
#product=SimPowerSystems
#product=Simulink Performance Tools
#product=Simulink Report Generator
#product=Spline Toolbox
#product=Stateflow
#product=Stateflow Coder
#product=Statistics Toolbox
#product=Symbolic Math Toolbox
#product=System Identification Toolbox
#product=Virtual Reality Toolbox
#product=Wavelet Toolbox
#product=xPC Target
#product=xPC Target Embedded Option

Edited by Grake
Link to comment
Share on other sites

  • 2 months later...

I got MATLAB working fine, but I'm having a little trouble with MathCAD. The problem is that the start /wait doesn't work. I guess it's because it changes over to a bunch of msiexecs. I was wondering if it's possible to monitor the process list for msiexec and when it's gone, exit the script. Any ideas? I was thinking something like this but can't figure out how to make it work:

:TEST 
tasklist | FIND /i "msiexec"
IF **msiexec not found** GOTO DONE
GOTO TEST
:DONE

Link to comment
Share on other sites

I figured it out:

cmdow @ /HID
@echo off
REM -----------------------------------------------------------------------
REM Running this batch file will silently (without user interaction) install
REM Mathcad 12. By editing this file, you can customize a Mathcad installation
REM for deployment across your enterprise.
REM
REM In the section below, set the specified variables to customize your
REM installation by supplying a value within the appropriate set of quotation
REM marks. These values are used to build a command-line instruction to run the
REM install without user interaction.
REM
REM If variables left undefined (""), the install will use default values. All
REM variables are OPTIONAL, except for the Product Code; the Product Code is
REM unique to each CD, and is required for the installation to proceed.
REM
REM -----------------------------------------------------------------------
REM Specify values for the variables below for the installation program.
REM Variables left as an empty string will use the default value, indicated
REM for each variable.

REM Supply your Product Code. The Product Code is a unique string of 22
REM characters that identifies the particular product you purchased, located
REM on the CD envelope. There is NO default value.
set PRODUCT_CODE=\"**removed**\"

REM Specify the directory to where you would like to install Mathcad.
REM The default value is C:\Program Files\Mathsoft\Mathcad 12\
set INSTALLDIR=\"\"

REM Specify the FLEXlm server specification or license file path. If no
REM server or file is specified, Mathcad will prompt for one on start-up.
set LICENSEPATH=\"%PROGRAMFILES%\Mathsoft\Mathcad 12\mcad12.dat\"

REM Specify the default file format. The available choices are Mcd12,
REM XML12 (default), and XMLZ12. This setting is CASE-SENSITIVE.
set DEFAULTFILEFORMAT=\"\"

REM Specify the location of the Mathcad Resources. The default value is the
REM QSHEET directory of your Mathcad installation.
set HBKLOCATION=\"\"

REM Specify the location for the Quicksheets, Tutorials, and Reference Tables
REM TOCs. These are subsets of the Mathcad Resources targeting specific
REM audiences of users. Quicksheets focus on solving problems by using Mathcad
REM functionality. The Tutorials target new Mathcad users, demonstrating how to
REM use and apply Mathcad. The Reference Tables contain constants and formulae
REM that users might otherwise need to find in books. When you access one of
REM these resources from either the Help menu or the Resources toolbar, Mathcad
REM will look in the specified location. The default value for each is the
REM QSHEET directory of your Mathcad installation.
set QUICKSHEETSTOC=\"\"
set TUTORIALSTOC=\"\"
set REFERENCETABLESTOC=\"\"

REM Specify the location of your workgroup repository, if you use one, as either
REM a file path or a URL.
set MYSITEDESTINATION=\"\"

REM Specify the destination page when you click the Home button on the Resource
REM Window toolbar. The default value is
REM C:\Program Files\Mathsoft\Mathcad 12\qsheet\map.mcd
set HOMEPAGE=\"\"

REM NOTE TO USER - DO NOT MAKE ANY CHANGES BELOW
REM ---------------------------------------------------------------------------
REM This section converts the variables defined above into a command-line
REM instruction. Editing this section may cause the installation to fail.    

echo.
echo Running silent install of Mathcad 12 with the following parameters:
echo PRODUCT_CODE:       %PRODUCT_CODE%
echo INSTALLDIR:      %INSTALLDIR%
echo LICENSEPATH:   %LICENSEPATH%  
echo HBKLOCATION:       %HBKLOCATION%
echo QUICKSHEETSTOC:     %QUICKSHEETSTOC%
echo TUTORIALSTOC:       %TUTORIALSTOC%
echo REFERENCETABLESTOC: %REFERENCETABLESTOC%
echo MYSITEDESTINATION:  %MYSITEDESTINATION%
echo HOMEPAGE:           %HOMEPAGE%
echo.

D:\install\apps\mathcad12\mathcad\Setup.exe /s /v" /L* "Mcad12_install_log.txt" /qn PRODUCTTYPE="ENT" PRODUCT_CODE=%PRODUCT_CODE% INSTALLDIR=%INSTALLDIR% LICENSEPATH=%LICENSEPATH%  HBKLOCATION=%HBKLOCATION% QUICKSHEETSTOC=%QUICKSHEETSTOC% TUTORIALSTOC=%TUTORIALSTOC% REFERENCETABLESTOC=%REFERENCETABLESTOC% MYSITEDESTINATION=%MYSITEDESTINATION% HOMEPAGE=%HOMEPAGE% "
:TEST
tasklist | FIND /i "msiexec"
IF ERRORLEVEL 1 GOTO DONE
sleep 60
GOTO TEST
:DONE
xcopy /Y "%cdrom%\install\apps\mathcad12\license\mcad12.dat" "%PROGRAMFILES%\Mathsoft\Mathcad 12\"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...