Bricscad

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

A silent installer for Bricscad 8.

<package id="bricscad-8" name="Bricscad 8" revision="2008061901" priority="10" reboot="false">
  <check type="file" condition="versionequalto" path="%PROGRAMFILES%\Bricsys\Bricscad\bricscad.exe" value="8.2.10.11434"/>
  <install cmd="%SOFTWARE%\bricscad_8\install.bat"/>
  <remove cmd="%SOFTWARE%\bricscad_8\remove.bat"/>
  <upgrade cmd="%SOFTWARE%\bricscad_8\install.bat"/>
</package>

install.bat[edit]

"%~d0%~p0BricscadClassic-V8.2.10-1-cs_CZ.exe" /s /sms /f1"%~d0%~p0install.iss" /verbose /f2"%tmp%\bricscad.log"
"%~d0%~p0hatch.bat"

remove.bat[edit]

"%~d0%~p0BricscadClassic-V8.2.10-1-cs_CZ.exe" /s /sms /f1"%~d0%~p0remove.iss" /verbose /f2"%tmp%\bricscad.log"

hatch.bat[edit]

copy /y "%~d0%~p0ICAD.PAT" "%programfiles%\Bricsys\Bricscad\Patterns"
copy /y "%~d0%~p0*.sld" "%programfiles%\Bricsys\Bricscad\Patterns"
copy /y "%~d0%~p0ICAD.LIN" "%programfiles%\Bricsys\Bricscad"
copy /y "%~d0%~p0ltypeshp.shx" "%programfiles%\Bricsys\Bricscad"

Step by step

  1. run bricscad.exe /r and install Bricscad
  2. move c:\windows\setup.iss to install.iss
  3. run bricscad.exe /r and uninstall Bricscad
  4. move c:\windows\setup.iss to remove.iss