QuickWho

Check-in [6bcea97d9b]
Login

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:6bcea97d9bbb89bba306330715c19389cce36e1f
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
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to build.bat.

    20     20   call xcopy scriptlibs dist\QuickWho\tcl\tk8.6  /s /i /y
    21     21   call xcopy winlibs dist\QuickWho\tcl\tk8.6  /s /i /y
    22     22   ::call xcopy msgcat dist\QuickWho\tcl /s /i /y
    23     23   call xcopy  C:\Strawberry\c\bin\*.dll dist\QuickWho\
    24     24   call xcopy QuickWho.exe dist\QuickWho\
    25     25   call xcopy QuickWho.py dist\QuickWho\
    26     26   call xcopy ToolTip.py dist\QuickWho\
           27  +
           28  +rmdir C:\Users\kevin\Desktop\quickwho\dist\QuickWho\Doc
           29  +rmdir C:\Users\kevin\Desktop\quickwho\dist\QuickWho\Scripts 
           30  +rmdir C:\Users\kevin\Desktop\quickwho\dist\QuickWho\Tools
           31  +
    27     32   
    28     33   

Added install.bat.

            1  +@echo off
            2  +::configure and install app files
            3  +set install_dir="%appdata%\QuickWho_App\"
            4  +set config_dir="%appdata%\QuickWho\"
            5  +set config
            6  +if not exist %install_dir% (
            7  +mkdir %install_dir%
            8  +)
            9  + 
           10  +if not exist %config_dir% (
           11  +mkdir %config_dir%
           12  +)
           13  +call 7za  x quickwho.zip
           14  +xcopy bin %install_dir%\bin /s /i /y
           15  +xcopy lib %install_dir%\lib /s /i /y
           16  +xcopy quickwho %install_dir%\quickwho /s /i /y
           17  +copy /Y uninstall.bat %config_dir%\
           18  +copy /Y quickwho.ico %config_dir%\
           19  +
           20  +::test for key, add to registry
           21  +reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe"
           22  +if errorlevel 0 (
           23  +reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe" /f
           24  +)
           25  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe" /f
           26  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe"  /ve /d "%appdata%\QuickWho_App\quickwho\QuickWho.exe" /f
           27  + 
           28  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f
           29  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "DisplayIcon" /t REG_SZ /d "%appdata%\QuickWho\quickwho.ico"
           30  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "DisplayName" /t REG_SZ /d "QuickWho"
           31  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "InstallLocation" /t REG_SZ /d "%install_dir%"
           32  +
           33  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "Publisher" /t REG_SZ /d "WordTech Communications LLC"
           34  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "InstallDate" /t REG_SZ /d %DATE%
           35  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "Version" /t REG_SZ /d 6.0.0
           36  + 
           37  +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f /v "UninstallString" /t REG_SZ /d "cmd /c %appdata%\QuickWho\uninstall.bat"
           38  + 
           39  +::add to start menu
           40  +set startdir="%appdata%\Microsoft\Windows\Start Menu\QuickWho\"
           41  +
           42  +if not exist %startdir% (
           43  +mkdir %startdir%
           44  +)
           45  +cd %startdir%
           46  +
           47  +::mklink /H QuickWho.exe "%appdata%\QuickWho_App\quickwho\QuickWho.exe"
           48  +
           49  +echo Set oWS = WScript.CreateObject("WScript.Shell") >%temp%\link.vbs
           50  +echo sLinkFile = "QuickWho.lnk" >>  %temp%\link.vbs
           51  +echo Set oLink = oWS.CreateShortcut(sLinkFile) >>  %temp%\link.vbs
           52  +echo oLink.TargetPath = "%appdata%\QuickWho_App\quickwho\QuickWho.exe" >> %temp%\link.vbs
           53  +echo oLink.Save >>  %temp%\link.vbs
           54  +call  %temp%\link.vbs
           55  +del %temp%\link.vbs
           56  +
           57  +cd C:\Users\%username%\Desktop
           58  +echo Done.

Added makeinstaller.bat.

            1  +call 7za a quickwho.zip .\dist\*
            2  +
            3  +iexpress /n quickwho.sed
            4  +
            5  +set VERSION="6.6.0.0 (%date%)"
            6  +set FILEDESCR=/s desc "Installer for QuickWho"
            7  +set COMPINFO=/s company "WordTech Communications LLC" /s (c) "(c) 2016"
            8  +set PRODINFO=/s product "QuickWho" /pv "2.6.0.0"
            9  +
           10  +"C:\Users\kevin\Desktop\verpatch.exe" /va QuickWho_Setup.exe %VERSION% %FILEDESCR% %COMPINFO% %PRODINFO% 

Added quickwho.sed.

            1  +[Version]
            2  +Class=IEXPRESS
            3  +SEDVersion=3
            4  +[Options]
            5  +PackagePurpose=InstallApp
            6  +ShowInstallProgramWindow=0
            7  +HideExtractAnimation=0
            8  +UseLongFileName=1
            9  +InsideCompressed=0
           10  +CAB_FixedSize=0
           11  +CAB_ResvCodeSigning=0
           12  +RebootMode=N
           13  +InstallPrompt=%InstallPrompt%
           14  +DisplayLicense=%DisplayLicense%
           15  +FinishMessage=%FinishMessage%
           16  +TargetName=%TargetName%
           17  +FriendlyName=%FriendlyName%
           18  +AppLaunched=%AppLaunched%
           19  +PostInstallCmd=%PostInstallCmd%
           20  +AdminQuietInstCmd=%AdminQuietInstCmd%
           21  +UserQuietInstCmd=%UserQuietInstCmd%
           22  +SourceFiles=SourceFiles
           23  +
           24  +[Strings]
           25  +InstallPrompt=Would you like to install QuickWho and its supporting files?
           26  +DisplayLicense=C:\Users\kevin\Desktop\quickwho\mit.txt
           27  +FinishMessage=Thank you for installing QuickWho. To run the program, please select it from the start menu.
           28  +TargetName=C:\Users\kevin\Desktop\quickwho\QuickWho_Setup.exe
           29  +FriendlyName=QuickWho_Setup
           30  +AppLaunched=cmd /c install.bat
           31  +PostInstallCmd=<None>
           32  +AdminQuietInstCmd=
           33  +UserQuietInstCmd=
           34  +FILE0="uninstall.bat"
           35  +FILE1="install.bat"
           36  +FILE2="quickwho.zip"
           37  +FILE3="7za.exe"
           38  +FILE4="7za.dll"
           39  +FILE5="quickwho.ico"
           40  +[SourceFiles]
           41  +SourceFiles0=C:\Users\kevin\Desktop\quickwho\
           42  +[SourceFiles0]
           43  +%FILE0%=
           44  +%FILE1%=
           45  +%FILE2%=
           46  +%FILE3%=
           47  +%FILE4%=
           48  +%FILE5%=
           49  +

Added uninstall.bat.

            1  +@echo off
            2  + 
            3  +call :confirm
            4  +if "%yesno%"=="6" (
            5  +call :remove
            6  +) else (
            7  +call :cancel
            8  +)
            9  +exit /b
           10  + 
           11  +:confirm
           12  +::returns 6 = Yes, 7 = No.
           13  +set yesno=
           14  +echo wscript.echo MsgBox("Do you want to uninstall QuickWho?", vbYesNo+vbInformation, "Uninstall") > %temp%\confirm.vbs
           15  +for /f "tokens=* delims=" %%a in ('cscript //nologo "%temp%\confirm.vbs"') do set yesno=%%a
           16  +del %temp%\confirm.vbs /f /q
           17  +exit /b
           18  + 
           19  + 
           20  +:remove
           21  +reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\QuickWho.exe" /f
           22  +reg delete  "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QuickWho" /f
           23  + 
           24  +rmdir "%appdata%\Microsoft\Windows\Start Menu\QuickWho" /s /q 
           25  +echo MsgBox "Uninstallation of QuickWho is complete.", vbOKOnly+vbInformation, "Uninstall"> %temp%\remove.vbs
           26  +call %temp%\remove.vbs
           27  +del %temp%\remove.vbs /f /q
           28  +rmdir %appdata%\QuickWho_App /s /q
           29  +start /b "" cmd /c rmdir "%appdata%\QuickWho\" /s /q && exit
           30  + 
           31  + 
           32  +:cancel
           33  +echo MsgBox "Uninstallation of QuickWho cancelled.",vbOKOnly+vbInformation, "Uninstall QuickWho"  > %temp%\cancel.vbs
           34  +call %temp%\cancel.vbs
           35  +del %temp%\cancel.vbs /f /q
           36  +exit /b