An attempt was made to expand the app constant before it was initialized

An attempt was made to expand the app constant before it was initialized

An attempt was made to expand the app constant before it was initialized

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

Allright, i’m opening this thread because there are people who’s asking ‘how to ansi version of INNO’ to prevent this question here’s the tutorial for ya.

A) Unicode Version of INNO Setup

*The version which dominate conversions thanks to yener. The current DVD conversions use Unicode versions of INNO Setup mainly because of the language and foreign character support. Most of the threads have information about the version of INNO. If there’s none, better ask in the thread.

1. Go to their page first:

2. Download ‘isetup-5.5.2-unicode.exe’

3. Install the setup, during the setup, select the language, select the installation folder etc.

4. Installation will complete and you can use INNO Setup directly.

No matter what you’ll do, you will use Unicode type of INNO now. TO be sure if it’s Unicode or not check the bar:

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

Side Notes:

If you get TGUID errors in compiling, this means you’re not using Unicode version of INNO.

B) ANSI Version of INNO Setup

*Most of the old INNO Setup conversion uses ANSI version of INNO, if thread didnt say it and if it’s old one, it’s probably ANSI of INNO Setup.

1. Go to their page first:

2. Download the latest version of INNO:

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

3. Install the setup, during the setup, select the language, select the installation folder etc.

During the install you will see optional install about a ISPP add-on. Install it also.

4. Installation will complete and you can use INNO Setup directly.

No matter what you’ll do, you will use ANSI type of INNO now. TO be sure if it’s ANSI or not check the bar:

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

If you see (a) this means it’s ANSI version.

Conversion makers can use this info in their conversion threads to prevent ANSI related questions. (Don’t copy whole thread just give the link of it)

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

any tutorial in getting the registry data from dvd9 installer?

i want to put it (registry data in registry section) in my innosetup, so patcher/updater works fine with my installer (also save my serial key)

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

i’ve been working with the registry yesterday and still confuse with several things

1. when do we use unisdeletekey and unisdeletekeyifempty?
when i use unisdeletekeyifempty, somehow the registry wont show up (not installed in registry)

2. how do i insert hexadecimal value (binary) in inno? do i need to convert it first? because mine shows different registry in binary section than the original ones.

3. any solution to convert hexadecimal value (binary) easier? like value «0x00000013 (19)» in inno setup? (if i open in notepad, it shows «Language»=dword:00000013)

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

#1) most of what your asking is in inno program itself, under help.
#2) you dont convert it.. its entered as valuedata binary <<13>> the 2 << are necessary, otherwise it gives oput error.
I’ll have to look thru a few scripts to see how to enter it exactly, but that will get you started anyways.

#3 NOT needed as above.

#4 that is easier with cdmenucreator, grumpy is the one who’se posted those before look up a few of his topics.

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

#1) most of what your asking is in inno program itself, under help.
#2) you dont convert it.. its entered as valuedata binary <<13>> the 2 << are necessary, otherwise it gives oput error.
I’ll have to look thru a few scripts to see how to enter it exactly, but that will get you started anyways.

#3 NOT needed as above.

#4 that is easier with cdmenucreator, grumpy is the one who’se posted those before look up a few of his topics.

thx for the help pakrat An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

i want to ask again, how can i put a command in desktop icon, such as «-window» in target path? so the desktop icon, launch the game in windows mode

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

in inno help under setup section [ICONS] read till you see parameters, its in 2 sections but you put the commands together, seperated by ; like below.

[icons]
Name: «\My Program»; Parameters: «-window»

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

in inno help under setup section [ICONS] read till you see parameters, its in 2 sections but you put the commands together, seperated by ; like below.

[icons]
Name: «\My Program»; Parameters: «-window»

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

1. i have edit some script and try to make install, unsintall button in my autorun installer (and change install button to «play» button after instalation)

how can i make it? the only working button is install (play and uninstall doesnt seem to work)

2. can i add more than 2 sources in inno setup (for example the main installation folder and one in my document folder)?

3. can i make two instalation process in innosetup? 1 in the main folder and 1 again in my document (with my document in silent installation mode) without put the «other» process in run section?

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

go look at the witcher 2 use that script as a starting point.

1. you just change the reg entries for your game in the autorun.iss script & game’s.iss script. change for the games exe & whatever else you want. the pictures for the game go in the wizard_res folder.

2. again its in the help for inno, under .. that will lead to your my documents folder on your pc.

3. its not 2 install processes, one process that takes the information for the game + / my documents and archives them all into the setup.

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

go look at the witcher 2 use that script as a starting point.

1. you just change the reg entries for your game in the autorun.iss script & game’s.iss script. change for the games exe & whatever else you want. the pictures for the game go in the wizard_res folder.

2. again its in the help for inno, under .. that will lead to your my documents folder on your pc.

3. its not 2 install processes, one process that takes the information for the game + / my documents and archives them all into the setup.

now play and uninstall button shows after installation An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

but it still have some problem

when i click play button in autorun menu, it shows an error «The system cannot find the file specified: game.exe»

i have change the executable in the script, but it still shows this error msg

and when i click uninstall button, nothing happens
but when i click unins000.exe in the main installation folder, the uninstaller works well

An attempt was made to expand the app constant before it was initialized

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

Moderator-Следопыт

The Following 8 Users Say Thank You to REV0 For This Useful Post:
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору

Это мощное средство для создания установочных пакетов (дистрибутивов) программ. Поддерживается шифрование, установка пароля, различные задачи по завершении установки. Можно создавать свои страницы, используя Inno Setup Form Designer.
По сравнению с NSIS (основной конкурент на бесплатной основе) проще в настройке, имеет более понятную структуру скрипта.

Inno Setup Extensions Knowledge Base (содержит ответы на многие вопросы)
Новая версия (Web-интерфейс) || Старая chm-версия скачать | зеркало

Примечание: Если необходимо использовать метод проверки внешнего файла через сумму MD5 (который описан в 5 версии руководства от Kindly) для запуска инсталлятора, то понадобится калькулятор хеша MD5, калькулятор сумм MD5, SHA-256, CRC32. Если требуется узнать, какие ключи реестра меняет та или иная программа, используйте RegShot. Чтобы растянуть фоновый рисунок на весь экран, в версии Inno Setup 5.1. 10 и выше используйте этот код.

Мощная надстройка для Inno Setup, при помощи которой создавать свои инсталляторы становится очень просто.

Простой мастер создания скрипта для установки одной или нескольких игр. В инсталлятор можно встроить музыку, слайдшоу и фоновый рисунок. Для специалистов созданный скрипт, возможно, будет неплохой заготовкой для дальнейшей модернизации.

Прежнее название ScriptMaker. Удобная оболочка для облегчения написания скриптов установки для Inno Setup. Обладает некоторыми полезными функциями, которых нет ни у самого Inno Setup, ни у ISTool.

Распаковщик установок, сделанных с помощью Inno Setup. При распаковке извлекаются ресурсы и скрипт установки (немного усечённый). Возможно подключение к Total Commander или FAR с помощью MultiArc плагинов.
Поддерживает распаковку инсталляторов, сделанных с помощью Inno Setup начиная с версии 3.0.0-beta по 5. 2.3

Объёмные скрипты или части кода заключайте в тег more, чтобы ваш вопрос в сообщении не затерялся среди множества строк прилагаемого скрипта.

Всего записей: 24190 | Зарегистр. 07-04-2002 | Отправлено: 18:16 17-06-2008 | Исправлено: equis, 17:51 06-12-2008
cepbl4

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

Member

Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Привет всем!

Осваиваю Inno setup уже давно, но только сейчас решил поработать с блоком Code

Помогите, plz, Инно-Гуру

Еще вопросы:
Если WizardSmallImageFile больше, чем 55х55 пикселей, как сделать так, чтобы картинка отображалась полностью по ширине?

как сделать так, чтобы на последнем экране можно было выбирать из того, что запускать, из нескольких пунктов только один (типа flag exclusive)

Всего записей: 348 | Зарегистр. 19-11-2007 | Отправлено: 12:45 10-07-2008
nOobCrafter

Junior Member

Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Вот пример кода
То есть нам надо сделать 2 вещи:
1. Бэкап всей папки программы с уникальным именем что бы при повторной перестановке (бэкапе) файлы не затирались. Это есть.
2. Копирование дочерней папки с настройками для последующего преобразования допустим.

Поскольку имя бэкапа главное папки уникально, то к нему мы никак привязаться неможем, и как вариант, надо сделать копию нужной папки до переименования. Но проблема в том что при таком коде получается, что файлы из этой папки неберутся, зато вся структура папок сохраняется в папке бэкапа ( то есть копирует только пустые папки %) в чем дело непойму.
З.Ы. в коде я не делал папку «123» но считаем что она есть, просто пути и файлы изменены.. мне важно понять смысл.

Всего записей: 99 | Зарегистр. 26-06-2008 | Отправлено: 13:17 10-07-2008
Genri

И кстати, почему это мы не можем привязаться к уникальному имени папки, раз мы сами это уникальное имя и задаем? Сохрани созданное имя в переменную и используй там где необходимо.

Всего записей: 872 | Зарегистр. 06-09-2003 | Отправлено: 15:33 10-07-2008 | Исправлено: Genri, 15:53 10-07-2008
Sandy Ann

Junior Member

Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору Подскажите:
1 Как в секцию Setup прописать переменную, содержимое которой будет зависить от языка установки?
2 Как сохранить стиль деинсталлятора, при использовании ISSkin.dll, используя скрипт из ISSkin Visual Styles?
Заранее спасибо
Всего записей: 38 | Зарегистр. 05-02-2008 | Отправлено: 03:23 11-07-2008 | Исправлено: Sandy Ann, 03:25 11-07-2008
chum2000

Full Member

Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Genri

Junior Member

Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Genri Я просто недорос до таких тонкостей как ты написал, потому и казалось что невозможно %)
А функцию бэкапа мне актуально использовать лишь 1 раз, при копированиипапки с настройками, а основную папку проще переименовать, и не тратить время на отдельную ее копию, ведь при переустановке все файлы обновятся.
Спасибо.
Всего записей: 99 | Зарегистр. 26-06-2008 | Отправлено: 10:52 11-07-2008 | Исправлено: nOobCrafter, 12:07 11-07-2008
Genri

Advanced Member

Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору chum2000

Member

Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору nOobCrafter

Цитата:

срабатывало по галочке (таску), в итоге ерунда получается((. В чем тут может быть трабл.

А что не работает?
Папка «123» перемещается на C:\123_old, переименовывается.?

Разобрался в коде. Нужно было поменять:

SaveStringToFile(ExpandConstant(‘‘)+’fl.ini’, ‘CDPATH: ‘+ExpandConstant(‘‘), True);
на
SaveStringToFile(ExpandConstant(‘\fl.ini’), ‘CDPATH: ‘+ExpandConstant(‘‘), True);

Pascal Scripting: Canceling setup before variable is set

I have some declarations at the [Dirs]-section in my Inno Setup file. I use «Inno Setup Compiler» and a normal text editor (Notepad++) for developing. When I cancel the setup before choosing the install directory, the variable is empty for sure. I get this error (which is totally logic):

How can I fix that no error occurs after pressing the «Cancel» button and committing that I want to cancel the setup?

Internal error: An attempt was made to expand the «app» constant before it was initialized.

Can I globally set the variable or give it a default value?

Here is a code snippet where I use the variable :

Thanks for help, regards, C.

2 Answers 2

Trending sort

Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.

It falls back to sorting by highest score if no posts are trending.

Switch to Trending sort

Returns the current contents of the edit control on the Select Destination Location page of the wizard.

Unlike ExpandConstant(‘‘), this function will not fail if called after the wizard is shown but prior to the user selecting a directory. Rather, it will return the default directory name.

Inno Setup how to set the AppId after user has selected destination directory?

In Inno Setup, I need to set the AppId after the user has selected the destination directory of the install. How can this be done? The documentation leads me to believe this can be done from this quote here, «If you use a constant to allow your user to customize AppId, you do not need to return the real value until just before the installation starts. «

What I am trying to accomplish is to set the AppId based on the user selected destination directory so that multiple copies of the application can be installed and displayed in the Add/Remove programs.

When I use something like

the constant has not yet been set in my «GetAppId» function.

1 Answer 1

Since the AppId directive value can be evaluated at early initialization of the setup, you cannot safely expand in its assigned scripted function constant nor even call the WizardDirValue function because the constant requires to pass the directory selection page and the WizardDirValue function requires a wizard form instance.

The only way then is to declare a flag variable which will indicate that the wizard form has been created for calling the WizardDirValue function, or that the directory selection page has been passed if you decide to expand constant in your scripted constant function.

A script which uses the WizardDirValue function for getting the selected directory may look like:

EarMaster Community

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

Moderator: Quentin

Post by Guest » Jun 08, 2005 6:40 am

Hi, I have puchased earmaster 5 pro from a music shop on CD. When installing, I have the runtime error at 8:836. Internal error: An attempt was made to expand the app constant before it was initialized.
I note that Gus has posted this problem before but as I have not purchased through download, I don’t know what to do. I am running Windows ME

Regards
Paul Smith

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

Post by Hans » Jun 09, 2005 1:55 am

Unfortunately this Windows 98/ME problem was also on the first CD’s we shipped. Please send an email with your serial number and mailing address to Sales (find the email address here: http://www.earmaster.com/about_us.htm), then we will ship a replacement CD for you.

To begin using EarMaster now, just download the installation program from this website.

Best regards,
Hans Jakobsen
EarMaster

Post by Guest » Apr 01, 2006 12:46 pm

Anonymous wrote: Hi, I have puchased earmaster 5 pro from a music shop on CD. When installing, I have the runtime error at 8:836. Internal error: An attempt was made to expand the app constant before it was initialized.
I note that Gus has posted this problem before but as I have not purchased thrgh download, I don’t know what to do. I am running Windows ME

Regards
Paul Smith

An attempt was made to expand the app constant before it was initialized. Смотреть фото An attempt was made to expand the app constant before it was initialized. Смотреть картинку An attempt was made to expand the app constant before it was initialized. Картинка про An attempt was made to expand the app constant before it was initialized. Фото An attempt was made to expand the app constant before it was initialized

Post by Hans » Apr 02, 2006 11:36 pm

We will replace the CD no matter if you have purchased EarMaster online or through a store. Please send an email with your serial number and mailing address to Sales (find the email address here: http://www.earmaster.com/about_us.htm), then we will ship a replacement CD for you.

Best regards,
Hans Jakobsen
EarMaster

Powered by phpBB® Forum Software © phpBB Limited

Style we_universal created by INVENTEA & v12mike

Источники информации:

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *