BACKEND_URL = 'https://www-test.allmydata.com/native_client2.php'
REGISTER_PAGE = 'https://www-test.allmydata.com/register'
-WINSVC_NAME = 'Tahoe'
+TAHOESVC_NAME = 'Tahoe'
+WINFUSESVC_NAME = 'Allmydata Tahoe SMB'
import os
import sys
# start service etc.
if sys.platform == 'win32':
- try:
- import win32service
- import win32serviceutil as wsu
- if wsu.QueryServiceStatus(WINSVC_NAME)[1] != win32service.SERVICE_RUNNING:
- wsu.StartService(WINSVC_NAME)
- except:
- DisplayTraceback('Failed to start windows service')
+ self.start_windows_service(TAHOESVC_NAME)
+ self.start_windows_service(WINFUSESVC_NAME)
# exit
self.parent.parent.Close()
+ def start_windows_service(self, svc_name):
+ try:
+ import win32service
+ import win32serviceutil as wsu
+ if wsu.QueryServiceStatus(svc_name)[1] != win32service.SERVICE_RUNNING:
+ wsu.StartService(svc_name)
+ except:
+ DisplayTraceback('Failed to start windows service "%s"' % (svc_name,))
+
class RegisterPanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent, -1)
; contents of 'binaries' dir. (consolidated build target)
Source: "*.*"; DestDir: "{app}\Install"; Flags: restartreplace replacesameversion uninsrestartdelete
Source: ".\web\*.*"; DestDir: "{app}\Install\web"; Flags: recursesubdirs
+Source: ".\winfuse\*.*"; DestDir: "{app}\Install\winfuse"; Flags: recursesubdirs
[Dirs]
Name: "{app}\noderoot"
[Run]
; Things performed before the final page of the installer
-Filename: "{app}\Install\tahoesvc.exe"; Parameters: "-install"; Flags: runhidden
-Filename: "{app}\Install\tahoe.exe"; Parameters: "create-client ""{app}\noderoot"""; Description: "Set the node into debug logging mode"; Flags: runhidden
+Filename: "{app}\Install\tahoesvc.exe"; Parameters: "-install -auto"; Flags: runhidden
+Filename: "{app}\Install\tahoe.exe"; Parameters: "create-client ""{app}\noderoot"""; Flags: runhidden
+Filename: "{app}\Install\winfuse\InstallUtil.exe"; Parameters: """{app}\Install\winfuse\WinFUSE.exe"""; Flags: runhidden
Filename: "{app}\Install\confwiz.exe"; Flags: hidewizard
;Filename: "{app}\Install\ReadMe.txt"; Description: "View the ReadMe file"; Flags: unchecked postinstall nowait shellexec skipifdoesntexist
[UninstallRun]
; Performed before the uninstaller runs to undo things
+Filename: "{sys}\net.exe"; Parameters: "stop ""Allmydata Tahoe SMB"""; Flags: runhidden
Filename: "{sys}\net.exe"; Parameters: "stop Tahoe"; Flags: runhidden
+Filename: "{app}\Install\winfuse\InstallUtil.exe"; Parameters: "/uninstall ""{app}\Install\winfuse\WinFUSE.exe"""; Flags: runhidden
Filename: "{app}\Install\tahoesvc.exe"; Parameters: "-remove"; Flags: runhidden
;Filename: "http://www.allmydata.com/redirect/uninstallsurvey.php?build=%(build)s"; Flags: shellexec
('.', [
],),
('web', glob.glob('../src/allmydata/web/*')),
+ ('winfuse', glob.glob('./winfuse/*')),
],
'zipfile' : 'library.zip',
'options': {
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>\r
+<configuration>\r
+\r
+ <configSections>\r
+ <section name="microkernel" type="MicroKernel.CustomSection, MicroKernel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />\r
+ \r
+ </configSections>\r
+\r
+ <microkernel>\r
+ <references>\r
+ <!-- Must be set if no DomainController is used for Authentification, otherwise it can be left empty -->\r
+ <local description="Logon" keyType="Suchwerk.Interface.IAuth" assembly="UserLogon" implementationType="Suchwerk.UserLogon" singleton="true" />\r
+\r
+ <!-- Must be set. Is the IPC share that all CIFS server must provide. The implementation is done very simple -->\r
+ <local description="IPC$" keyType="Suchwerk.Interface.IFilesystem" assembly="NamedPipe" implementationType="Suchwerk.Filesystem.Pipe" singleton="true" />\r
+ \r
+ <!-- That's the CIFS server, must be included -->\r
+ <local description="SMBServer" keyType="Suchwerk.Interface.ISMBPortal" assembly="PortalSMB" implementationType="Suchwerk.Portal.SMB.SMB" singleton="true" />\r
+ \r
+ <!-- Add here your IFilesystem implementations, the more you add, the more your server can provide \r
+ The same IFilesystem implementation can be listed more than once, to provide different data views \r
+ \r
+ To know with share was called, add then field, "parameter_constructor=true" and instead of the\r
+ parameter less standard constructor a constructor with the share name will be called -->\r
+ <local description="Tahoe" keyType="Suchwerk.Interface.IFilesystem" assembly="TahoeFS" implementationType="TahoeFS.TahoeFS" singleton="true" />\r
+ \r
+ </references>\r
+ </microkernel>\r
+\r
+</configuration>\r
+\r