From 3a6a58eb2c06242a9dd6a559fc05e81cf08d2e06 Mon Sep 17 00:00:00 2001 From: Etoh Date: Tue, 25 Jun 2013 16:09:30 +0200 Subject: [PATCH] If user has VLC then installing interface script is checked by default (thanks Bosman) --- buildPy2exe.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildPy2exe.py b/buildPy2exe.py index a19e335..ee8863d 100644 --- a/buildPy2exe.py +++ b/buildPy2exe.py @@ -138,6 +138,10 @@ NSIS_SCRIPT_TEMPLATE = r""" StrCpy $$CheckBox_Associate_State $${BST_CHECKED} StrCpy $$CheckBox_StartMenuShortcut_State $${BST_CHECKED} + ReadRegStr $$VLC_Version HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VLC media player" "VersionMajor" + $${If} $$VLC_Version == "2" + StrCpy $$CheckBox_VLC_State $${BST_CHECKED} + $${EndIf} Call GetSize Call DriveSpace