[wix-users] How to pass arguments for window-service into update

Edwin Castro egcastr at gmail.com
Tue Apr 21 14:32:33 PDT 2020


Consider using the remember property pattern.

http://robmensching.com/blog/posts/2010/5/2/the-wix-toolsets-remember-property-pattern/

--
Edwin G. Castro


On Tue, Apr 21, 2020, 11:19 Aleksey Pogorelskiy via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> Vladimir, thank you for the answer!
>
> Perhaps, I didn't express myself well. Initialize property through command
> line is fine for me, but may be not very comfortable for users. Make GUI
> for getting these parameters from user is good (and I'll use it if don't
> found better way), but a little strange. Because the service is already
> installed and in theory I have all information I need. So I'd like to find
> a way to determine service start parameters from installed service if it's
> possible.
>
> Best regards,
> Aleksey Pogorelskiy
>
> вт, 21 апр. 2020 г. в 13:41, Vladimir Kolobkov via wix-users <
> wix-users at lists.wixtoolset.org>:
>
> > Or you can use major upgrade with your own dialogs, for collecting all
> > necessary data.
> > Best regards,
> > Vladimir Kolobkov
> >
> >
> > On Tue, 21 Apr 2020 at 13:39, Vladimir Kolobkov <vkolobkov at gmail.com>
> > wrote:
> >
> > > Like described in here -
> > > https://sourceforge.net/p/wix/mailman/message/31188366/
> > >
> > > Best regards,
> > > Vladimir Kolobkov
> > >
> > >
> > > On Tue, 21 Apr 2020 at 13:37, Vladimir Kolobkov <vkolobkov at gmail.com>
> > > wrote:
> > >
> > >> Hi Alexey,
> > >>
> > >> You can initialize property through command line and then use it in
> > >> installer, if it makes sense.
> > >>
> > >> Best regards,
> > >> Vladimir Kolobkov
> > >>
> > >>
> > >> On Tue, 21 Apr 2020 at 13:00, Алексей Погорельский via wix-users <
> > >> wix-users at lists.wixtoolset.org> wrote:
> > >>
> > >>> Hello,
> > >>> I have installer made by Wix. It installs service via ServiceInstall
> > >>> element (
> > >>>
> > >>>
> >
> https://wixtoolset.org/documentation/manual/v3/xsd/wix/serviceinstall.html
> > >>> ).
> > >>> Service needs some arguments to start (I pass these arguments via
> > >>> properties to ServiceInstall). Also I make updates as described here
> (
> > >>>
> > >>>
> >
> https://wixtoolset.org/documentation/manual/v3/patching/patch_building.html
> > >>> ).
> > >>> When I install via bootstrapper, it gets arguments for service
> > starting,
> > >>> from user interface and everything works fine. But my update knows
> > >>> nothing
> > >>> about these arguments.
> > >>> What is the best way to pass arguments for service into update?
> > >>>
> > >>> Thanks.
> > >>>
> > >>> Best regards,
> > >>> Aleksey Pogorelskiy
> > >>>
> > >>> <
> > >>>
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >>> >
> > >>> Без
> > >>> вирусов. www.avast.ru
> > >>> <
> > >>>
> >
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >>> >
> > >>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > >>>
> > >>> ____________________________________________________________________
> > >>> WiX Toolset Users Mailing List provided by FireGiant
> > >>> http://www.firegiant.com/
> > >>
> > >>
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
>
>
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> Без
> вирусов. www.avast.ru
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#m_5968424937245979459_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/



More information about the wix-users mailing list