We are moving to Visual Studio 2013 and my current project i built in
Vs2010 is a wcf service hosted by a windows service. I created a setup
project and all worked as expected.

Moving to 2013, setup projects are no longer supported. I tried the
InstallShield lt, its a sham trying to get us to spend more money. So i
went to wix.

Testing the new deployment possibilities i built the basic windows service
app here:http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx

When i used the Installshield LT it installed and created the application
event log(There were other problems with that setup project that prevents
me from using it)

So i created a wix setup project, which is pretty awesome except for the
fact when you install it doesnt seem to grant correct permissions to write
to event log.

If i comment out the code that writes to the event log on start, the
service will start.

 Event1.WriteEntry("Command received to start service.");

If i dont i get the service failed to start. In wix i added this:

InstallPrivileges="elevated"

But it made no difference. I searched stackOverflow and found another
reffernce to this:

<Property Id="MSIUSEREALADMINDETECTION" Value="1" />

to force run as admin but all this did was force me to restart me machine
whenever i uninstall, it still wont write to the event log.

I ran the msi from an eleveated command prompt as well with no luck.

The service will have its own logon name eventually but its currently set
to LocalSystem.

I changed the account to my domain name(an administrator) and the service
still will not start.

I changed the regkey permissions here
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog to full
control for my account and nothing.

Its windows 7. Any and all help is much appreciated.

-- 

Steven Dyson

To whom much is given, much will be required.
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to