AfraLisp Blog

The AutoLisp/Visual Lisp/VBA Resource Website

AfraLisp Blog

Home Newsletter Utter Rubbish Coding Tips AutoCAD Tips Contact Downloads WAUN

Custom Application Setup IV


Let's review what we've done so far.

  • We've set up our folders and sub-folders for our custom application.

  • We've used the "Inno Setup" Wizard to create our setup script.

  • We've tweeked the setup script to integrate with "Acad Install".

  • Now we need to configure our "AcadInst.ini" file.

Lets have a look at the "AcadInst.ini" file which should be in your application root folder :

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                                                                    ;
; Usage Notes:                                                       ;
; See AcadInst.chm help file for instructions on sections and values ;

[PRODUCT]

Name=MyAcadApp
RegPath=MyCompany\MyAcadApp\MyAppVersion
License=
Silent=

[AUTOCAD]

Versions=R15.0,R16.0
Products=
SerialNumbers=
AddPath=|1
Silent=

[AUTOCAD LT]

Versions=R2000
Products=
SerialNumbers=
AddPath=
Silent=

[ARX]

Install=CdWxMyAppArx
Uninstall=
Description=My app's arx description
LoadCtrls=13
Loader=MyAppArx
Groups=GROUP1:GROUP1
Commands=COMMAND1:COMMAND1,COMMAND2:COMMAND2

[ARX2]

Install=CdWxMyAppArx2
Uninstall=
Description=My app's other arx description
LoadCtrls=13
Loader=MyAppArx2
Groups=GROUP1:GROUP1
Commands=COMMAND3:COMMAND3,COMMAND4:COMMAND4

[MENU]

MenuGroups=MyMainMenu:MyMenuFile:1:3,MyOtherMenu:MyMenuFile
Toolbars=MyMainMenu.TB_MAIN

[APPLOAD]

StartupSuite=\MyAppVlx.vlx
History=\MyAppVlx.vlx

[ACADDOC]

Line1=(alert "Pie is good!")
Line2=(princ "\nThe path to my app is ")

[STARTAPP]

[NEWPROFILE]

Name=MyProfile
Description=My profile for my AutoCAD application.
CopyFrom=
MakeDefault=T
DesktopShortcut=T
QuickLaunchButton=T

[General]

;Blipmode=1
;TemplatePath=\Templates

First, let's strip out what we won't need or will not be using. Your AcadInst.ini file should now look like this :

[PRODUCT]

Name=MyAcadApp
RegPath=MyCompany\MyAcadApp\MyAppVersion

[AUTOCAD]

Versions=R15.0,R16.0
AddPath=|1

[MENU]

MenuGroups=MyMainMenu:MyMenuFile:1:3,MyOtherMenu:MyMenuFile
Toolbars=MyMainMenu.TB_MAIN

[NEWPROFILE]

Name=MyProfile
Description=My profile for my AutoCAD application.
CopyFrom=
MakeDefault=T
DesktopShortcut=T
QuickLaunchButton=T

[General]

TemplatePath=\Templates


Now make these changes as shown in red. I've added comments to each change to explain what is going on :
[PRODUCT]

Name=AfraLisp2004 Custom Menu
;the name of our application.

[AUTOCAD]

Versions=R15.0,R16.0
;the AutoCAD version/s to be configured
AddPath=<InstallPath>|1;<InstallPath>\Lib2004|2;<InstallPath>\Lisp2004|3
;the support paths to be added and their positions

[MENU]

MenuGroups=AFRALISP:AFRALISP:1:50
;the pull down menu to be added
Toolbars=AFRALISP.LAYMAN
;the toolbar to be added

[NEWPROFILE]

Name=AfraLisp
;the name of the profile to be added
Description=AfraLisp 2004 Menu Profile.
;the description of the profile
CopyFrom=<CURRENT>
;copy the profile from the current profile
MakeDefault=T
;make it the default profile;make it the default profile
DesktopShortcut=T
;yes we want a desktop shortcut
ShortcutName=AfraLisp Profile
;name of the shortcut
ShortcutComment=AfraLisp Custom Menu Profile
;the tooltip
ShortcutArgs=/p "AfraLisp"
;the arguments on startup
ShortcutWorkingDir=C:\drawings
;the working directory


[<PROFILE>General]

TemplatePath=<STRING><InstallPath>\Templates
;the template file path



Let's have a look at our setup application in action. See you on the next page.

 
The AutoLisp/Visual Lisp/VBA Resource Website

Copyright © 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website