Changes

Pro/ENGINEER

17 bytes removed, 20:46, 2 December 2008
no edit summary
The basic steps are:
#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 and output the results to an appropriate directory within your WPKG software folder.
# 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.)
# 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 install-silent.bat and remove-silent.bat 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.
Sample batch files are below but will need to be customized for your environment. Some extra utilities from the Windows 2003 Server Resource Kit are used as tools: freedisk.exe, robocopy.exe, and sleep.exe. Sample files are below but will need to be customized for your environment.
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 "%SYSTEMDRIVEPROGRAMFILES%\fbc_modelers\PTC\proeWildfire%WFVER%.0\bin\proe1.psf" del "%SYSTEMDRIVEPROGRAMFILES%\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%"
set WFVER=%1
copy /Y "%SOFTWARE%\PTC\ProENGINEER\WF%WFVER%\removetrail.txt" "%WINDIR%\TEMP\."
IF %PROCESSOR_ARCHITECTURE%==x86 "%SYSTEMDRIVEPROGRAMFILES%\fbc_modelers\PTC\proeWildfire%WFVER%.0\uninstall\i486_nt\obj\psuninst.exe" -uitrail %SYSTEMDRIVE%\removetrail.txt "%SYSTEMDRIVEPROGRAMFILES%\fbc_modelers\PTC\proeWildfire%WFVER%.0\uninstall\instlog.txt" -nographicsIF %PROCESSOR_ARCHITECTURE%==AMD64 "%SYSTEMDRIVEPROGRAMFILES%\fbc_modelers\PTC\proeWildfire%WFVER%.0\uninstall\x86e_win64\obj\psuninst.exe" -uitrail %SYSTEMDRIVE%\removetrail.txt "%SYSTEMDRIVEPROGRAMFILES%\fbc_modelers\PTC\proeWildfire%WFVER%.0\uninstall\instlog.txt" -nographics
del "%WINDIR%\TEMP\removetrail.txt"
EXIT /B 0
9
edits