Hi Phil, Thanks for your answer. I wasn't aware that I was doing smth not "by the book". I got the idea now, and I'll change it to that.
Thx, Viv On 4/6/2010 7:07 PM, Wilson, Phil wrote: > This is a case of "well I can make it work" vs "is it the right thing to do?". > > The installer architecture expects UI to be collected in the UI sequence > (fancy that!) and not in the execute sequence. Some of the reasons for that > are about silent install, and that UI sometime behaves oddly in that > situation. Also, not following the expected model typically leads to problems > later - if you were running custom actions in the UI sequence that required > elevation you got somewhat hosed when UAC came along. It's also not clear to > me that Microsoft will continue to let people show a UI message loop out of a > process running with the system account. Services can't do this because of > the security vulnerability. > > What you should be doing is collecting the data in a UI dialog and > associating it with public properties that a custom action in the execute > sequence uses to update the config file. When the install runs silently these > properties can be set on the msiexec command line. > > Phil Wilson > > -----Original Message----- > From: Viv Coco [mailto:vcotirl...@hotmail.com] > Sent: Tuesday, April 06, 2010 1:29 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] First run notepad with my.cfg and only then start > the service > > I actually thought about doing it like this: > > [code] > <Property Id="NOTEPAD">Notepad.exe</Property> > <CustomAction Id="LaunchConfFile" Property="NOTEPAD" > ExeCommand="[INSTALLDIR]my.cfg" Return="ignore" Impersonate="no" > Execute="deferred"/> > <InstallExecuteSequence> > <Custom Action='LaunchConfFile' Before='StartServices'>(NOT Installed) > AND (NOT UPGRADINGPRODUCTCODE)</Custom> > </InstallExecuteSequence> > [/code] > > This seems to be doing the job. Is this not correct? > > Thx, > Viv > > On 4/3/2010 3:20 PM, Bob Arnson wrote: > >> On 4/1/2010 9:28 AM, Viv Coco wrote: >> >> >>> shown to the user to modify as needed (I give the user the chance to >>> change it by running notepad.exe with my conf file during installing) >>> >>> >>> >> You can't run UI during InstallExecuteSequence. You should let the user >> configure after installation. >> >> >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > *** Confidentiality Notice: This e-mail, including any associated or attached > files, is intended solely for the individual or entity to which it is > addressed. This e-mail is confidential and may well also be legally > privileged. If you have received it in error, you are on notice of its > status. Please notify the sender immediately by reply e-mail and then delete > this message from your system. Please do not copy it or use it for any > purposes, or disclose its contents to any other person. This email comes from > a division of the Invensys Group, owned by Invensys plc, which is a company > registered in England and Wales with its registered office at Portland House, > Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of > European legal entities within the Invensys Group, please go to > http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. > You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail > inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be > subject to the terms of any agreements between Invensys (and/or its > subsidiaries and affiliates) and the recipient (and/or its subsidiaries and > affiliates). > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users