Author Topic: Не создается дефолтный профиль  (Read 5987 times)

0 Members and 1 Guest are viewing this topic.

Offline sovransky

  • Newbie
  • *
  • Posts: 10
  • Country: ru
Доброго времени суток!
Пытаюсь сделать автоматическую установку миранды с помощью своих файлов autoexec_CUSTOM.ini и mirandaboot.ini

В mirandaboot.ini :
Spoiler
;This file contains the information required to get Miranda up and running,
;i.e. everything before a database is loaded

;Settings relating to the location and loading of the database
[Database]

;ProfileDir
;The directory to search for database files. If it's a relative path then
;it's relative to the directory containing miranda32.exe.
;If no directory specified Profles subdirectory in miranda executable
;directory is assumed. You can use environment variables.
;To comply with Windows security guidelines, it is recommended to keep
;your profile in %APPDATA%\Miranda NG
ProfileDir=%APPDATA%

;ShowProfileMgr
;Selects the test to use to decide whether to show the profile manager on
;startup
;"never": Only show it if the profile to use can't be guessed by any means
;"yes":   Always show it
;"smart": (default) Show it if the command line doesn't contain a db name
;         that exists or there is more or less than 1 db in the ProfileDir.
ShowProfileMgr=never

;DefaultProfile
;Name of the profile to use if there's a choice. If Miranda is run with a
;command line parameter then that is used instead of this setting.
;Default is empty
;If ShowProfileMgr=never then this profile is run without question
;Otherwise the profile manager is run as usual but initially this profile
;is selected
;
;0.4.1+ (2005/05/16) Only: This string can contain environment variables, e.g. %USERNAME%
;
DefaultProfile=jabber

;AutoCreate
;"yes": If DefaultProfile or the command line parameter gives a profile
;name that doesn't exist then that profile is created.
;"no": (default) The profile manager is shown in this case
AutoCreate=yes

;AutoExec is a system for batch addition of multiple settings to the database.
;See http://trac.miranda-ng.org/browser/trunk/docs/autoexec_sample.ini for documentation.
[AutoExec]

;Use
;"yes": Install .ini files automatically
;"no": Disable the autoexec system entirely
;"prompt": (default) Prompt the user before each installation
;This setting doesn't affect the decision of whether to display further prompts
Use=yes

;Glob
;A global expression containing the files to watch for database settings
;This will be checked just after database load and continuously all the
;time Miranda is running
;If this contains a relative path, it's relative to the directory containing
;miranda32.exe
;Default: autoexec_*.ini
Glob=autoexec_custom.ini

;Safe
;A space-separated list of database module names known to be safe to alter
;Default: CLC Icons CLUI CList SkinSounds PluginUpdater
Safe=CLC Icons CLUI CList SkinSounds PluginUpdater

;Unsafe
;A space-separated list of database module names that could be alter to
;malicious purposes (eg by faking a login server to steal passwords)
;Default: AIM Facebook GG ICQ IRC JABBER MRA MSN SKYPE Tlen TWITTER XFire
Unsafe=AIM Facebook GG ICQ IRC JABBER MRA MSN SKYPE Tlen TWITTER XFire

;OverrideSecurityFilename
;System admins may find it desirable to install settings without prompting
;the user. In that case all prompts and security will be overridden if
;the name of the ini matches the name given here.
;If this is used, make sure it's suitably random and hence not likely
;to be downloaded.
;Default is empty (no override possible)
OverrideSecurityFilename=

;OnCreateFilename
;Defines ini file that will be executed every time new profile is created.
;Default is empty (no override possible)
OnCreateFilename=

;Warn
;"all": Warn the user before each setting change is made
;"notsafe": (default) Warn before each change to a setting in a group
;           that isn't listed in the 'Safe' setting
;"onlyunsafe": Warn before each change to a setting in a group that is
;           listed in the 'Unsafe' setting
;"none": Never warn the user
Warn=none

;OnCompletion
;What to do with the ini file once it's imported
;"delete": Delete the file from the disk
;"recycle": (default) Move the file to the recycle bin (same as delete
;           if you've disabled Windows' recycle bin)
;"rename": Add the string in RenamePrefix to the beginning of the filename
;"leave": Leave the file as-is. Note that this could cause it to be
;         imported multiple times until it's moved.
;"ask": Show a dialog to ask the user
OnCompletion=recycle

;RenamePrefix
;A string to add before the filename if the 'rename' option is used for
;OnCompletion. This can include a path specifier to move the file, eg ..\
;Default: done_
RenamePrefix=done_

; decisions about how Miranda loads plugins
[PluginLoader]

; if enabled, will ask the user if they want to re-enable a disabled plugin
AskAboutIgnoredPlugins=0

; language related settings
[Language]

; DefaultLanguage
; Stores the name of the default language pack to be loaded at startup
; If skipped, loads the first file that matches the langpack_*.txt mask
; DefaultLanguage=langpack_german.txt
DefaultLanguage=langpack_russian.txt
[close]

прописано автоматическое создание профиля при старте в %APPDATA%, но программа все равно выводит при старте запрос имени профиля  ???   Что я не так делаю?
 

Offline watcher

Re: Не создается дефолтный профиль
« Reply #1 on: 05 12 2014, 22:27:34 »
sovransky, потому что используется стабильная версия, в ней была неисправность, как следствие внедрения конвертера базы, давным давно исправлено в ночниках.

Code: [Select]
;your profile in %APPDATA%\Miranda NG
ProfileDir=%APPDATA%

В примере строкой выше же показано - задать какую-то папку, например %APPDATA%\Miranda NG, иначе аппдата будет корневым каталогом всех профилей.
Пожалуйста, внимательно прочтите правила постинга перед тем, как открыть новую тему.
Please read forum rules.
 

Offline sovransky

  • Newbie
  • *
  • Posts: 10
  • Country: ru
Re: Не создается дефолтный профиль
« Reply #2 on: 06 12 2014, 07:04:27 »
В примере строкой выше же показано - задать какую-то папку, например %APPDATA%\Miranda NG, иначе аппдата будет корневым каталогом всех профилей.
спасибо! я пробовал туда добавлять папку, она все равно выдавала запрос на создание профиля и создавала папку профиля внутри добавленной)

Скачал x32 latest (0.95.3) на ней косяк исчез. Еще такой вопрос, мирнада запускается, отрабатывает файл autoexec, запускается сама, но как то притормаживает. НУ например, ткнешь в ней ПКМ на пустом месте и меню появляется с задержкой в 1,5-2 секунды.
Это правда все еще до прописывания пароля пользователя. Сам autoexec  я особо не правил, а вытащил его со сборки Miranda IM 0.9.20. Заменил также все версии плагинов на новые отсюда. НЕ нашлись только два saa.dll - Smart Auto Away  и  saani.dll - Smart Auto Away NI
 

Offline watcher

Re: Не создается дефолтный профиль
« Reply #3 on: 06 12 2014, 08:12:34 »
НЕ нашлись только два saa.dll - Smart Auto Away  и  saani.dll - Smart Auto Away NI

Да, эти два пока что не адаптированы у нас. Насчёт притормаживания - хорошо бы и без автоэкзека проверить, может и не в нём дело, а если да, то надо искать что именно и где не так. И сказать нам как воспроизвести это.
Пожалуйста, внимательно прочтите правила постинга перед тем, как открыть новую тему.
Please read forum rules.
 

Offline sovransky

  • Newbie
  • *
  • Posts: 10
  • Country: ru
Odp: Не создается дефолтный профиль
« Reply #4 on: 06 12 2014, 16:04:41 »
watcher,
на счет притормаживания видимо я накосячил, у меня в батнике развертывания создавалась папка в %APPDATA% и туда копировался autoexec.ini, а миранда его из текущей папки подхватывает. Поубирал все оттуда кроме собственно старта екзешника и тормозить перестала.

А чем вытащить конфиг уже развернутой и настроенной миранды чтобы внести потом эти изменения в autoexec.ini подготовленной для установки?
 

Offline watcher

Re: Не создается дефолтный профиль
« Reply #5 on: 06 12 2014, 17:43:48 »
А чем вытащить конфиг уже развернутой и настроенной миранды чтобы внести потом эти изменения в autoexec.ini подготовленной для установки?

Редактор базы -  экспорт настроек.

Spoiler
[close]

Назвать потом как-нибудь типа setting.ini и в mirandaboot.ini

Code: [Select]
OnCreateFilename=settings.ini
Это если он в корне лежит, а можно создать папку Settings в миранде, туда бросить этот файл и

Code: [Select]
OnCreateFilename=Settings\settings.ini
Это указывает откуда брать настройки при создании свежего профиля.

у меня в батнике развертывания создавалась папка в %APPDATA% и туда копировался autoexec.ini, а миранда его из текущей папки подхватывает

Подхватывает откуда ей mirandaboot.ini говорит подхватывать

Code: [Select]
;Glob
;A global expression containing the files to watch for database settings.
;This will be checked just after database load and continuously all the
;time Miranda is running.
;If this contains a relative path, it's relative to the directory containing
;Miranda32.exe / Miranda64.exe.
;Default: autoexec_*.ini
Glob=autoexec_*.ini

вот это умолчания, а можно:

Code: [Select]
Glob=Settings\autoexec_*.ini
и будет искать автоэкзеки в папке Settings, ну или любой указанной.


« Last Edit: 07 12 2014, 11:56:02 by Apollo2k4 »
Пожалуйста, внимательно прочтите правила постинга перед тем, как открыть новую тему.
Please read forum rules.