18
edits
Changes
Bricscad
,New page: A silent installer for Bricscad 8. <source lang="xml"> <package id="bricscad-8" name="Bricscad 8" revision="2008061901" priority="10" reboot="false"> <check type="file" condition="versi...
A silent installer for Bricscad 8.
<source lang="xml">
<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="[INSTALL]\program\bricscad_8\install.bat"/>
<remove cmd="[INSTALL]\program\bricscad_8\remove.bat"/>
<upgrade cmd="[INSTALL]\program\bricscad_8\install.bat"/>
</package>
</source>
====install.bat====
<source lang="dos">
"%~d0%~p0BricscadClassic-V8.2.10-1-cs_CZ.exe" /s /sms /f1"%~d0%~p0install.iss" /verbose /f2"%tmp%\bricscad.log"
"%~d0%~p0hatch.bat"
</source>
====remove.bat====
<source lang="dos">
"%~d0%~p0BricscadClassic-V8.2.10-1-cs_CZ.exe" /s /sms /f1"%~d0%~p0remove.iss" /verbose /f2"%tmp%\bricscad.log"
</source>
====hatch.bat====
<source lang="dos">
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"
</source>
Step by step
# run bricscad.exe /r and install Bricscad
# move c:\windows\setup.iss to install.iss
# run bricscad.exe /r and uninstall Bricscad
# move c:\windows\setup.iss to remove.iss
[[Category:Silent Installers]]
<source lang="xml">
<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="[INSTALL]\program\bricscad_8\install.bat"/>
<remove cmd="[INSTALL]\program\bricscad_8\remove.bat"/>
<upgrade cmd="[INSTALL]\program\bricscad_8\install.bat"/>
</package>
</source>
====install.bat====
<source lang="dos">
"%~d0%~p0BricscadClassic-V8.2.10-1-cs_CZ.exe" /s /sms /f1"%~d0%~p0install.iss" /verbose /f2"%tmp%\bricscad.log"
"%~d0%~p0hatch.bat"
</source>
====remove.bat====
<source lang="dos">
"%~d0%~p0BricscadClassic-V8.2.10-1-cs_CZ.exe" /s /sms /f1"%~d0%~p0remove.iss" /verbose /f2"%tmp%\bricscad.log"
</source>
====hatch.bat====
<source lang="dos">
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"
</source>
Step by step
# run bricscad.exe /r and install Bricscad
# move c:\windows\setup.iss to install.iss
# run bricscad.exe /r and uninstall Bricscad
# move c:\windows\setup.iss to remove.iss
[[Category:Silent Installers]]