Hi All,

I have a scenario which I am unsure how to solve easily. I have a bunch
of .net services with app.config which I install using WiX and start
using the <ServiceControl> tag. An important part of the install is that
I need to modify the app.config to point to the correct database setup
in the UI beforehand. I previously set up a custom table which has the
file, appconfig or connectionstring, key, value and a few other
properties that it would use to cycle through and apply all these
settings to a number of app.config files (this was great because there
could be a number of them). Previously I had this as an immediate custom
action which ran after installfinalize, until I realised that the
service was getting started before the app.config was modified on the
first run. 
The problem is that installfiles and servicestart in the installsequence
both occur before installfinalize but are both deferred custom actions.
The obvious solution would be to make this app.config custom action
deferred and make it run before ServiceStart right? However without a
state I find it hard to figure out how to get the custom action to
obtain all of the required properties. There is no possible way I could
pass it all through the CustomActionData property, as there are ';' in
the values and encoding/decoding would be a nightmare.

My question is, What is the best way to solve this? Right now I will be
running the service start in a command as a custom action after it has
modified the files as immediate which is less than optimal. Would making
it into a WiX Extension fix this? How does service start access the
ServiceControl table if it is deferred anyway?

Thanks for all your help.
Murray

This e-mail and any attachments to it (the "Communication") are confidential 
and are for the use only of the intended recipient. The Communication may 
contain copyright material of the Snowden Group ("Snowden"), or any of its 
related entities or of third parties. If you are not the intended recipient of 
the Communication, please notify the sender immediately by return e-mail, 
delete the Communication, and do not copy, print, retransmit, disclose, store 
or act in reliance on the Communication. Any views expressed in the 
Communication are those of the individual sender only, unless expressly stated 
to be those of Snowden. Although virus protection devices and procedures are in 
place, Snowden does not guarantee the integrity of the Communication, or that 
it is free from errors, viruses or interference. Snowden advises email 
recipients to carry out their own virus checks before opening any attachment.  
Please note that the main telephone number for the Snowden Perth office has 
changed to +61 8 9213 9213.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to