Autodesk DWG TrueView

This is a silent installer and uninstaller for Autodesk DWG TrueView, a standalone DMG viewer. More infos from here.

Autodesk DWG TrueView 2014

  1. Select your package and download it from: http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=9078813
  2. Run the downloaded exe to decompress the archive to any folder
  3. Since the decompressed folder is over 1G of size, I re-compress it using 7-zip
  4. The prerequistes are .Net Framework 4 and DirectX, but they are installed AUTOMATICALLY running the setup.exe as described in my package.xml:


<?xml version="1.0" encoding="UTF-8"?>

<packages>
  <package id='TrueViewer2014' 
        name='Autodesk TrueView 2014' 
        revision='1'
        priority='50' 
        reboot='false' >
		
		<check type="uninstall" condition="exists" path="DWG TrueView 2014" />

		<!-- decompression to a local folder (C:\temp\trueview) -->
		<install cmd='%COMSPEC% /c rd /q /s C:\temp\trueview'> <exit code="any" /></install>
		<install cmd='%COMSPEC% /c mkdir C:\temp\trueview'> <exit code="any" /></install>

                <!-- here I copy 7z.exe and 7z.dll to local folder -->
		<install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\7zip\7z.*" C:\temp\trueview'> <exit code="any" /></install>

                <!-- decompress to local folder - NOTE the output redirection is mandatory in order to run 7z with WPKG! -->
		<install cmd='%COMSPEC% /C c:\temp\trueview\7z.exe x -y "%SOFTWARE%\viewers\TrueViewer\SetupDWGTrueView2014_ENU_64bit.7z" -oC:\temp\trueview > c:\temp\trueview\extract.log' />
		
		<!-- start installation -->
		<install cmd='c:\temp\trueview\setup.exe /w /t /l /q c:\temp\trueview\setup.ini' />

		<!-- remove decompressed folder -->
		<install cmd='%COMSPEC% /c rd /q /s C:\temp\trueview'> <exit code="any" /></install>

		<upgrade include="install" />
		
 		<remove cmd='msiexec /x {5783F2D7-D028-0409-0100-0060B0CE6BBA} /qn /norestart' />
	</package>
</packages>


Autodesk DWG TrueView 2010

I would be very grateful if someone could amend the DirectX silent installer, I cannot get the /silent switch to work and believe me I have tried. The below is only a half silent install as with the DirectX components preinstalled it will fail.

This is the silent installer package for the freeware Autodesk DWG Trueview 2010, used for viewing AutoCAD DWG files.

This application relies on some DirectX components which are not installed as part of Windows, I have created a separate installer for DirectX and I used the DirectX installer which is located in the Support directory inside the DWG TrueView installer file.

This package also relies on DotNet 3.5 SP1 which I already have pushed out via WSUS however there is a WPKG package for this too. It also relies on the Microsoft Visual C++ 2008 SP1 redistributable. I have packages for all of these which are dependencies of my DWG TrueView package.

You need to extract the contents of the DWG TrueView file (get it here) to your WPKG installation directory, use 7-Zip.

<?xml version="1.0" encoding="UTF-8"?>
<packages>
 
	<package 
		id="autodeskdwgtrueview"
		name="Autodesk DWG True View 2010"
		revision="1"
		reboot="false"
		priority="20">
 
 		<depends package-id="directx" />
		<depends package-id="vcredist_x86_2008SP1" />
				
		<check type="uninstall" condition="exists" path="DWG TrueView 2010" />
 
       	<install cmd='msiexec /qn /norestart /i "%SOFTWARE%\autodesk\DwgTrueView2010\DWGViewr.msi"' />
		<!-- Move the Start Menu link to Autodesk so it sits with Design Review link instead of having it's own nested directory -->
		<install cmd='%COMSPEC% /c xcopy "%SOFTWARE%\autodesk\DwgTrueView2010\*.lnk" "%ALLUSERSPROFILE%\Start Menu\Programs\Autodesk\" /Y' />
		<install cmd='%COMSPEC% /c rmdir /q /s "%ALLUSERSPROFILE%\Start Menu\Programs\Autodesk\DWG TrueView 2010\"' />
		<!-- Remove the desktop shortcut, users can create their own if desired -->
		<install cmd='%COMSPEC% /c del /q /s "%ALLUSERSPROFILE%\Desktop\DWG Trueview 2010.lnk"' />
		
		<upgrade cmd='msiexec /qn /norestart /i "%SOFTWARE%\autodesk\DwgTrueView2010\DWGViewr.msi"' />
		<!-- Move the Start Menu link to Autodesk so it sits with Design Review link instead of having it's own nested directory -->
		<upgrade cmd='%COMSPEC% /c xcopy "%SOFTWARE%\autodesk\DwgTrueView2010\*.lnk" "%ALLUSERSPROFILE%\Start Menu\Programs\Autodesk\" /Y' />
		<upgrade cmd='%COMSPEC% /c rmdir /q /s "%ALLUSERSPROFILE%\Start Menu\Programs\Autodesk\DWG TrueView 2010\"' />
		<!-- Remove the desktop shortcut, users can create their own if desired -->
		<upgrade cmd='%COMSPEC% /c del /q /s "%ALLUSERSPROFILE%\Desktop\DWG Trueview 2010.lnk"' />
 
		<remove cmd='msiexec /qn /norestart /x "%SOFTWARE%\autodesk\DwgTrueView2010\DWGViewr.msi"' />
 
	</package>
 
 
 
</packages>

Autodesk DWG TrueView 2008

<?xml version="1.0" encoding="UTF-8"?>



<!--                     
DwgTrueView homepage :
http://www.autodesk.com

Download  DwgTrueView 2010  :
http://usa.autodesk.com/adsk/servlet/index?id=6703438&siteID=123112

This version requires XP SP2 or Vista, plus Dotnet 3.5.  For earlier versions of Windows use DwgTrueView 2007.

DwgTrueView 2007 :
http://downloads.zdnet.co.uk/0,1000000375,39200343s,00.htm

(uncompress with Winrar and place in a share position)

-->

<packages>
	
	<package 
		id="dwgtrueview2008"
		name="Autodesk DWG True View 2008"
		revision="1"
		reboot="false"
		priority="20">
		
		<check type="uninstall" condition="exists" path="DWG TrueView 2008" />

                <depends package-id="dotnet20" />		

		<install cmd='msiexec /qn /norestart /i "%SOFTWARE%\DwgTrueView2008\DWGViewr.msi"' />
		
		<upgrade cmd='msiexec /qn /norestart /i "%SOFTWARE%\DwgTrueView2008\DWGViewr.msi"' />
		
		<remove cmd='msiexec /qn /norestart /x "%SOFTWARE%\DwgTrueView2008\DWGViewr.msi"' />
	
	</package>
</packages>