Hi Tim,
I use Inno Setup to do the installs. I would strongly suggest that you use
this as your install program if you are not already doing so.
I can check for installed versions of AutoCAD with script as follows:
function R2006LandFound(): Boolean;
begin
if RegKeyExists( HKLM, 'SOFTWARE\Autodesk\AutoCAD\R16.2\ACAD-4008:409')
then begin
Result := true;
end
else
begin
Result := false;
end;
end;
I have a file "CADAppsFindVersions.txt" containing this (and all the others
versions of AutoCAD relevant for our products) and I attach this file to all
installation scripts as follows:
[Code]
#include "C:\Installation\CADApps Install
Items\InnoSetupStdScripts\CADAppsFindVersions.txt"
Then the scripts from this file are used as follows:
[Files]
Source: {src}\Programs\Landscape-2006-v5.dvb; DestDir:
{app}\Landscape\Programs; Flags: external ignoreversion; Check:
R2006LandFound
If Land Desktop 2006 is not installed then the line above is not invoked
based on the output returned to 'Check' by the function 'R2006LandFound'
Laurie Comerford
CADApps
www.cadapps.com.au
"Tim Riley" wrote in message
news:4912244@discussion.autodesk.com...
I was just wondering how everyone is dealing with demand loading .dll's for
multiple versions of AutoCAD. Basically I want to create an installer that
will work for either AutoCAD Mechanical 2005 or the version of Mechanical
2005 that comes with Inventor. My problem is they reside under different
registry keys, ACAD-305:409 and ACAD-303:409. Is there an easier way other
than checking to see if these registry keys exist and then installing? What
if I wanted to distribute this to people whom I didn't know what vertical
flavor of AutoCAD they were using?
I haven't started working on my NSIS script yet but when I do I'd like to
know if there's an easier option for me.
TIA,
Tim Riley