Making the mounting distribution program of the program
If You have solved to concern with spreading of their own programs then without mounting distribution program not to dispense. At present practically all program have инсталлятор, usually he is identified Setup.exe. In this article we shall consider on example, what collect инсталлятор for application Access and shall analyse some particularities, which necessary herewith to know.
As was it already spoken earlier, Access does not allow to do the performed file, capable to work without Access. But in ditto time, Microsoft offers for decision of the problem to use the package Microsoft Office Developer, in composition which enters and license of spreading the program Microsoft Access runtime. Ostanovlyusi on this in detail.
The Program Microsoft Access runtime this version Access, which allows the user to execute, but not to modify application Access. Install Microsoft Access runtime there is sense instead of full version in that event only, when needs the license purity, but beside client, beside which is performed Your base, no license of Access. In this case come to buy ODE (Office Developer Edition). Then together with his(its) buying You get some additional instruments and most main RIGHT to install the client together with designed by you base else and Run-time versions Access. In this case to client not will притензий on cause of the illegal use Access. Otherwise each client necessary to buy the license MS AАccess.
In package ODE enters "creator distribution program" which comprises of диистибутив Your MDB and Run-time version. All libraries required for making Run-time already there is in full version Access (even without ODE). But here there is one BUT (this for that, who disturbs license "чиcтота"):
If You his(its) do not bathe officially then beside client don't care will not be a right to use even Run-time version.
Can appear such thought: But that if hear what files need Access for functioning(working) and include them in mounting distribution program? Possible, but this does not solve the problems with license. Additionally come to create it is enough complex program of the installation with check available component and installation/registration отсутсвующих. Moreover in the last case possible under bumbling action even to destroy the system.
In general if consider the real situations with sale of applications on Access, that only a few developers (the question is Russia) really buy the license packages. As a rule this that, for who "under determined level of the development of the business question to buy - not to buy loses its urgency" - or dialect more simply, who can itself to allow to buy the license package for 600$ - 1000$. Interesting afterwards listen to their чертыхания on forum on cause of the functioning of such programs. Insofar I have understood there same most "jambs", as in pirate version. So call You to use only free or pirate versions Office for Your programs I not shall, but also recommend to use license too did not become (refer to above).
Interesting that get fat version Access possible to start in runtime mode, having assigned in command line key /runtime. For instance, create on worker table label, кликнете on him right button mouse, in appeared dialogue window in field object write approximately so: (this for Office 2000 XP, but for 2003 it is necessary will correct instead of Office10 - Office11)
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" "D: \BAZE\MY Base.mdb"/runtime
but in field Worker file:
"D: \ Base "
Now we shall start exhibit through this label. It Is Opened window of the project Access, but label Access, but in the same way standard panels instrument already there not will. This and there is runtime mode.
For beginning developer spreading exhibits Access through package Microsoft Office Developer hardly acceptable. After all he cost(stand)s the money, and not small. We shall consider other way, with the help of free инсталлятора Inno Setup. There is certainly and other as pay, for instance InstallShield, so and free инсталляторы. Differ they on comfort of the work, size created дитсрибутива.
Inno Setup liberally spread инсталлятор for programs Windows. The English to versions appeared as far back as 1997, now Inno Setup is translated on several languages, but инсталляторы can create more then on 20 languages. Inno Setup exceeds many commercial инсталляторы on possibility, stabilities and size of the created files.
The Main features:
- program can compare information on versions of the file
- move used files
- register DLL/OCX/FNT/TLB and standard libraries
- install fonts
- checks, active determined program
- creation label quick access (for instance, through start-menu or on worker table)
- realization record in ini-files
- built-in machine for writing скриптов on language Pascal
- supports much language installations
- installation and deinstallation by default
- whole code available (Borland Delphi 2.0-5.0)
- protection of the password for setup
- in the event of cancelling during performance, all actions will were provided in source condition
- supports all 32-h битные to versions Windows (95, 98, 2000, 2003, XP, Me, NT 4.0)
- creates creation of one file exe that vastly relieves process to installations of Your program
- standard interface Windows 2000/XP
- it is oriented on user (for instance, full, minimum, user variant)
- all instruments for деинсталяции
- installing the files: built-in support "deflate", bzip2, 7-zip LZMA files of the compression
In the same way as from versions 2.0.6 Inno Setup comprises of itself get fat support for MBCS. In more early versions last characteristic does not enter. But here is Web-installation does not support.
The Particularity of the creation инсталлятора in Inno Setup this that инсталляторы at скриптов - a simple text files ASCII, reminding .INI files. Skripty to edit easier, than, for instance, work with interface Installshield. Skripty have an extension ".iss" (inno setup script). In he is indicated all parameters инсталлятора, and when installing, program associates itself with these file. Skript is divided into sections, which name are written in square bracket []. Inwardly, the section exist the keywords and instructions, which compiler can read and execute.
The Commentary begin with semicolon at the beginning initially line and can be in any place violin. Komentarii block not possible, as however and entry коментария in medium of the line. The Last is allowed by compiler, but впоследтвие, when performing, leads to error.
; -- Sample1.iss --
; Demonstrates copying 3 files and creating an icon.
The Order section does not matter. All of these (with the exclusion of [Setup]) are free. The Keyword importance is assigned at equal sign (=).
The Instructions consist of one or several parameters and their option, as well as flag flags. The Parameter in turn consists of name, for which follows the colon : and importances. The Parameters, options and flags are separated friend from friend semicolon ;
read hereinafter >>
Author: Admin
Size: 510 kB
It Is Added: 07.02.2007