Wise Solution
Date: 2003-7-8
Sendant: Cadinfo
About: Wise Installation System - Professional Edition
Wise installation system is what I don't want to introduce it. I know it for half an hour on it. You can also download it from all well-known websites of China. I have not done any cracks, it seems to be installed. Can use, don't have to consider registration or not, at least I didn't find any form of restrictions during use!
However, reminding: Try not to use the domestic production of Chinese, do not know what is the reason, and the Chinese package is also installed, watching the total twists, but the main thing is not smooth! The Chinese author does not have time to do a complete test, just translating various forms of resources.
Don't start with everyone, I will give you this document so that you can use or want to know what Wise installed and produced with a head, maybe there will be a function of throwing jade! Friends who are familiar with Wise can also give me mail cadinfo@263.net, discuss each other!
Thanks to friends on 9CBS, it is the unknown friend on these networks, gave me a lot of inspiration, so I am interested in completing Wise exploration!
In the rumor, first we discuss the question, why should I use Wise:
When you have completed the software, you may show your smile J and slow, you still have an important thing that you have not finished, do you have to release this, isn't this STREAKING? When your application uses a database, your release will not give the script to the customer, so that development details are not legacy, and not every user is familiar with the establishment of the library operation, so you must make a installation package for your software. Let customers enter some configuration or login information, enter the use, and enter the usage.
When you open a Wise Installation System, you will find that this installation software is very easy to get started. If your software is just a copy of the file group, then a few minutes of things can complete the production of the installation package. So here I jump this simple process, directly telling me that I have experienced the experience in the process of automatically generating the database installation package.
Due to the limitations of the scripts provided by Wise, use scripts that cannot complete the installation library; however, Wise provides the call to the DLL function, so I will generate it, why not use the development of yourself Language to generate a DLL, use the interface function to complete the construction library work, what you need to pay attention to during the reservoir process is: 1. Scripting files cannot exist in the form of file. Cause: The establishment library is completed in the client, will build a library script The file form is tapped to tell the customer how your database is arranged. All of your triggers and stored procedures become transparent; 2. You need to enter the database login method, no login permissions are not a way to generate you in the customer's SQLServer In the database, so you must customize the dialog to provide the user interface.
I have this two ideas, I will further explain how to use the DLL to complete the interface function of the library. DLL Export Functions You can refer to MSDN, very simple, you can use __Declspec (dllexPort) to modify the function to make it a function that can be called outside, or you can use the DEF definition to be implemented, it is worth reminding, Wise Manual When you use an external function, you must declare the function call rule as __stdcall or callback. We can use the ADO database engine to complete the establishment library, add the following code to the pre-edged head file of your DLL project: #pragma Warning (Disable: 4146)
#import "x: / program files / common files / system / ado / msado15.dll" no_namespace rename ("eof", "adoeof")
#pragma Warning (Default: 4146)
Complete the support of ADO, you can customize your own laundry function, for example:
Const Short / * __ stdcall * / callback fnbuilddb (const short sec = 1, const char * server = "localhost", const char * uid = "sa", const char * pwd = "", char * retmsg = "install bag" );
After that we complete the function of this function:
Steps are divided into the following 5 steps:
1. Determine if the client is installed in SQLServer, and if the SQLServer version is acceptable;
2. Initialize the COM object, initialize the ADO use environment;
3. Create a connection string based on the incoming parameters, create an ADO connection object;
4. Read the resource resource, decrypt, use the istRStream object to complete the establishment of the library script;
5. Turn off the connection and close the COM object.
After the completion of the library function, we can create a settlement script in Wise.
Similarly, you can first determine the installation of SQL Server first, then install your Jian Library DLL to the target machine, call FnBuildDb to complete the installation of the client database, in which the process of return information monitoring is available, you You can judge the return code. If an error occurs, then use the Wise's Display Message script to provide users with an error.
Ok, this article only provides a idea of using Wise to make an automatic construction library under Windows 2000, does not provide a complete source code, I hope this idea can bring power to friends who are interested. For example, set a lamp, let you go to your light, and not bring you to your face, the road is still to walk J!
Time-time, the article is written, and the netizen pointed.
(Reminder: If you make an installer under the .NET Framework, it is simple. VS.NET provides the installer production package, you can use it to complete the production of the lathe installation package, however do not develop in 2000 system Relying on .NET software, there is no need, so I will have the same function here, I hope this DLL extension method can bring to the bright road)
Cadinfo