Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add more build scripts/installer for Windows |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6bcea97d9bbb89bba306330715c19389 |
User & Date: | kevin 2016-04-07 03:13:31 |
Context
2016-04-07
| ||
11:30 | Update Windows build check-in: f0f1578713 user: kevin tags: trunk | |
03:13 | Add more build scripts/installer for Windows check-in: 6bcea97d9b user: kevin tags: trunk | |
2016-04-06
| ||
03:39 | Clean up indentation in c file check-in: dbc5b70080 user: kevin tags: trunk | |
Changes
Changes to build.bat.
︙ | ︙ | |||
20 21 22 23 24 25 26 27 28 | call xcopy scriptlibs dist\QuickWho\tcl\tk8.6 /s /i /y call xcopy winlibs dist\QuickWho\tcl\tk8.6 /s /i /y ::call xcopy msgcat dist\QuickWho\tcl /s /i /y call xcopy C:\Strawberry\c\bin\*.dll dist\QuickWho\ call xcopy QuickWho.exe dist\QuickWho\ call xcopy QuickWho.py dist\QuickWho\ call xcopy ToolTip.py dist\QuickWho\ | > > > > > | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | call xcopy scriptlibs dist\QuickWho\tcl\tk8.6 /s /i /y call xcopy winlibs dist\QuickWho\tcl\tk8.6 /s /i /y ::call xcopy msgcat dist\QuickWho\tcl /s /i /y call xcopy C:\Strawberry\c\bin\*.dll dist\QuickWho\ call xcopy QuickWho.exe dist\QuickWho\ call xcopy QuickWho.py dist\QuickWho\ call xcopy ToolTip.py dist\QuickWho\ rmdir C:\Users\kevin\Desktop\quickwho\dist\QuickWho\Doc rmdir C:\Users\kevin\Desktop\quickwho\dist\QuickWho\Scripts rmdir C:\Users\kevin\Desktop\quickwho\dist\QuickWho\Tools |
Added install.bat.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | @echo off ::configure and install app files set install_dir="%appdata%\QuickWho_App\" set config_dir="%appdata%\QuickWho\" set config if not exist %install_dir% ( mkdir %install_dir% ) if not exist %config_dir% ( mkdir %config_dir% ) call 7za x quickwho.zip xcopy bin %install_dir%\bin /s /i /y xcopy lib %install_dir%\lib /s /i /y xcopy quickwho %install_dir%\quickwho /s /i /y copy /Y uninstall.bat %config_dir%\ copy /Y quickwho.ico %config_dir%\ ::test for key, add to registry reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe" if errorlevel 0 ( reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe" /f ) reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe" /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe" /ve /d "%appdata%\QuickWho_App\quickwho\QuickWho.exe" /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "DisplayIcon" /t REG_SZ /d "%appdata%\QuickWho\quickwho.ico" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "DisplayName" /t REG_SZ /d "QuickWho" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "InstallLocation" /t REG_SZ /d "%install_dir%" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "Publisher" /t REG_SZ /d "WordTech Communications LLC" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "InstallDate" /t REG_SZ /d %DATE% reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "Version" /t REG_SZ /d 6.0.0 reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "UninstallString" /t REG_SZ /d "cmd /c %appdata%\QuickWho\uninstall.bat" ::add to start menu set startdir="%appdata%\Microsoft\Windows\Start Menu\QuickWho\" if not exist %startdir% ( mkdir %startdir% ) cd %startdir% ::mklink /H QuickWho.exe "%appdata%\QuickWho_App\quickwho\QuickWho.exe" echo Set oWS = WScript.CreateObject("WScript.Shell") >%temp%\link.vbs echo sLinkFile = "QuickWho.lnk" >> %temp%\link.vbs echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %temp%\link.vbs echo oLink.TargetPath = "%appdata%\QuickWho_App\quickwho\QuickWho.exe" >> %temp%\link.vbs echo oLink.Save >> %temp%\link.vbs call %temp%\link.vbs del %temp%\link.vbs cd C:\Users\%username%\Desktop echo Done. |
Added makeinstaller.bat.
> > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 | call 7za a quickwho.zip .\dist\* iexpress /n quickwho.sed set VERSION="6.6.0.0 (%date%)" set FILEDESCR=/s desc "Installer for QuickWho" set COMPINFO=/s company "WordTech Communications LLC" /s (c) "(c) 2016" set PRODINFO=/s product "QuickWho" /pv "2.6.0.0" "C:\Users\kevin\Desktop\verpatch.exe" /va QuickWho_Setup.exe %VERSION% %FILEDESCR% %COMPINFO% %PRODINFO% |
Added quickwho.sed.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | [Version] Class=IEXPRESS SEDVersion=3 [Options] PackagePurpose=InstallApp ShowInstallProgramWindow=0 HideExtractAnimation=0 UseLongFileName=1 InsideCompressed=0 CAB_FixedSize=0 CAB_ResvCodeSigning=0 RebootMode=N InstallPrompt=%InstallPrompt% DisplayLicense=%DisplayLicense% FinishMessage=%FinishMessage% TargetName=%TargetName% FriendlyName=%FriendlyName% AppLaunched=%AppLaunched% PostInstallCmd=%PostInstallCmd% AdminQuietInstCmd=%AdminQuietInstCmd% UserQuietInstCmd=%UserQuietInstCmd% SourceFiles=SourceFiles [Strings] InstallPrompt=Would you like to install QuickWho and its supporting files? DisplayLicense=C:\Users\kevin\Desktop\quickwho\mit.txt FinishMessage=Thank you for installing QuickWho. To run the program, please select it from the start menu. TargetName=C:\Users\kevin\Desktop\quickwho\QuickWho_Setup.exe FriendlyName=QuickWho_Setup AppLaunched=cmd /c install.bat PostInstallCmd=<None> AdminQuietInstCmd= UserQuietInstCmd= FILE0="uninstall.bat" FILE1="install.bat" FILE2="quickwho.zip" FILE3="7za.exe" FILE4="7za.dll" FILE5="quickwho.ico" [SourceFiles] SourceFiles0=C:\Users\kevin\Desktop\quickwho\ [SourceFiles0] %FILE0%= %FILE1%= %FILE2%= %FILE3%= %FILE4%= %FILE5%= |
Added uninstall.bat.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | @echo off call :confirm if "%yesno%"=="6" ( call :remove ) else ( call :cancel ) exit /b :confirm ::returns 6 = Yes, 7 = No. set yesno= echo wscript.echo MsgBox("Do you want to uninstall QuickWho?", vbYesNo+vbInformation, "Uninstall") > %temp%\confirm.vbs for /f "tokens=* delims=" %%a in ('cscript //nologo "%temp%\confirm.vbs"') do set yesno=%%a del %temp%\confirm.vbs /f /q exit /b :remove reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe" /f reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f rmdir "%appdata%\Microsoft\Windows\Start Menu\QuickWho" /s /q echo MsgBox "Uninstallation of QuickWho is complete.", vbOKOnly+vbInformation, "Uninstall"> %temp%\remove.vbs call %temp%\remove.vbs del %temp%\remove.vbs /f /q rmdir %appdata%\QuickWho_App /s /q start /b "" cmd /c rmdir "%appdata%\QuickWho\" /s /q && exit :cancel echo MsgBox "Uninstallation of QuickWho cancelled.",vbOKOnly+vbInformation, "Uninstall QuickWho" > %temp%\cancel.vbs call %temp%\cancel.vbs del %temp%\cancel.vbs /f /q exit /b |