1 ; Installer script for wxWebKit for wxPython
7 AppVerName=wxWebKit <<VERSION>>
9 DefaultDirName={code:GetInstallDir|c:\DoNotInstallHere}
10 AppPublisher=wxWebKit Project
11 AppPublisherURL=http://wxwebkit.wxcommunity.com/pmwiki/
12 AppSupportURL=http://wxwebkit.wxcommunity.com/pmwiki/
13 AppUpdatesURL=http://wxwebkit.wxcommunity.com/pmwiki/
14 UninstallDisplayName=wxWebKit <<VERSION>>
15 UninstallFilesDir={app}\Uninstall
19 OutputDir=win-installer
20 OutputBaseFilename=wxWebKit-wx2.8-Py<<PYTHONVER>>-<<VERSION>>
21 DisableStartupPrompt=yes
23 DisableProgramGroupPage=yes
30 WelcomeLabel1=Welcome to the wxWebKit for wxPython Setup Wizard
40 function InitializeSetup(): Boolean;
43 (* -------------------------------------------------------------- *)
44 (* Figure out what to use as a default installation dir *)
46 if not RegQueryStringValue(HKEY_LOCAL_MACHINE,
47 'Software\Python\PythonCore\<<PYTHONVER>>\InstallPath',
48 '', PythonDir) then begin
50 if not RegQueryStringValue(HKEY_CURRENT_USER,
51 'Software\Python\PythonCore\<<PYTHONVER>>\InstallPath',
52 '', PythonDir) then begin
54 MsgBox('No installation of Python <<PYTHONVER>> found in registry.' + #13 +
55 'Be sure to enter a pathname that places wxPython on the PYTHONPATH',
56 mbConfirmation, MB_OK);
57 PythonDir := 'C:\Put a directory on PYTHONPATH here\';
60 InstallDir := PythonDir + '\Lib\site-packages\wx-2.8-msw-unicode\wx\';
66 function GetPythonDir(Default: String): String;
73 function GetInstallDir(Default: String): String;