Re: [WiX-users] Debugging Custom Actions

2011-05-20 Thread Brad Lemings
ServiceInstall (e.g. SCM registration) works fine AFAICT and, as I suspected, does the same as the 'My-Svc.exe /install' command. If I disable (comment out) the custom "start service" action, I can start the service up normally with elevated privileges after the install completes. So now its

Re: [WiX-users] Debugging Custom Actions

2011-05-20 Thread Brad Lemings
I've tried that. It doesn't work because the VC runtimes contained in the merge modules don't get commited to the GAC until after StartServices and possibly InstallFinalize IIUC. On May 20, 2011, at 5:28 PM, Castro, Edwin G. (Hillsboro) wrote: > In my limited experience something like this ha

Re: [WiX-users] Debugging Custom Actions

2011-05-20 Thread Gregg Swanson
If you use the pattern that Castro provided you may have an issue with your service. For example if you service is creating an event log entry, you may fail if the SERVICEACCOUNT is not authorized to create an entry. Check the event log for messages, I have on occasion specified an invalid pass

Re: [WiX-users] Debugging Custom Actions

2011-05-20 Thread Castro, Edwin G. (Hillsboro)
In my limited experience something like this has always simply done the RightThing (TM) : I would give this a try first, rather than trying to start the service manually with a custom action. I'm sure somebody with a lot more experience with _BIND_TO_CURRENT_VCLIBS_VERSION can

Re: [WiX-users] WiX Dialog For Windows Service Account and Password?

2011-05-20 Thread Bradley Ward
Yes, that link was very helpful. I had the dialog up and running in my installer in no time. The link again is: http://www.geekproject.com/showtopic.aspx?ID=94 -Original Message- From: Bradley Ward [mailto:bradley.w...@turnpoint-solutions.com] Sent: Friday, May 20, 2011 4:41 PM To: Ge

Re: [WiX-users] WiX Dialog For Windows Service Account and Password?

2011-05-20 Thread Bradley Ward
I had done some Googling on this before I posted this request to the email list. Once I posted it, I kept searching, and I think I have found a good link: http://www.geekproject.com/showtopic.aspx?ID=94 I'll try to report back after I get my version going. Brad -Original Message- From

[WiX-users] WiX Dialog For Windows Service Account and Password?

2011-05-20 Thread Bradley Ward
Does anyone happen to know where I could pick up a WiX dialog for soliciting the Account and Password values used to install a Windows Service? I figure this MUST be a pretty common thing to do (allow the user to specify the account/password the service is to run under) in an installer that inst

Re: [WiX-users] Debugging Custom Actions

2011-05-20 Thread Brad Lemings
After a lot more investigation, I've came to the same conclusion: the service can't be used at all until after InstallFinalize since it is linked to a specific VC runtime version using the _BIND_TO_CURRENT_VCLIBS_VERSION macro when it is built. Also, I now believe 'My-Svc.exe /install' and the

Re: [WiX-users] Debugging Custom Actions

2011-05-20 Thread Castro, Edwin G. (Hillsboro)
This one of the reasons why you should avoid exe custom actions. They are notoriously hard to debug. I see that you are scheduling your RunMySvcInstall custom action after InstallServices. That suggests you still have the element. I assume that My-Svc.exe /install actually registers the servic

[WiX-users] Debugging Custom Actions

2011-05-20 Thread Brad Lemings
Hi all, So I've added custom actions and conditions to run my service with /install and /uninstall options before the service is started and before it is deleted respectively. Here's the XML: NOT Installed Installed AND REMOVE~="ALL"

Re: [WiX-users] How To Remove Typical Button On Choose Setup Type Dialog

2011-05-20 Thread Bradley Ward
Thank you VERY much Pally! Big help. For the sake of anyone else reading this thread on this forum, let me say that there were a couple of other minor changes I had to make IN ADDITION to doing exactly what Pally said in his reply. So for the sake of other newbies like me, let me just list what

[WiX-users] How to install local service data files

2011-05-20 Thread Miles Waller
Hi, I have written an installed for a service using wix, which runs under the Local System account. So far, so good. Now I want to install some data files that go with the service, under the Local System profile's data folder. On my machine, that means here: C:\Windows\System32\config\systempro

Re: [WiX-users] Error 26201. Error -2147467259: failed to create SQL database

2011-05-20 Thread pzagor2
hello i'm having the exact same issue... I'm working on Windows XP and SQLServer 2008... I'm not even trying to execute sql script... i just whant to create new database. I try with Windows Authentication and SQL-Server Authentication same error. Are there any new information about this issu