Archive

Archive for the ‘Modelsim packaging’ Category

ModelSIM From Mentorgraphics Silent install

Source Files: 

modelsim_dlx-win32-10.1b-de.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 Look like this

 


@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-023
SET PROMPT_TARG=F
SET MIPPATH=c:\mentorgraphics\install\modelsim_dlx-win32-10.1b-de.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 ***

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
REM *** ADD YOUR OWN POST INSTALL COMMANDS BELOW HERE ***

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

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

<batchFile>
<source value="C:\MentorGraphics\Install\modelsim_dlx-win32-10.1b-de.exe"/>
<target value="C:\MentorGraphics"/>
<installType value="all"/>
<platform value="Windows"/>
<release name="Modelsim DE 10.1b">
<product name="DE" productroot=""/>
</release>
</batchFile>

Extra Modifications Needed:

If you want to run any scripts or applications before the installation begins Please insert those lines in the section above

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

REM *** ADD YOUR OWN PRE INSTALL COMMANDS ABOVE HERE ***

If you want to run any scripts or applications After the installation begins Please insert those lines in the section above

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

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

– I personally recommend copy your source files and Batch install script before the installation locally and run them
– For that I used this

Install.bat


@echo off
cls
echo.
echo.
echo  =====================================================================
echo   Please be patient while the ModelSim_DE_10.1b is installed ...
=====================================================================

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-023
SET PROMPT_TARG=F
SET MIPPATH=c:\install\modelsim_dlx-win32-10.1b-de.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 "%~dp0modelsim_dlx-win32-10.1b-de.exe" /y /e "C:\install\"
xcopy "%~dp0batchInstall.BAT" /y /e "C:\install\"

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
REM *** ADD YOUR OWN POST INSTALL COMMANDS BELOW HERE ***

RD /s /q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Mentor Graphics\Mentor Uninstall"
del /s /q "C:\install\modelsim_dlx-win32-10.1b-de.exe"
del /s /q "C:\install\batchInstall.BAT"

start /wait reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v ICENSE_FILE /d "1234@abcdef00;1234@abcdef00;1234@abcdef00" /f

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

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

<batchFile>
<source value="C:\Install\modelsim_dlx-win32-10.1b-de.exe"/>
<target value="C:\Program Files\modelsim_dlx_10.1b"/>
<installType value="all"/>
<platform value="Windows"/>
<release name="Modelsim DE 10.1b">
<product name="DE" productroot=""/>
</release>
</batchFile>

Uninstall.bat


@echo off
cls
echo.
echo.
echo  =====================================================================
echo   Please be wait while Mentor Graphics Modelsim DE 10.1b is uninstalling ...
======================================================================

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

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

 

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