licecap icon indicating copy to clipboard operation
licecap copied to clipboard

Provide Windows portable version

Open copdips opened this issue 6 years ago • 7 comments

Hello,

I really like licecap, but when I'm at office, I'm not admin on my desktop, so could you please provide the portable version of licecap ?

Thx.

copdips avatar Jun 22 '18 11:06 copdips

Hi @codlips there is no need for a portable version. Just try to install it in a folder where you have write access. Like your desktop or your username's MyDocuments (if you are on Windows platform).

Hope it works! Cheers.

victorwestmann avatar Aug 16 '18 20:08 victorwestmann

Hello @victorwestmann,

The installer publisher is unknown, so right after double clicking on the installer .exe file, it demandes admin account to bypass the publisher warning.

I managed to get it worked by simply unzip the exe file, and got the licecap.exe directlty.

copdips avatar Aug 20 '18 09:08 copdips

maybe also provide a zip version ?

copdips avatar Aug 20 '18 09:08 copdips

Hello @victorwestmann,

The installer publisher is unknown, so right after double clicking on the installer .exe file, it demandes admin account to bypass the publisher warning.

I managed to get it worked by simply unzip the exe file, and got the licecap.exe directlty.

Unzipping the installer .exe worked for me. This is incredible. Thanks!

changhsinlee avatar Nov 28 '18 18:11 changhsinlee

Just unzip the exe

copdips avatar Sep 25 '19 06:09 copdips

This works on Windows with Python:

# importing libraries
import os
import cv2
import sys

# need to copy d:\tools\openh264\openh264-1.8.0-win64.dll into current directory

# Video Generating function
def generate_video():
    image_folder = '.'
    video_name = 'video.mp4'
    video_writer = None
    width = None
    height = None
    fourcc = cv2.VideoWriter_fourcc(*'H264')

    # Appending the images to the video one by one
    index = 154
    while True:
        name = "image{}.png".format(index)
        index += 1
        filename = os.path.join(image_folder, name)
        if os.path.isfile(filename):
            print("loading {}".format(filename))
            frame = cv2.imread(filename)
            h, w, _ = frame.shape
            if video_writer is None:
                width = w
                height = h
                video_writer = cv2.VideoWriter(video_name, fourcc, 1, (width, height))
            elif width != w:
                print("video width changed from {} to {}".format(width, w))
                return
            elif height != h:
                print("video height changed from {} to {}".format(height, h))
                return

            video_writer.write(frame)
        else:
            print("no file found {}".format(filename))
            break

    video.release()  # releasing the video generated


# Calling the generate_video function
generate_video()

lovettchris avatar Mar 26 '20 20:03 lovettchris

Nevermind, it works with 7-zip.

Trying to unzip version 1.28 fails for me using unzip.exe:

Archive:  licecap128-install.exe
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
note:  licecap128-install.exe may be a plain executable, not an archive
unzip:  cannot find zipfile directory in licecap128-install.exe,
        and cannot find licecap128-install.exe.zip, period.

Using powershell's Expand-Archive is not accepting .exe but renaming to .zip gives essentially the same error msg:

Expand-Archive -Force .\licecap128-install.zip \licecap
New-Object : Exception calling ".ctor" with "3" argument(s): "End of Central Directory record could not be found."
At
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:934
char:23
+ ... ipArchive = New-Object -TypeName System.IO.Compression.ZipArchive -Ar ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

mmarras avatar Jan 30 '21 13:01 mmarras