Ru-Board.club
← Вернуться в раздел «Программы»

» Inno Setup (создание инсталяционных пакетов)

Автор: Seryoga_User
Дата сообщения: 19.01.2004 18:38
Товарищи, помогите пожалуйста:

Вобщем хочу создать свою инсталляшку с помощью этой проги. Но поскольку у меня ламерский уровень, то сам догадаться немогу. Вопрос заключается в следующем:
Я хочу, чтобы моя инсталляшка не инсталлировалясь в любую папку (для того, чтобы не передирали мою работу), а только в определённую. Подскажите текст, чтобы инсталлятор проверял например наличие определённого файла (который я укажу) - если этот файл имеется в той папке куда происходит инсталляция, то соответственно все файлы инсталлируются, а если этого файла там нет - то инсталляция отменяется.


Это примитивная проверка, ненадо писать мне:"Твои файлы можно отследить с помощью такой-то проги."

Буду ОЧЕНЬ признателен. Ответ если можно пришлите на мыло sayrex_gs@tut.by
Автор: The Unforgiven
Дата сообщения: 22.01.2004 15:57
Inno Setup 4.1.1
http://files.jrsoftware.org/is/4/isetup-4.1.1.exe

Цитата:

- Added COM Automation object support
- The Select Destination Directory page of the wizard has undergone a facelift
- The Select Start Menu Folder page of the wizard has also undergone a facelift
- Compiler IDE improvements
- Changed the way the default font is determined
- A Browse button was added to the custom wizard page shown by support function InputDir
- Partial version numbers are now allowed in VersionInfoVersion
- Some messages have been added, changed, and removed in this version
- Based on Innerfuse Pascal Script 3 CVS code from 2004-01-21 00:00 GMT
- Minor tweaks
Автор: mr_eoi
Дата сообщения: 29.01.2004 14:53
Inno Setup 4.1.3
http://files.jrsoftware.org/is/4/isetup-4.1.3.exe

Цитата:
4.1.3 (2004-01-28)

Wizard images will now be stretched or shrunk if the wizard is larger or smaller than normal, e.g. if the user is running in Large Fonts. If you prefer the old behavior (centered or clipped images), set the new [Setup] section directive WizardImageStretch to no.
The folder browser now hides folders with both the hidden and system attributes set ("protected operating system files"), such as "RECYCLER".
In multi-monitor configurations, dialogs should now appear on the same monitor as the wizard.
The uninstall program's version is now 51.12.0.0.
Minor tweaks.
4.1.2 (2004-01-26)

The Select Destination Location and Select Start Menu Folder pages of the wizard have evolved further:
The lists of folders have moved into separate dialogs, accessible via Browse... buttons.
The directory and drive browsers have been replaced with a modern, Explorer-like tree control.
The list of existing Start Menu folders has likewise been replaced with a tree control. (Previously, you could only select top-level folders.)
Both dialogs feature Make New Folder buttons which make it easy to install to subfolders of existing folders. The icon of a "new" folder has a dimmed appearance, which indicates that the folder does not currently exist but will be created later.
The [Setup] section directive DisableAppendDir is now obsolete and is no longer recognized. (To install to a subfolder of an existing folder, use the Make New Folder button on the folder selection dialog.)
Updated the custom wizard page shown by support function InputDir to use the new Browse dialog and tree control. The first parameter to InputDir has been renamed from AppendDir to NewFolderName. (ML)
Added support classes TBitmap, TBitmapImage, TFolderTreeView and TStartMenuFolderTreeView. See the CodeClasses.iss example script for examples. (ML)
Added support object MainForm of type TMainForm. See the CodeClasses.iss example script for an example that places a TBitmapImage on MainForm. Note: MainForm is only visible if [Setup] section directive WindowVisible is set to yes. (ML)
Removed support classes TNewDirectoryListBox, TNewDriveComboBox and TNewPathLabel. (ML)
Added support function CurrentFileName which returns the destination name of the [Files] entry that is currently being processed. The returned name may include constants. Note: Do not attempt to call this function from outside a Check, BeforeInstall or AfterInstall event function belonging to a [Files] entry. (ML)
Compiler IDE: added an option to the Welcome dialog to open the Examples directory.
Fix: the CodeAutomation.iss example script was missing.
Some messages have been added, changed, and removed in this version. (View differences in Default.isl)
New messages: ButtonWizardBrowse, ButtonNewFolder, BrowseDialogTitle, BrowseDialogLabel, NewFolderName.
Changed messages: SelectDirLabel2, SelectStartMenuFolderLabel2.
Removed messages: ButtonBrowseOpen, ButtonBrowseClose.
Based on Innerfuse Pascal Script 3 CVS code from 2004-01-26 00:00 GMT.
Minor tweaks.
Автор: Widok
Дата сообщения: 03.02.2004 10:06
Руссификатор 4.1.3 от Alex(ALSP)
http://www.msilab.ru/show.php?rus=165
Автор: Farch
Дата сообщения: 10.02.2004 17:45
Inno Setup 4.1.4
http://www.jrsoftware.org/download.php/is.exe

4.1.4 (2004-02-08)

* Compiler IDE improvements:
o Added new Run | Terminate command.
o Now shows the exit code Setup returns.
* Setup now supports delay loaded DLLs in the [Code] section. See the CodeDll.iss example script for an example. (ML)
* Added new "Using DLL's" and "Using COM Automation objects" topics to the help file. (ML)
* Added a Microsoft IIS virtual dir creation example to CodeAutomation.iss. (ML)
* On [Registry] entries, constants may now be used in the ValueData parameter when ValueType is set to dword.
* Previously, it was possible to circumvent the destination and Start Menu folder name length limits by selecting a folder using the browser. Now it checks the length of the entered paths when Next is clicked.
* Fix: the COM Automation object support wasn't working for COM methods with more than 1 parameter.
* Some messages have been added in this version. (View differences in Default.isl)
o New messages: DirNameTooLong, GroupNameTooLong.
* Based on Innerfuse Pascal Script 3 CVS code from 2004-02-08 00:00 GMT.


QuickStart Pack 4.1.4
The Inno Setup QuickStart Pack includes additional third-party add-ons such as the ISTool script editor, Inno Setup Preprocessor and UPX compression. These add-ons are not official, have not been exhaustively tested, and are not required for general usage, but make Inno Setup easier to use, especially for new users. See the Third-Party Files page for more information.

When these add-ons have matured and proven to be stable, they might be incorporated into future releases of the standard Inno Setup version.
http://files.jrsoftware.org/ispack/ispack-4.1.4.exe
2004-02-08 1,463 KB
md5sum: c5693504c4f5395ca2cd5e0113a164ed
Автор: mr_eoi
Дата сообщения: 12.02.2004 06:49
Inno Setup 4.1.5
http://files.jrsoftware.org/is/4/isetup-4.1.5.exe
Size: 1,036 KB

Цитата:
4.1.5 (2004-02-11)

A new compression method has been implemented: lzma. LZMA is the algorithm that Igor Pavlov's excellent 7-Zip archiver uses by default. Typically it compresses at least 20% better than the existing bzip method. (By using LZMA compression, the installer for Inno Setup itself is now 150 KB smaller than before, despite the inclusion of two new DLLs!)
LZMA compression may activated using the Compression [Setup] section directive. For maximum compression, also set SolidCompression=yes. See the help file for full details.
Note: Since the support for LZMA compression is brand new, it hasn't undergone widespread testing yet. Use with caution in production installations.
Compiler IDE improvements:
Added new Build | Low Priority During Compile option. When checked, the IDE will run as a low-priority process during compilation, which helps prevent the compile process from monopolizing CPU resources.
Now shows an animated icon during compilation, as well as a progress bar that shows the percentage of files that have been compressed thus far.
The obsolete CompressLevel [Setup] section directive is no longer recognized by the compiler. Use Compression instead.
Minor tweaks.
Автор: RF
Дата сообщения: 22.02.2004 11:02
люди а есть у кого
HELP на русском для последних версии ?
если есть поделитесь пожайлуста
Автор: Farch
Дата сообщения: 23.02.2004 05:40
4.1.7 (2004-02-20)

On a disk-spanned installation, it now prefixes the current name of setup.exe when searching for the *.bin files. Previously, it prefixed the value of compile-time setting OutputBaseFilename, which meant that if you renamed setup.exe after compiling the installation, you couldn't also rename the *.bin files.
When UseSetupLdr is set to no, SETUP.0 is now named OutputBaseFilename-0.bin.
Fix: If a Flags parameter contained two or more consecutive spaces, flags after the consecutive spaces were ignored.
4.1.6 (2004-02-19)

Decreased the size of compiled installations by 80 KB or more with no loss of functionality:
Completely rewrote the LZMA decompression support to use the new, more compact LZMA SDK. This makes installations which use LZMA compression over 20 KB smaller.
LZMA compression is now used on Setup's internal structures instead of "zip" compression. This saves 60 KB or more.
Note that if you previously ran UPX on the *.e32 stubs, you shouldn't anymore because you will most likely wind up with a larger installation now.
The [Files] section now supports an Excludes parameter to specify a list of comma separated filename wildcards to exclude. (ML)
The [Files] section now supports a sortfilesbyextension flag to instruct the compiler to compress the found files sorted by extension befores it sorts by path name. This potentially decreases the size of Setup if the SolidCompression [Setup] section directive is also used. (ML)
The values accepted by the InternalCompressLevel directive have changed.
Compiler IDE: Smoother-moving progress bar when LZMA compression is used.
Some corner case MBCS support improvements.
Based on Innerfuse Pascal Script 3 CVS code from 2004-02-18 00:00 GMT.
The uninstall program's version is now 51.13.0.0.
Minor tweaks and fixes.

зы. не пора ли live-update встраивать....
http://www.jrsoftware.org/download.php/is.exe
Автор: mr_eoi
Дата сообщения: 26.02.2004 06:59
Inno Setup 4.1.8
http://files.jrsoftware.org/is/4/isetup-4.1.8.exe
Content-Length: 920333 (899 KB)

Цитата:
4.1.8 (2004-02-25)

Two new [Setup] section directives have been introduced:
AppendDefaultDirName, which defaults to yes and reintroduces the "AppendDir" behavior of Inno Setup 4.1.0 and earlier -- that is, when a new folder is clicked on the Browse dialog displayed by the Select Destination Location wizard page, Setup will automatically append the last component of DefaultDirName onto the new path.
AppendDefaultGroupName, which also defaults to yes and provides similar behavior for the Select Start Menu Folder wizard page.
The Compression [Setup] section directive now defaults to lzma. In almost all cases, lzma compresses better than the other supported methods. Previously, zip was the default. (ML)
Executable files are now compressed even better, thanks to a new encoding/decoding pass that optimizes x86 JMP & CALL instructions. The size of the installer for Inno Setup itself has dropped almost 50 KB due to this change.
On [Files] entries, the flags external and recursesubdirs may now be combined. (ML)
Livened up the Select Destination Location and Select Start Menu Folder wizard pages by adding icons to them.
Added edit boxes to the folder browser dialogs.
Some messages have been added and removed in this version. (View differences in Default.isl)
New messages: SelectDirLabel3, SelectDirBrowseLabel, SelectStartMenuFolderLabel3, SelectStartMenuFolderBrowseLabel.
Removed messages: SelectDirLabel2, SelectStartMenuFolderLabel2.
Minor tweaks.

Автор: Quattrod
Дата сообщения: 26.02.2004 15:18
прога - класс!

Цитата:
люди а есть у кого
HELP на русском для последних версии ?
если есть поделитесь пожайлуста

Тоже хочется. Может у кого есть?

Добавлено
Вот справка может кому пригодится?
http://freeware.rus21.ru/ftp.ware.ru/win/isetup.zip
Автор: ironwit
Дата сообщения: 04.03.2004 08:55
Ребята, можно ли написать скрипт, в котором проверить определенный ключ реестра и взависимости от результата установить или нет какое нить дополнительное приложение.

Заранее спасибо

Добавлено
Вопрос снят. Разобрался...
Автор: 4get
Дата сообщения: 24.03.2004 08:02
консольный распаковщик (в комплекте есть конфиг для FAR Manager + MultiArc)

Inno Setup Unpacker
Supports Inno Setup versions 3.0.0-beta through 4.1.8

Inno Setup is a popular program for making software installations. Unfortunately, it is one way - once made, there is no official method of getting the files from the self-extracting executable other than running it. One piece of software that addresses this issue is InstallExplorer, a plug-in for the FAR Manager that unpacks several types of installations, including those made by some older versions of Inno Setup (IS). It is no longer updated, and it does not work for IS versions 4.x.

Innounp is a little different: it is open source and it is based on IS source. Therefore, it is more likely to support future IS versions.

Homepage: http://innounp.sf.net
Download from: http://sourceforge.net/project/showfiles.php?group_id=102423
Forum: http://sourceforge.net/forum/forum.php?forum_id=353235
SF.net project page: http://sourceforge.net/projects/innounp/
Автор: The Unforgiven
Дата сообщения: 24.03.2004 13:51
4get
Спасибо огромное!

Добавлено
Просто супер
Автор: Farch
Дата сообщения: 26.03.2004 18:12
Inno Setup 4.2.0

4.2.0 (2004-03-19)

Changed the way Setup handles situations where a file already exists on the user's system and it has the same version number as the file being installed.
The new behavior: It now compares the contents of the two files, and replaces the existing file if they are different in any way. (The comparetimestamp flag has no effect.)
The old behavior: Before, it never replaced the existing file, except when the comparetimestamp flag was used and the existing file had an older time stamp.
The new behavior has two advantages:
If an existing file is partially corrupted, it will now be replaced. Previously, it compared only the version numbers and not the content of the files; as long as the version info portion of the existing file was intact, the file would not be replaced.
It is now less critical that you increment the version numbers of your executables with every release. Previously, if you forgot to increment a file's version number in a new release, that file wouldn't be replaced on the user's system (assuming you didn't use the ignoreversion flag). Now that it additionally checks the contents of the files, this is no longer an issue.
It's now possible to set the time/date stamps of installed files by using the new touch flag supported by the [Files] section, and the new [Setup] section directives TouchFileDate and TouchFileTime.
Improved the "auto-retry" feature of the [Files] section:
Now, it only automatically retries when an existing file cannot be replaced because it is in use (as opposed to retrying on every error condition, which wasn't very helpful).
It now retries on both silent on non-silent installs (as opposed to just silent installs).
This feature is now documented in the Remarks section of the [Files] section documentation.
Added a Languages subdirectory with official Dutch and German translations. (ML & Michael Reitz)
Added new Languages.iss and Components.iss example scripts. (ML, JR)
Now ensures file I/O error messages are always properly localized. Previously, certain rarely-encountered I/O error messages were fixed in English.
Now internally uses MD5 instead of CRC for file checksums.
Added support function GetMD5OfFile. (ML)
Based on Innerfuse Pascal Script 3 CVS code from 2004-03-19 13:00 GMT.
Minor tweaks.
Автор: vels
Дата сообщения: 04.04.2004 12:30
Inno Setup 4.2.1
http://files.jrsoftware.org/is/4/isetup-4.2.1.exe
(0.95Mb)
Автор: Widok
Дата сообщения: 10.04.2004 14:54
Русификатор InnoSetup Compiler 4.2.1 от Alex(ALSP)
http://msilab.ru/show.php?rus=165
Автор: SAVage22
Дата сообщения: 28.04.2004 02:56
Inno Setup 4.2.2

Цитата:
4.2.2 (2004-04-27)
Added support for file encryption: if [Setup] section directive Password is set, you can now enable 128-bit ARCFOUR encryption on your files by setting the new [Setup] section directive Encryption to yes. Thanks to Andrew Fiddian-Green for his initial work on this. (ML)
Note: Because of encryption import/export laws in some countries, encryption support is not included in the main Inno Setup installer and must be downloaded and installed separately. See the Inno Setup Downloads page for more information.
New [Files] section flag: noencryption, which prevents a file from being stored encrypted. Use this flag on an entry if you have enabled encryption but want to be able to extract the file using the [Code] section support function ExtractTemporaryFile before the user has entered the correct password.
Added a new NameAndVersion message to the [CustomMessages] section of Default.isl and all official translations.
Added official Catalan, Polish and Russian translations.
The LanguageName directive of the [LangOptions] section is now internally stored as a Unicode string. This allows languages of different code pages to displayed simultaneously and correctly in the Select Language dialog's combo box on NT-based platforms. To embed Unicode characters, use "<nnnn>", where "nnnn" is the 4-digit hexadecimal Unicode character code. You can find Unicode character codes of characters using the Character Map accessory included with Windows 2000 and later.
The [LangOptions] section now supports a new directive: LanguageCodePage. By default, languages whose code page does not match the active code page of the user's system will not be presented as an option in the Select Language dialog's combo box. The goal of this is to hide languages that can't be displayed properly on the user's system. For example, Russian text can't be displayed properly unless the code page is 1251, so there is little reason to list Russian as an option if the system is running in a different code page.
If you wish to restore the old behavior -- that is, show all languages regardless of the active code page -- add the following lines to your script:

[LangOptions]
LanguageCodePage=0
The log file (/LOG) now shows the date/time stamps of files.
Based on RemObjects Pascal Script SVN code revision 898. See the RemObjects Pascal Script announcement for more information about the name change of Innerfuse Pascal Script. (ML)
Minor tweaks.

download.
Автор: SAVage22
Дата сообщения: 21.05.2004 03:55
Inno Setup 4.2.3

Цитата:
4.2.3 (2004-05-20)
New flag supported by the [Components] and [Tasks] sections: dontinheritcheck, which specifies that the component/task should not automatically become checked when its parent is checked.
Added support function MakePendingFileRenameOperationsChecksum. (ML)
The components and tasks list boxes now include support for Active Accessibility. This should make it possible for MSAA-aware screen readers (including Windows' Narrator) to determine the types of items and whether they are checked.
Compiler: Decreased memory requirements and improved speed when compiling scripts containing tens of thousands of files.
Fix: Uninstaller: When administrative privileges are required for the uninstall and the user doesn't have write permission to the program directory, display OnlyAdminCanUninstall message instead of "Access denied".
Fix: When using InstExec() on version 4.2.1 and 4.2.2, the focus in some cases didn't return to Setup after the spawned program terminated.
Fix: Fixed problem reported by Rich B in "Error on reboot - File Not Found" thread on newsgroup, 2004-05-14.
Fix: Compiler IDE: Work around Windows 9x WM_COPYDATA bug that may have resulted in a fatal page fault error while debugging.
The compiler now flags two more DLLs as "unsafe": URLMON.DLL and WININET.DLL.
Added official Portuguese (Standard) translation.
Minor tweaks.

download mirror
Автор: Farch
Дата сообщения: 21.05.2004 12:49
господа , кто знает как добавить LIVE UPDATE к inno setup ? или заявить о его добаве разработчику. сервис указанный на оффсайте - не работает. регистрируюсь и он говорит что у меня нет прав для добавления нового топика.
Автор: mr_eoi
Дата сообщения: 26.05.2004 16:09
All
Обновился распаковщик InnoSetup инсталляций (вплоть до версии 4.2.2)
http://sourceforge.net/projects/innounp/
Автор: mr_eoi
Дата сообщения: 01.06.2004 21:57
Inno Setup 4.2.4
_http://files.jrsoftware.org/is/4/isetup-4.2.4.exe
Content-Length: 1017863 (995 KB)

Цитата:
4.2.4 (2004-06-01)

The uninstaller now does all DLL/TLB/font unregistration in a separate step before any files are deleted. Previously, each file was unregistered just before it was deleted.
Added new [Setup] section directive AppModifyPath which enables you to display a separate "Modify" button in the Add/Remove Programs Control Panel applet in Windows 2000/XP. (ML)
Added new [Setup] section directives AppComments, AppContact and AppReadmeFile which are all used for display purposes on the "Support" dialog of the Add/Remove Programs Control Panel applet in Windows 2000/XP. (ML)
Added new event function: GetCustomSetupExitCode. (ML)
Added new support functions: RegGetValueNames, RegDeleteKeyIncludingSubKeys, RegDeleteKeyIfEmpty, RegDeleteValue and CoFreeUnusedLibraries. (ML)
The automatic Windows File Protection checking introduced in 4.2.1 is no longer done on Windows Me. Two Me users reported that this made the file extraction part of the install process (where SfcIsFileProtected was called) dramatically slower. I have no idea why; I could not reproduce the slowness in my tests on Windows Me. Nevertheless, it's been disabled on Windows Me. It wasn't important anyway.
CodeClasses.iss wouldn't compile in 4.2.3 due to changed TNewCheckListBox function prototypes. Fixed.
The uninstall program's version is now 51.14.0.0.
Minor tweaks.

Автор: Cyber78
Дата сообщения: 09.06.2004 13:24
Подскажите как создать что то типа нескольких Radio Button, в зависмости от выбора писать в реестр то или другое ?
Автор: mr_eoi
Дата сообщения: 15.06.2004 05:01
Inno Setup 4.2.5
_http://files.jrsoftware.org/is/4/isetup-4.2.5.exe
Content-Length: 998001 (975 KB)

Цитата:
4.2.5 (2004-06-14)

[Setup] section directive AppId may now include constants. If you use a {code:..} constant to allow your user to customize AppId, you do not need to return the real value until just before the installation starts: if necessary you may return an empty or generic value at earlier times. If not empty, this value will only be used to attempt to restore previous install settings (like the settings stored by [Setup] section directive UsePreviousAppDir). If empty, it isn't used for anything. (ML)
If AppName includes constants, it will now again be used as the default for AppId just like before 4.2.1 when AppName didn't support constants yet. (ML)
Removed support for the obsolete zip compression algorithm. This decreases the size of compiled installations by about 6 KB.
Setup now displays task group descriptions in the Ready to Install memo too. (ML)
New flag supported by the [Files] section: nocompression, which prevents the compiler from attempting to compress the file. Use this flag on file types that you know can't benefit from compression (for example, JPEG images) to speed up the compilation process and save a few bytes in the resulting installation.
New flag supported by the [Files] section: dontverifychecksum, which prevents Setup from verifying the file checksum after extraction. Use this flag on files you wish to modify while already compiled into Setup. If used, must be combined with nocompression. (ML)
New [Setup] section directive MergeDuplicateFiles, which replaces the confusingly-named DontMergeDuplicateFiles directive.
Setup now supports a /PASSWORD= command line parameter. (ML)
Note: if you have a CheckPassword event function and your users run Setup with both the /PASSWORD= and /SILENT command line parameters set, your CheckPassword function will be called *before* any other event function is called, including InitializeSetup.
The uninstaller now supports a /VERYSILENT command line parameter just like Setup. /VERYSILENT does the same as /SILENT but additionally hides the progress window and reboots when necessary without asking (unless /NORESTART is also used). (ML)
Setup now supports a /RESTARTEXITCODE= command line parameter. (ML)

Replaced support functions GetTimeString, GetDateString and GetDateTimeString with a single extended version of GetDateTimeString. (ML)
Changed the prototype of support function ScriptDlgProcessCustom to: function ScriptDlgPageProcessCustom(ActivateControl: TWinControl): Boolean;. If not nil, focus will be initially set to ActivateControl. See the CodeClasses.iss example script. (ML)
Compiler IDE: you can now drag and drop files and directories onto the Application Files listbox of the New Script Wizard. (ML)
Based on RemObjects Pascal Script SVN code revision 916.
The uninstall program's version is now 51.15.0.0.
Minor tweaks.


Добавлено
Cyber78
Попробуй воспользоваться Inno Setup Form Designer
Автор: mr_eoi
Дата сообщения: 22.06.2004 17:19
Inno Setup 4.2.6
_http://files.jrsoftware.org/is/4/isetup-4.2.6.exe
Content-Length: 1011045 (988 KB)

Цитата:
4.2.6 (2004-06-19)

Brought back the zip compress algorithm, this time in an external DLL like bzip to keep the ~6 KB savings.
Minor tweaks.

Автор: SAVage22
Дата сообщения: 28.06.2004 04:21
Inno Setup 4.2.7

Цитата:
4.2.7 (2004-06-27)
Fix: The [Files] section's nocompression flag disabled compression but not the EXE "call instruction optimization" algorithm. Now it does.
Fix: The LZMA decompressor would raise a bogus error with streams larger than 4 gigabytes in size. (The other compression algorithms did not exhibit this problem.)
Fix: During installation, it now processes input events while seeking backwards in a solid chunk.

_http://thematrix2050.bei.t-online.de/isetup-4.2.7.exe
_http://inno.das-netz-werk.net/isetup-4.2.7.exe
Автор: Widok
Дата сообщения: 15.07.2004 18:08
Inno Setup 5.0.0 Preview
http://files.jrsoftware.org/is/5/issrc-5.0.0-beta.zip

Latest Changes:

Цитата:
Pascal Scripting at uninstall time
All-new, easier-to-use custom wizard page support
Expression support in Components/Tasks/Languages/Check
Smaller compiled installation size than 4.x
Автор: Cyber78
Дата сообщения: 17.07.2004 14:05
mr_eoi
Благодарю
Автор: mr_eoi
Дата сообщения: 29.07.2004 02:03
All
Обновился распаковщик InnoSetup инсталляций (вплоть до версии 5.0.0 beta)
http://sourceforge.net/projects/innounp/

Widok
По твоей ссылке качаются исходники.
Собранная бета здесь:
_http://files.jrsoftware.org/is/5/isetup-5.0.0-beta.exe


Цитата:
5.0.0-beta (2004-07-14)

The size of compiled installations has decreased by 22-26 KB from Inno Setup 4.2.7, primarily due to the merging of Setup and Uninstall into a single binary.

Pascal Scripting can now be used to customize Uninstall:

Added Uninstall specific event functions InitializeUninstall, DeinitializeUninstall, CurUninstallStepChanged and UninstallNeedRestart.
Added support functions IsUninstaller and UninstallSilent.

Furthermore, the compiler IDE now supports Uninstall debugging. To debug Uninstall, first run Setup from the IDE, install your application, select Target Uninstall in the Run menu and finally use the debugger functions as normal.
See the help file and the UninstallCodeExample1.iss example script for more information.


The custom wizard page support has been completely redesigned from the ground up. The new design uses an event-driven model just like standard wizard pages; no longer do you have to write complicated loops to handle sequences of custom pages.
Any existing code utilizing custom wizard pages will need updating; all of the old functions have been replaced. Please see the new Using Custom Wizard Pages topic in the help file and the CodeDlg.iss and CodeClasses.iss example scripts for examples of how to use the new custom wizard page model.


Besides space separated lists, you may now also use boolean expressions as Components, Tasks, Languages and Check parameters. Supported operators include not, and, and or. For example:
[Components]
Name: a; Description: a
Name: b; Description: b

[Tasks]
Name: p; Description: a or b; Components: a or b
Name: q; Description: a and b; Components: a and b
Name: r; Description: not a or b; Components: not a or b
Name: s; Description: not (a or b); Components: not (a or b)
Name: t; Description: a or b - old style; Components: a b
This syntax of function parameters in Check, BeforeInstall and AfterInstall parameters has changed to allow a list of multiple, comma separated, parameters and the use of Integer and Boolean parameter types besides String types. For example, you may now use:
[Files]
Source: MyProg.exe; DestDir: {app}; Check: MyCheck(1, True, 'Some text')

[Code]
function MyCheck(I: Integer; B: Boolean; S: String): Boolean;
begin
Result := (I > 0) and B and (S <> '');
end;

Also, there's one support function that may be called from within a parameter list: ExpandConstant. For example:
[Files]
Source: MyProg.exe; DestDir: {app}; Check: MyCheck(1, True, ExpandConstant('{app}'))

Existing scripts using function parameters will need to be updated.


The functions specified by {code:...} constants and by Check, BeforeInstall and AfterInstall parameters may now refer to support functions too, for example:
[Components]
Name: adminonly; Description: My Admin Only Component; Check: IsAdminLoggedOn

[Files]
Source: MyProg.exe; DestDir: {app}; BeforeInstall: Log('About to install MyProg.exe')
Source: MyProg.hlp; DestDir: {app}\Help; Check: DirExists(ExpandConstant('{app}\Help'))

[INI]
FileName: {app}\MyIni.ini; Section: MySettings; Key: ShortApp; String: {code:GetShortName|{app}}
FileName: {app}\MyIni.ini; Section: MySettings; Key: AppDrive; String: {code:ExtractFileDrive|{app}}
Wizard-related event functions such as NextButtonClick are now called on silent installs as well. In fact, silent installs now function almost identically to non-silent ones with the exception that the Next button is automatically "clicked".
Logging improvements:
The filenames of programs spawned in the [Run] section are now logged.
The /LOG parameter is now also supported by Uninstall, which causes Uninstall to create a log file in the user's TEMP directory detailing file uninstallation and [UninstallRun] actions taken during the uninstallation process. This can be a helpful debugging aid. See the Uninstall Command Line Parameters topic in the help file for further details.
A new ShouldSkipPage event function has been added, which replaces SkipCurPage. Existing scripts that contain a SkipCurPage function will need to be updated. Note that unlike the old SkipCurPage event function, the page passed to the ShouldSkipPage function is not the current page.
Added support function Abort. Calling Abort throws an exception to abort the current operation. It does not terminate Setup or Uninstall unless it's still starting up.
When extracting a file, Setup now pre-allocates all of the bytes in the destination file on disk. This allows the system to know what the final size of the file will be before extraction begins, and avoid fragmenting it.
The compiler now fully supports script files that use Unix-style line breaks (LF only).
The Setup section directive UninstallIconFile is now deprecated and ignored. As Setup and Uninstall have been merged into a single executable, setting a custom icon for Uninstall is no longer possible.
The Setup section directive UninstallStyle is now deprecated and ignored. Only the "modern" uninstaller style is supported now.
Based on RemObjects Pascal Script SVN code revision 933.
The uninstall program's version is now 51.30.0.0.
A very large number of minor tweaks.
This version is derived from Inno Setup 4.2.7, and therefore includes all of the features and fixes from that version.

Автор: vse
Дата сообщения: 29.07.2004 14:09
Помогите написать код, который бы проверял пустая ли папка в которую устанавливается программа и если там что-то есть, то все это удалял. Похоже штатными средствами это не сделать, а код на паскале написать не получается.

Да, можно упростить код, чтобы удалась вся папка целиком куда копируются файлы, а потом создавалась снова и файлы уже копировались бы в чистую папку.

Спасибо.

Автор: feandy
Дата сообщения: 29.07.2004 15:23
vse
Попробуй типа

function InitializeSetup :Boolean;
begin
if DirExists(Name) then
DelTree(Name, True, True, True);
end;

Либо именуй процедуру по своему а у первого устанавливаемого файла добавляй
в хвосте BeforeInstall
[Files]
Source: "MYPROG.EXE"; DestDir: "{app}"; BeforeInstall: MyBeforeInstall

[code]
Procedure MyBeforeInstall;
begin
if DirExists(ExpandConstant('{app}')) then
DelTree(ExpandConstant('{app}'), True, True, True);
end;

Страницы: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172

Предыдущая тема: ICONS


Форум Ru-Board.club — поднят 15-09-2016 числа. Цель - сохранить наследие старого Ru-Board, истории становления российского интернета. Сделано для людей.