Gui, Show, x131 y91 h185 w470, Winzip Location ![]() Gui, Add, Button, x336 y67 w110 h25 +Center, Browse. Gui, Add, Text, x26 y17 w420 h40 +Center, Browse for the location of %MyGuiMessage% Ĝreates a GUI interface with the right predefined variables (this is an included file) MsgBox WinZip® 10.0 has been successfully installed! WinWaitActive WinZip (Evaluation Version) WinWaitActive WinZip Setup, Thank you for installing this evaluation version WinWaitActive WinZip Setup, WinZip needs to associate itself with your archives WinWaitActive WinZip Setup, &Express setup (recommended) WinWaitActive WinZip Setup, switch between the two interfaces WinWaitActive WinZip Setup, Quick Start Guide WinWaitActive WinZip Setup, WinZip features include WinWaitActive WinZip Setup, into the following folder UrlDownloadToFile, %loc%, %folder%/winzip100.exe QResult := CheckMD5(md5, path, FailureMsg, Title) It is suggested that you cancel this install and find another location to download winzip100.exe. DllCall("FreeLibrary", "UInt", hModule) It is best to unload the DLL after using it (or before the script exits).įailureMsg = I'm sorry, the MD5 hash check has failed, meaning your file is invalid. FileAppend, %md5sum%`t%A_LoopFileFullPath%`r`n, %Path%\MD5Sums.txt DllCall("MD5Lib.dll\hexMD5", "str", md5sum, "str", A_LoopFileFullPath) hModule := DllCall("LoadLibrary", "str", "MD5Lib.dll") Avoids the need for DllCall() in the loop to load the library. FileAppend, %md5sum%`t%Path%`r`n, G:\Documents and Settings\Kerry\Desktop\MD5Sums.txt ![]() #Include gui.ahk Gui screen asking for folder or file nameĬheckmd5(md5, path, failure, title) Compares md5 to a fileĭllCall("MD5Lib.dll\hexMD5", "str", md5sum, "str", Path) MyGuiMessage = the folder you would like WinZip® 10.0 Setup to be downloaded to MsgBox 4, Download WinZip® 10.0 Setup, Would you like to download WinZip® 10.0 Setup? If not, it will assume you have already done so. SendMode Input Recommended for new scripts due to its superior speed and reliability. #NoEnv Recommended for performance and compatibility with future AutoHotkey releases. WinZip® 10.0 automated download and install. ini file so that people can change certain values if they want. In the final version, it will probably have more includes so that you can just include a script and this one file is very easily changed. ![]() ![]() I'm really looking for suggestions and comments, especially in regards to making this a more universal thing (so that it's actually useful and the general script can be reused. It includes and MD5 check to make sure its the right version of the program. This script will download (if you want) and install winzip, or you can specify a location on your harddrive of the file. and I've stopped eating, sleeping & working since I've downlaoded this program (ok, not completely, but its very hard to drag me away from the computer)Īnyway, I spent a lot of time with this program, not because it was hard to do but I plan on making many more installation files, and I wanted something that I could easily edit and that would work everytime, and I just happened to use Winzip for my first one because AutoIt had an example to do it, which I editted slightly. Hey, I got this program about a day and a half ago while looking for something to do macros.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |