Mora Teknikutveckling AB:s Logo Your Experts on Software Development
  
   

Advanced version of simplified install

There are many ways to install or upgrade AutoDOC clients.

The main goal is that the administrator should not have to do too much...

This is why we recommend using this directory structure:

<database directory on server>
<database directory on server>\Client
<database directory on server>\Updates

Where <database directory on server> could be any directory, assume F:\Program\AutoDOC for this sample...

All common databases and configuration files reside there.

F:\Program\AutoDOC\Client has an install file, AutoDocSetup.exe, which will install the AutoDoc client. The install program reads the ini-file Global.ini in F:\Program\AutoDOC so there will be no need to enter the serial number.

The install program updates the local installation with any file(s) found in the Updates-directory, F:\Program\AutoDOC\Updates, i.e. the configuration files Autodoc.ini and head.ini and configures Autodoc and Autocad according to these files.

New client install

So, a new client install should be as simple as executing AutoDocSetup.exe from the client directory. The install program reads the serial number from global.ini and configures according to Autodoc.ini and head.ini. The current version of AutoCad is configured (AutoCad must be started at least once before) as well as Inventor. (Inventor uses the file AutoDoc4Inventor.dll which should be in the Updates directory). The install copies any files in the Updates\AcadR17 directory as well, so you can modify the standard Adoc.cui or adoc.lsp file as you wish, if you would like to add any company specific functions.. These files are automatically loaded.

Update client

Update of a current installation is done automatically. Files are copied from the Updates directory to the local directory when AutoDOC is started. One exception thow, ini-files are constantly modified, so they are only copied if the local ini-file is older than the server file. If you would like to update an ini-file without doing a full install, use the SetDate.exe program, it can modify the file date stamp.

Use the AdocAdmin program to force configuration of AutoCad.

Client install without network access

Some companies does not allow software installation on the local computer with network access. I.e. you can login to the local computer with administration rights, but without network access. On the contrary, when login in the the domain, you will have network access, but you are not administrator of your local computer, so you can not install! What to do?

Here is how to:

Let us assume we are using a local director called C:\Temp for the install.

Create a text file called AutoDocSetup.ini with the following information:

[CommonInstal]
Serial=nnnn-mmmm-iiii
Srcdir=F:\Program\AutoDoc\Client
Updates=c:\temp\updates
AutoDocSetupAfter=c:\temp\more2Do.bat

Use your own (valid) serial number.
Srcdir specifies where the client install ought to be (although not present)
Updates specifies where the install program should look for the "Updates" directory, i.e. ini-files and stuff.

Copy the install files
 AutoDocSetup.exe och AutoDocSetup.ini to c:\temp.
Copy the Updates directory (and subdirectories) to C:\Temp\Updates

Remove olds exe-files from Updates, otherwise you will "downgrade" automatically!

AutoDocSetupAfter i.e. more2Do.bat can be used to do additional commands...

Log on to the local computer as an admin and install (AutoDocSetup.exe).
Or use "C:\Temp\AutoDocSetup.exe /Silent" for a silent install...

 

 

Another sample, unattended..



command to install:
\\MyServer\aaa\bbb\ccc\mapped_f\Program\Autodoc\Client\AutoDocSetup.exe /Silent

AutoDocSetup.ini:
[CommonInstal]
AutoDocSetupAfter=\\MyServer\aaa\bbb\ccc\mapped_f\Program\Autodoc\Client\evenMore2Do.bat
Srcdir=F:\Program\Autodoc\Client
Updates=\\MyServer\aaa\bbb\ccc\mapped_f\Program\Autodoc\updates


evenMore2Do.bat:
@echo off
regedit /s \\MyServer\aaa\bbb\ccc\mapped_f\Program\Autodoc\Client\Sheet.reg

I.e.
we execute AutoDocSetup.exe with unc path, BUT we specify that the source directory that the end user sees is "F:\Program\Autodoc\Client". We have also specified that the Updates directory is at "\\MyServer\aaa\bbb\ccc\mapped_f\Program\Autodoc\updates", which corresponds to the mapped "F:\Program\Autodoc\Updates" directory. When that is done, we run evenMore2Do.bat, located in "\\MyServer\aaa\bbb\ccc\mapped_f\Program\Autodoc\Client".....

Tip: terminate all clients with AdocAdmin first and double click to force new config...

 

New users on previous install

If a new user logs on, AutoDoc Application (the small icon in the taskbar) will try to configure AutoCad and Inventor. You might need to force an update with AdocAdmin (which can be done manually with the command "Preconfig.exe /Silent /Force").

Adding something more

Assume you would like to add something more, copy some files or start an additional program. This can be specified in AutoDocSetup.ini as well, using the  statement. Sample:

Add this line in AutoDocSetup.ini:

AutoDocSetupAfter=C:\Temp\More2Do.bat

in the section [CommonInstal]

And create a file called More2Do.bat in C:\Temp  with the following:

echo off
echo Now executing More2Do.bat... Or whatever...
pause

Now, after AutoDoc has been installed, the batch file More2Do.bat will be executed.
It has not to be a batch file, it can be an exe file as well... Or a html file, a doc file or whatever you prefer. NB! Use the full path specification for all files!

 

Sample, adding a .reg file for DWF-based sheets for plotting:

The file AutoDocSetup.ini:

AutoDocSetupAfter=F:\Program\Autodoc\Client\More2Do.bat

The file F:\Program\AutoDoc\Client\More2Do.bat:

echo off
echo Now executing More2Do.bat... 
regedit /s F:\Program\AutoDOC\Client\AutodocAutocadSheet.reg

The file AutodocAutocadSheet.reg:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Mora Teknikutveckling\AutoDOC\AutoCAD\Sheet]

[HKEY_CURRENT_USER\Software\Mora Teknikutveckling\AutoDOC\AutoCAD\Sheet\F9A?]
"CtbFile"="monochrome.ctb"
"OutputDevice"="DWF6 ePlot.pc3"
"F9A0"="ISO full bleed A0 (841.00 x 1189.00 MM)"
"F9A1"="ISO full bleed A1 (841.00 x 594.00 MM)"
"F9A2"="ISO full bleed A2 (594.00 x 420.00 MM)"
"F9A4"="ISO full bleed A4 (210.00 x 297.00 MM)"
"F9A3"="ISO full bleed A3 (420.00 x 297.00 MM)"

[HKEY_CURRENT_USER\Software\Mora Teknikutveckling\AutoDOC\AutoCAD\Sheet\FAA?]
"CtbFile"="monochrome.ctb"
"OutputDevice"="DWF6 ePlot.pc3"
"FAA0"="ISO full bleed A0 (841.00 x 1189.00 MM)"
"FAA1"="ISO full bleed A1 (841.00 x 594.00 MM)"
"FAA2"="ISO full bleed A2 (594.00 x 420.00 MM)"
"FAA3"="ISO full bleed A3 (420.00 x 297.00 MM)"
"FAA4"="ISO full bleed A4 (210.00 x 297.00 MM)"

(Do not forget to specify the company specific plot command with AdocAdmin, see http://www.morateknikutveckling.se/doc/eng/Adoc2k/AdocAdmin.htm#AutoCADmisc for more information)