KOMPAS-3D
CAD program from Ascon.
Viewer package
You need download archive from Official site. After, extract content from downloaded archives to folders "%SOFTWARE%\KOMPAS3DViewer\%PKG_VERSION%\x64" or "%SOFTWARE%\KOMPAS3DViewer\%PKG_VERSION%\x86". You can put you company name to install script below.
<package
id="kompas3dviewer"
name="KOMPAS 3D Viewer"
revision="%PKG_VERSION%"
reboot="false"
priority="0">
<variable name="PKG_VERSION" value="18.1.0" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\KOMPAS3DViewer\%PKG_VERSION%\x64" architecture="x64" />
<variable name="PKG_NAME" value="KOMPAS-3D_Viewer_v%PKG_VERSION%_x64.msi" architecture="x64" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\KOMPAS3DViewer\%PKG_VERSION%\x86" architecture="x86" />
<variable name="PKG_NAME" value="KOMPAS-3D_Viewer_v%PKG_VERSION%_x86.msi" architecture="x86" />
<variable name="PKG_INSTALL_SWITCH" value="/qn /norestart" />
<variable name="PKG_REMOVE_SWITCH" value="/qn" />
<check type="uninstall" condition="versiongreaterorequal" path="КОМПÐС-3D Viewer .+" value="%PKG_VERSION%" />
<install include='remove' />
<install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH% USERNAME="User" COMPANYNAME="You company name"'>
<exit code="3010" />
</install>
<upgrade include='install' />
<remove cmd='wmic product where "name like 'КОМПÐС-3D Viewer%%'" call uninstall' />
</package>
Cleaner old verions of Viewer by MSI codes
<!-- For version 9.0.1 -->
<remove cmd='msiexec /X {5EA2B7F0-F558-4FF8-9B51-CA8AAA628E93} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 11.0 -->
<remove cmd='msiexec /X {4F20BA62-58DB-4B58-941C-BC9362339E00} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 11.0.1 -->
<remove cmd='msiexec /X {4BBE7146-2DE7-4E0B-B6A7-8FCEC2D7DA79} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 12.0.1 -->
<remove cmd='msiexec /X {17D7EA7D-DDFA-44FF-A367-12E3D9D95688} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 13.0 -->
<remove cmd='msiexec /X {2110889E-9850-4BD6-A3B6-C031B3F656C3} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 16.0 -->
<remove cmd='msiexec /X {FB6B9459-6F15-4F4E-AF85-2E9922C343BF} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 16.1 -->
<remove cmd='msiexec /X {B0EE7B7F-641E-44EB-AA7E-356EF0C50DBB} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 17.0 -->
<remove cmd='msiexec /X {D6DD4506-D3D0-41D0-8BB9-5963EC8D4040} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 17.1 -->
<remove cmd='msiexec /X {CDFB4313-083F-47C4-ACCB-5A68159CBCE2} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>
<!-- For version 18.1 (current) -->
<remove cmd='msiexec /X {9D7356ED-FA34-4F08-9E8A-0DAF4C4CCB52} %PKG_REMOVE_SWITCH%'>
<exit code='any' />
</remove>