Re: py2exe and dynamic service installation ?

Discussion in 'Python' started by Harald Schneider, Jun 24, 2003.

  1. Would be nice to see this feature in the nex py2exe release ...

    --Harald


    <> schrieb im Newsbeitrag news:...
    > "Harald Schneider" <> writes:
    >
    > > Hi,
    > >
    > > I used py2exe to create a NT service, which works flawlessly. Now the

    same
    > > application needs to be installed multiple times on the same machine.

    For
    > > this I need to pass _svc_name_ and _svc_display_name_ at runtime as

    command
    > > line parameters after -install.
    > >
    > > But no matter what I do, if I compile the application with py2exe it

    falls
    > > back to the first assignment of _svc_name_ in the class header - it just
    > > ignores the passed command line paramters and also any assignment to
    > > _svc_name_ etc in the class header or the __init part ...
    > >
    > > Is there a way to assign these varibales dynamically before the service

    is
    > > created ?
    > >
    > > All the best,
    > > Harald

    >
    > The attached diff to py2exe v.0.3.4 run_svc.c adds the following optional
    > command line args to the users exe file:
    >
    > -service <desired name>
    > -display <display name>
    > -depends <pipe|separated|dependencies>
    > -user <account name>
    > -pass <password>
    > -auto no param, sets service to autostart
    >
    > Rebuild the py2exe interpreters by running 'python setup.py build' in
    > the py2exe directory.
    >
    > This is only lightly tested and not yet used in production.
    >
    > I also have a run_svc_w.c which provides a consoleless analog to
    > run_w.c (usefull for avoiding 'flashing window syndrome' when bundling
    > exe's for use within an installer such as NSIS or Inno Setup).
    >
    > Feedback welcome.
    >
    > Mark Millikan
    >
    >
    Harald Schneider, Jun 24, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Thomas Heller
    Replies:
    4
    Views:
    1,164
    Harald Schneider
    Jun 24, 2003
  2. Brad Clements
    Replies:
    0
    Views:
    642
    Brad Clements
    Aug 19, 2003
  3. Brad Clements
    Replies:
    3
    Views:
    7,335
    Brad Clements
    Aug 24, 2003
  4. F. GEIGER
    Replies:
    0
    Views:
    914
    F. GEIGER
    Aug 16, 2004
  5. python
    Replies:
    3
    Views:
    1,781
    Simon Brunning
    May 22, 2006
Loading...

Share This Page