Archive

Archive for the ‘Expedition Enterprise silent install’ Category

Expedition Enterprise From Mentorgraphics Silent installation / Deployment

September 26, 2012 Leave a comment

Expedition Enterprise From Mentorgraphics Silent installation / Deploy
Source Files: 
It consists of bunch of folders with other main Installer setup.exe

Silent Install Procedure: 
– Run the source Executable
– Go to C:\ Mentor graphics folder Once you see all the files extracted cancel the setup.
– Now go to C:\MentorGraphics\Install and run the install.exe you should see this window

– Select Tools and in that Batch Tool
– Click on Wizard
– Click Next
– Select Path to Installer (This should be your main Installer Which is modelsim_dlx-win32-10.1b-de.exe{Copy this to locally rather than selecting from Server location})
– Click Next and select where the Application to be installed
– In Product Selection Tab Select / Check all
– License Agreement Viewing Preference Tab select Don’t Prompt 
– Now Click agree for License Agreement
– In Batch Script Option Window Select Verbose Mode
– Save the Batch file where ever you want
– Exit the Window

Okay Now your Batch file got created and you Need to make below changes to that. I highlighted the Changes that to be done

Install.Bat


@echo off
REM ***************************************************************************************
REM *** This file is provided as-is.  Modifications to this file are at your own risk.  ***
REM *** The End User License Agreement was accepted during the creation of this script. ***
REM ***************************************************************************************
REM Generated by MIP v3.4-024

if not exist %SystemDrive%\install\Logs\ md %SystemDrive%\install\Logs\
if not exist %SystemDrive%\install\ExpeditionEnterprise_7_9_2\ md %SystemDrive%\install\ExpeditionEnterprise_7_9_2\

START /WAIT xcopy "%~dp07.9.2EE\mgi_odbg_to_odb++_install.ixn" /y /e "C:\install\" >NUL 2>&1
START /WAIT xcopy "%~dp0*.*" /y /e /s "C:\install\ExpeditionEnterprise_7_9_2\" >NUL 2>&1

SET PROMPT_TARG=F
SET MIPPATH=%~dp0setup.exe
SET MG_INSTALL_PID=%COMPUTERNAME%-%Time::=.%
SET NEWTARG=
SET NEWSRC=
SET NEWMIPLOC=
SET MIP_PATH_ERRORS=0
SET Self=%~f0
SET TEMP=%TEMP:/=\%
CD /D %~dp0
:LOOP
IF [%1]==[] GOTO DoneArgs
IF /I [%1]==[-tgt] GOTO TARG
IF /I [%1]==[-src] GOTO SRC
IF /I [%1]==[-msiloc] GOTO MSILOC
echo "USAGE: %~nx0 [-tgt <target>] [-src <source>] [-msiloc <path>]"
GOTO :EOF
:TARG
SHIFT
SET NEWTARG=-tgt "%~1"
SET PROMPT_TARG=F
GOTO NEXT
:SRC
SHIFT
SET NEWSRC=-src "%~1"
GOTO NEXT
:MSILOC
SHIFT
SET NEWMIPLOC=-msiloc "%~1"
GOTO NEXT
:NEXT
SHIFT
GOTO LOOP
:DoneArgs
FOR %%A IN ("%MIPPATH%") DO SET MIPFILE=%%~nxA
DIR /A-D /B "%MIPPATH%" 2>NUL | FINDSTR /I /X "%MIPFILE%" >NUL 2>&1
IF ERRORLEVEL 1 echo MIPPATH of "%MIPPATH%" must exist and not be a directory.
IF NOT ERRORLEVEL 1 GOTO CheckTarg
SET /A MIP_PATH_ERRORS+=1
IF NOT %MIP_PATH_ERRORS% lss 10 GOTO :EOF
SET /P MIPPATH=Enter path to SETUP.EXE (or 'x' to quit):
IF [%MIPPATH%]==[x] GOTO :EOF
GOTO DoneArgs
:CheckTarg
IF NOT ["%PROMPT_TARG%"]==["T"] GOTO MakeTarg
SET /P ENTERED_TARG=Enter a Target Directory:
SET NEWTARG=-tgt "%ENTERED_TARG%"
:MakeTarg
SET ansfile="%TEMP%.\~ans.tmp"
echo d> %ansfile%
echo yes>> %ansfile%
REM *** ADD YOUR OWN PRE INSTALL COMMANDS BELOW HERE ***

if not exist %SystemDrive%\install\Logs\ md %SystemDrive%\install\Logs\
xcopy "%~dp07.9.2EE\mgi_odbg_to_odb++_install.ixn" /y /e "C:\install\"

set SYSENVKEY="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
set CFGR_INI="%TEMP%\configurator.ini"
REG ADD %SYSENVKEY% /v CFGR_INI /d "%CFGR_INI%" /f

echo [defaults] > "%CFGR_INI%"
echo ABCD_LICENSE_FILE=1234@ABCDEF0O;1234@ABCDEF00;1234@ABCDEF@00 >> "%CFGR_INI%"
echo wdir=C:\wdir >> "%CFGR_INI%"

REM *** ADD YOUR OWN PRE INSTALL COMMANDS ABOVE HERE ***
START "" /WAIT "%MIPPATH%" -noexecute %NEWMIPLOC%
IF NOT ["%ProgramFiles(x86)%"]==[""] %WINDIR%\SysWOW64\REGEDIT /E %TEMP%.\~reg.ucs "HKEY_LOCAL_MACHINE\SOFTWARE\MentorGraphics\MentorGraphicsJI"
IF ["%ProgramFiles(x86)%"]==[""] REGEDIT /E %TEMP%.\~reg.ucs "HKEY_LOCAL_MACHINE\SOFTWARE\MentorGraphics\MentorGraphicsJI"
TYPE %TEMP%.\~reg.ucs > %TEMP%.\~reg.txt
FOR /F "skip=3 tokens=1,2 delims==" %%a IN (%TEMP%.\~reg.txt) do if [%%a] == ["InstPath"] SET INST_PATH=%%~b
"%INST_PATH%\Install.exe" -batch "%Self%" %NEWTARG% %NEWSRC% < %ansfile%
REM
REM
REM
REM
RD /S /Q "C:\install\ExpeditionEnterprise_7_9_2"
del /s /q "C:\Install\gw2odb_setup_v820.exe"
del /s /q "C:\Install\post_install_script.bat"
del /s /q "C:\Install\setup.iss"
del /s /q "C:\Install\setup.log"

REM *** ADD YOUR OWN POST INSTALL COMMANDS BELOW HERE ***

c:\install\post_install_script.bat
RD /S /Q "C:\install\ExpeditionEnterprise_7_9_2"

REM *** ADD YOUR OWN POST INSTALL COMMANDS ABOVE HERE ***
GOTO :EOF

REM ##### BELOW HERE IS XML DATA #####

<batchFile>
<source value="C:\install\ExpeditionEnterprise_7_9_2"/>
<target value="C:\Program Files\MentorGraphics\ExpeditionEnterprise_7_9_2"/>
<installType value="all"/>
<platform value="Windows"/>
<release name="Expedition Enterprise Flow">
<product name="Allegro to Expedition Translator" productroot="7.9.2EE"/>
<product name="AutoActive PCB Browser" productroot="7.9.2EE"/>
<product name="CAM Output Manager" productroot="7.9.2EE"/>
<product name="CES" productroot="7.9.2EE"/>
<product name="CellGen Geometry Builder" productroot="7.9.2EE"/>
<product name="Client/Server Setup" productroot="7.9.2EE"/>
<product name="DMS Librarian - DxDesigner-Expedition" productroot="7.9.2EE"/>
<product name="DxDataBook" productroot="7.9.2EE"/>
<product name="DxDesigner" productroot="7.9.2EE"/>
<product name="DxLibraryStudio" productroot="7.9.2EE"/>
<product name="DxWebPack" productroot="7.9.2EE"/>
<product name="EDIF Schematic Interface" productroot="7.9.2EE"/>
<product name="Expedition PCB" productroot="7.9.2EE"/>
<product name="FabLink XE" productroot="7.9.2EE"/>
<product name="HyperLynx Analog" productroot="7.9.2EE"/>
<product name="I/O Designer" productroot="7.9.2EE"/>
<product name="ICX Pro Explorer" productroot="7.9.2EE"/>
<product name="ICX Pro Verify" productroot="7.9.2EE"/>
<product name="Layout and library translators" productroot="7.9.2EE"/>
<product name="Librarian Flow Manager - DxDesigner-Expedition" productroot="7.9.2EE"/>
<product name="Library Manager DxDesigner-Expedition" productroot="7.9.2EE"/>
<product name="Orcad-Expedition Interface" productroot="7.9.2EE"/>
<product name="PCB Planner" productroot="7.9.2EE"/>
<product name="PCB Viewer" productroot="7.9.2EE"/>
<product name="RF Connect" productroot="7.9.2EE"/>
<product name="Remote Server Configuration Manager" productroot="7.9.2EE"/>
<product name="Report Writer" productroot="7.9.2EE"/>
<product name="Schematic translators" productroot="7.9.2EE"/>
<product name="Smart Utilities" productroot="7.9.2EE"/>
<product name="Spice Integration" productroot="7.9.2EE"/>
<product name="SymGen Symbol Builder" productroot="7.9.2EE"/>
<product name="Variant Manager" productroot="7.9.2EE"/>
<product name="iCDB Server Manager" productroot="7.9.2EE"/>
<product name="iCDB Server Monitor" productroot="7.9.2EE"/>

</release>
</batchFile>

Explanation: 

Here you need to do these things before the creation of batch file
– We can not run the Valor Components Silently during the Installation so We Removed it in Above Script
– We can not run the License Server Silently We removed that as well
– You can look in between I Removed <product name=”Valor” productroot=”7.9.2EE”/> and other one
– So Those two we are running post installation of main Product.
– For Valor you need to create a Setup.Iss file (Hope you know how to create a response file)

– The setup.exe you can find in 7.9.2EE\mgi_odbg_to_odb++_install.ixn location
– After creating the setup.iss place that in same folder, which we are copying and running locally
look at the PRE INSTALL COMMAND and POST
xcopy “%~dp07.9.2EE\mgi_odbg_to_odb++_install.ixn” /y /e “C:\install\”

c:\install\post_install_script.bat
RD /S /Q “C:\install\ExpeditionEnterprise_7_9_2”

– Write a post_install_script.bat to run your setup.exe and setup.iss silently like this

post_install_script.bat


@REM *********************************************
@REM   Copyright Mentor Graphics Corporation 2010
@REM
@REM     All Rights Reserved.
@REM
@REM  THIS WORK CONTAINS TRADE SECRET
@REM  AND PROPRIETARY INFORMATION WHICH IS THE
@REM  PROPERTY OF MENTOR GRAPHICS
@REM  CORPORATION OR ITS LICENSORS AND IS
@REM  SUBJECT TO LICENSE TERMS.
@REM *********************************************

:: pushd does not work on Win9x and will
:: generate an error. However, it will change the
:: drive on the WinNT family, so try it first.
:: It will also support UNC paths.
:: Doing a standard "cd" after is a backup that
:: properly set the directory on Win9x (although
:: it will not change the drive).
:: It will have no effect on WinNT because the
:: drive and directory were just set to the
:: correct location.

::pushd %1
::cd %1
cd \install
start /WAIT .\gw2odb_setup_v820.exe /s /f1.\setup.iss

Uninstall.bat

@echo off
cls
=======================================================================
echo  Please be wait while Mentor Graphics ExpeditionEnterprise is uninstalling
=======================================================================

c:\mentorgraphics\install\Install.exe -batchremove "%~dp0Install.bat"

REGEDIT.EXE /S "%~dp0ARPsuppress.reg"

REM Return exit code to SCCM
exit /B %EXIT_CODE%

 

ARPsuppress.reg

Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A4121C0A-438D-426D-986F-4E14BBBAB2A3}]
"SystemComponent"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MentorGraphicsJI]
"SystemComponent"=dword:00000001

Thanks,
Sri

Sven Aelterman

Learning, Educating, Leading, and Consulting in IT

Steve Thompson [MVP]

The automation specialist

Marc Westerink's blog

Cloud and related stuff...

CTGlobal

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

SCCMentor - Paul Winstanley

Endpoint Management Tips, Fixes and Guides

SavillTech's Blog

Just another WordPress.com site

Abheek Speaks

My Views on Technology and Non Technical Issues

Life In The Cloud

System Center, Azure, Datacenter you name it...

Boerlowie's Blog

Blog about VMware, PowerShell, PowerCLI, Active Directory, Exchange, SQL, ...

Another computer blog

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Catapult – a Quisitive Company

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Catapult Systems

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Catapult Systems

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Amelia Willson

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

21st Century Project Management

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

IT Consultant Everyday Notes

Just some problems/solutions storage

System Center Solutions

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Sri Boddupalli

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

TechGenix

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Kirx' Blog - kirxblog.wordpress.com

Kirx' Application Virtualization Blog

"MsiRevolution"

This site is completely related to the application packaging. In this site, you can find the information about the Windows Installer(MSI), Application Virtualisation and VB Scripting which will be useful for the application packagers. If any one faces the issues, please post in this site, we will try to get back to you with appropriate solutuion

PackageDeploy.com

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

just another windows noob ?

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

IT Support Guides

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Liquit

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Channel 9

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

TechNet Blogs

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Scripting Blog [archived]

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

TechNet Blogs

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

TechNet Blogs

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

TechNet Blogs

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

stealthpuppy.com

Aaron Parker's techblog: IT infrastructure untested on puppies.

Felipe Binotto's Blog

All About: Software Application Packaging, SCCM Administration, Intune, M365 and Endpoint Management

Puskar on Tech

Just another WordPress.com site

All about Microsoft Endpoint Manager

Enterprise Mobility and Security