Page 1 of 1

Evernote Package

Published: June 18, 2015 - 10:00
by rezidu
Good morning,

I am developing a package for Evernote; my installation goes well, but then I have a second installation for each user who launches Evernote.

Has anyone ever created an Evernote package, or does anyone have any idea how to manage or bypass this second installation?

setup.py from my package:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = ['{CD252A60-0965-11E5-B3A2-00505695D7B0}']

current_version='5.8.8.7837'

def install():
    already_installed=False
    print('Checking old Evernote')
    evernote = installed_softwares('evernote')
    if evernote:
            for uninstall in evernote:
                if uninstall['version'] != current_version:
                    print('Removing %s'%uninstall['name'])
                    cmd = uninstall_cmd(uninstall['key'])
                    print run_notfatal(cmd)
                else:
                    already_installed = True

    if already_installed is True:
        print('Evernote ', current_version ,' already installed')
    else:
        print('installing uvhc-evernote')
        #run(r'"Evernote_5.8.8.7837.exe" /qn ')
        run(r'msiexec /i "Evernote.msi" /quiet /qn /norestart ALLUSERS=1')
Note: There is a commented line in my package because I first used the .exe directly, then I tested by retrieving the .msi (which is retrieved in C:\Temp when installing Evernote).