Originally posted by zh159 at 2007-3-7 14:13:
The file links in the IE interface window generated by VBS can only use absolute addresses, so it is not very suitable to use multiple html files to form the interface
Your interface seems to require each selected software to go through a separate ...
My installation is made with BAT + VBS + HTML. Because the code I provided is the VBS code generated by BAT, of course there is no content of BAT. VBS will return the result to BAT, and then use BAT + RAR to decompress and install or directly call the EXE program.
There are 4 installation methods I provided. The first one is the conventional method, which can not only be used to install green software, but also install ordinary EXE files. If it is a green software compressed by WINRAR or 7ZIP, it will be directly decompressed, and finally the
GSETUP.BAT in the installation directory (indicating the batch processing program of each green software) is executed to complete the installation; the second one only installs the specially made WINRAR compressed package. How is it special? In fact, it is to automatically call the GSETUP.BAT inside when decompressing the green software when compressing the green software, so as to simplify the installation process. Most of my green software is in this mode, which is relatively convenient. It can be installed manually or use the RAR command to decompress and install. The third method means to repair the installed green software. The reason is very simple. If the system is reinstalled, the original green software can not be used anymore, then this repair function can be simply used, and the GSETUP.BAT existing in the specified directory is automatically traversed and executed. The fourth one is to directly traverse the
UINSTALL.BAT in the specified directory to delete the green software. Because my title is "
One-click Installation Manager", so all operations reflect this theme, and the user does not need to participate too much.
If the InStallList.txt file exists in the program directory, the program will automatically call the file and list it on the IE interface for the user to choose. If it does not exist, I provide two options. One is to directly traverse all EXE, RAR, 7Z files in the directory, and automatically add the installation instructions of the software according to the comments of the compressed file (it needs to be set well when making the compressed file). If not, keep it as an empty table; the other is to provide a button to make the installation script. The user can directly click to generate and automatically generate the InStallList.txt file according to the comments of the compressed file, then the user can modify the installation instructions in InStallList.txt, and the speed will be greatly improved when reloading.
The purpose of making this program is because I am a computer administrator. I not only often install programs for the company (many large programs such as OFFICE and so on I have made into green versions), but also often install programs for colleagues and friends. Then I wrote this program, and installing software has become very simple. Just copy all my green software over, and the user can install it by himself, without me running around.
Thank you, Brother ZH, for your great support. Ask, I am not satisfied with only the interface now. Is there really no way to solve it? To fix the head and tail, can it be realized by the method of
13th floor? This is the code given by others, but no matter how I do it, it doesn't work. Is there any other way? Can I use IFRAME? Because as long as I put the
IFRAME in the middle, set the appropriate height and width, and don't care about the head and tail, so it should be realized, but I don't know how to do it?
In the process of making this program this time, since I basically have no contact with VBS and HTML before, it is relatively difficult. In the process of learning your program, I found a lot of interesting things, and through continuous simulation and testing, I found the following things are very useful: >>%Temp%\Temp.vbs echo Wscript.Echo .IPATH.value is not easy to use, then I can modify it to >>%Temp%\Temp.vbs echo Wscript.Echo "SET IPATH="+.IPATH.value That is to say, when using Wscript.Echo to return the variable to CMD, I can directly attach the syntax and commands of CMD. In this way, when using the FOR statement to obtain the variable, there is no need to carry out in different situations. Just use for /f "delims=" %%i in ('"cscript //nologo %Temp%\Temp.vbs"') do ( CALL %%i) A sentence can be easily done. I found that commands such as GOTO, ECHO, etc. can all be attached to Wscript.Echo. When making the HTML page, give the check box, option group, etc. the same name, and then use FOR to loop and detect very conveniently and effectively.
In addition, referring to your program, I found that it directly generates the HTML file in memory. If this is the case, then using FRAME or IFRAME to call in the memory address (I checked the help, it is said that it can be connected or anchored through the relative address), it seems quite difficult; and the DEBUG assembly program that generates the background is very interesting, I don't know what the principle is.
[
Last edited by HUNRYBECKY on 2007-3-7 at 10:22 PM ]