Changes

Pro/ENGINEER

2,559 bytes added, 20:39, 2 December 2008
no edit summary
'''NOTE THIS PAGE IS INCOMPLETE'''
 
Performing a silent installation of PTC's Pro/ENGINEER[http://www.ptc.com/products/proengineer/] software is time-consuming task. One way to do this is below, and the methods used are general enough to work for any version and release code of Pro/ENGINEER.
The basic steps are:
1. #Create a customer installer of the PTC installation media. To do this, use click on Other Products in the PTC.Setup program and choose Custom Installer. Select the components you want to install output the results to an appropriate directory within your WPKG software folder. 2. # From a command prompt, run "setup.exe -uilog" in the directory you created in Step 1 above. Input all the configuration parameters that you want to use on your silent installation. The setup program will write a trail file (named ps_trl.txt.1) that contains these parameters. (See PTC TPI 103331[https://www.ptc.com/appserver/cs/view/solution.jsp?n=103331] for details about using trail files to automate installations.) 3. # Copy the trail file to your WPKG software area. You will need it during installations. (Note that I created different trail files for each version, release code, and installation drive.)# Create batch files for the installation and removal of Pro/ENGINEER. The installation files should copy installer data (including the trail file) to the local drive, run the installer as "setup.exe -nographics -uitrail setup.txt", wait a fixed period of time for the installer to complete, and then exit.# Define the WPKG package, which will run the aforementioned batch files.
4Some extra utilities from the Windows 2003 Server Resource Kit are used as tools: freedisk. Create batch files for the installation exe, robocopy.exe, and removal of Pro/ENGINEERsleep.exe. The installation Sample files should copy installer data (including the trail file) are below but will need to the local drive, run the installer as "setup.exe -nographics -uitrail setup.txt", wait a fixed period of time be customized for the installer to complete, and then exityour environment.
5. Define the WPKG package, which will run the aforementioned batch files.
===%SOFTWARE%\PTC\ProENGINEER\install-silent.bat===
<source lang="dos">
set WFVER=%1
set RELCODE=%2
set FREESPACE=%3
::First, see if there is enough free space to copy the data locally and then install the application.
"%WPKGROOT%\tools\freedisk.exe" /D %SystemDrive% %FREESPACE% > NUL
if errorlevel 1 goto :END
::Proceed with the installation if there is enough space
if %PROCESSOR_ARCHITECTURE%==x86 set ARCH=32
if %PROCESSOR_ARCHITECTURE%==AMD64 set ARCH=64
if %SYSTEMDRIVE%==C: set DR=c
if %SYSTEMDRIVE%==D: set DR=d
::The below parameters make robocopy produce no console output. WPKG does not deal with robocopy's console output well.
set ROBOCOPYFLAGS=/NP /NS /NC /NFL /NDL /NJH /NJS /Z
::Delete the preferences file to avoid extra prompts that mess up the silent installer.
if exist "%SYSTEMDRIVE%\fbc_modelers\PTC\proeWildfire%WFVER%.0\bin\proe1.psf" del "%SYSTEMDRIVE%\fbc_modelers\PTC\proeWildfire%WFVER%.0\bin\proe1.psf"
::Copy over data for installation
"%WPKGROOT%\tools\robocopy.exe" /MIR %ROBOCOPYFLAGS% "%SOFTWARE%\PTC\ProENGINEER\Wildfire%WFVER%\win%ARCH%\%RELCODE%" "%WINDIR%\temp\%RELCODE%"
copy /Y "%SOFTWARE%\PTC\ProENGINEER\WF%WFVER%\installtrail%RELCODE%%DR%.txt" "%WINDIR%\TEMP\%RELCODE%\."
::Install the application
%WINDIR%\temp\%RELCODE%\setup.exe -nographics -uitrail %WINDIR%\TEMP\%RELCODE%\installtrail%RELCODE%%DR%.txt
::Wait 30 minutes for the installation to complete.
"%WPKGROOT%\tools\sleep.exe" 1800
rd /S /Q "%WINDIR%\temp\%RELCODE%"
IF EXIST "%PROGRAMFILES%\PTC\Wildfire %WFVER%.0\bin\proe.exe" EXIT /B 0
:END
EXIT /B 1
</source>
===%SOFTWARE%\PTC\ProENGINEER\remove-silent.bat===
<source lang="dos">
set WFVER=%1
copy /Y "%SOFTWARE%\PTC\ProENGINEER\WF%WFVER%\removetrail.txt" "%WINDIR%\TEMP\."
IF %PROCESSOR_ARCHITECTURE%==x86 "%SYSTEMDRIVE%\fbc_modelers\PTC\proeWildfire%WFVER%.0\uninstall\i486_nt\obj\psuninst.exe" -uitrail %SYSTEMDRIVE%\removetrail.txt "%SYSTEMDRIVE%\fbc_modelers\PTC\proeWildfire%WFVER%.0\uninstall\instlog.txt" -nographics
IF %PROCESSOR_ARCHITECTURE%==AMD64 "%SYSTEMDRIVE%\fbc_modelers\PTC\proeWildfire%WFVER%.0\uninstall\x86e_win64\obj\psuninst.exe" -uitrail %SYSTEMDRIVE%\removetrail.txt "%SYSTEMDRIVE%\fbc_modelers\PTC\proeWildfire%WFVER%.0\uninstall\instlog.txt" -nographics
del "%WINDIR%\TEMP\removetrail.txt"
EXIT /B 0
</source>
'''===WPKG Packages:'''===
<source lang="xml">
9
edits