(message ("You have \"muimaster.library\" %ld.%ld installed, while PCBDesigner requires 11.0 or higher." #version #revision))
)
)
(abort "Your Magic User Interface (MUI) is too old. Please upgrade. PCBDesigner requires version 3.0 or higher (read the manual).")
)
)
;*********** Get destination directory from user.
(set #instdir
(askdir
(prompt "Where to make \"PCBDesigner\" drawer?")
(help "You have to choose place on the harddisk, where PCBDesigner will be installed. \"PCBDesigner\" drawer will be created, all neccesary files will be placed in.")
(default @default-dest)
)
)
;*********** Get full destination path.
(set #destdir
(tackon #instdir "PCBDesigner")
)
;*********** Ask for installing additional files (not in NOVICE mode).
;*********** NOVICE:
(if (= @user-level 0)
(
(set #instaldoc 1)
(set #installocpl 0)
(set #instalcdct 0)
(set #instaldocpl 0)
(set #instalconfig 1)
)
)
;*********** ADVANCED:
(if (= @user-level 1)
(
(set #bitmask
(askoptions
(prompt "Which additional files do You want to install?")
(help "Select additional elements of PCBDesigner, they are not neccesary to run the program, but makes work easier and nicer.")
(choices "documentation")
)
)
(if (BITAND #bitmask $00000001)
(set #instaldoc 1)
(set #instaldoc 0)
)
(set #installocpl 0)
(set #instalcdct 0)
(set #instaldocpl 0)
(set #instalconfig 1)
)
)
;*********** EXPERT:
(if (= @user-level 2)
(
(set #bitmask
(askoptions
(prompt "Which additional files do You want to install?")
(help "Select additional elements of PCBDesigner, they are not neccesary to run the program, but makes work easier and nicer.")
(prompt "ATTENTION! Directory " #destdir " already exists. Overwrite old files? (icons won't be overwritten)")
(help "Directory \"PCBDesigner\" already exist in \"" #instdir "\". If You continue installation all old PCBDesigner files (except icons) will be replaced by new ones. Icons will stay intact, so You neend't rearrange them.")