[WiX-users] Installing an extended stored procedure into SQLserver

2010-06-24 Thread Patrick van der Velde
Hi All

I'm porting one of our old installers from the VS setup projects into
WiX. So far everything has been going very well. The WiX source files
are much easier to deal with than the VS projects and our installer is
now 45Mb smaller than it used to be.

Unfortunately there is one task that I'm stuck on. As part of the
install we want to install an extended stored procedure into SQLserver
(2000, 2005 or 2008 depending on what the customer has). We've got a
DLL that is linked from the stored procedure (in both 32bit and 64bit
versions) and so the installer needs to find the installed version of
SQLserver, determine which version of the DLL to install and then
install it.

At the moment we're using some custom code (a C# class that derives
from System.Configuration.Install.Installer) that is run via the
InstallUtil. This our code isn't the most robust so I'd like to
replace it with something else. If possible something that is build
into WiX. So the question is, have other people done something like
this before and is there an (semi-)easy way to install the DLL and
register it with SQL server?

Thanks

Patrick
Developer
The Optima Corporation

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Weird behavior of Checkbox control and SetProperty

2010-06-24 Thread Elfe Xu
Hi,

Hope you are not getting tired with my name, since I've posted so many 
questions these days :P

This time is about a strange behavior when I use Checkbox and the SetProperty 
control.

On the UI, I have

[] Use proxy:
Address: __  Port:

([] is checkbox, and  is Edit)

In my dialog, I have




  
  



  
  

And in the Produce.wxs, I have



I add the SetProperty code, wish to let user only need to specify PROXY_SERVER 
and PROXY_PORT when launch the setup by msiexec, but no need to specify 
USE_PROXY.

But I found the behavior is not what I want.
When I run msiexec  with PROXY_SERVER=123.4.5.6
The checkbox is checked, the address is filled, but the address and port edit 
are DISABLED.
When I run msiexec without PROXY_SERVER value
The checkbox is STILL checked, the address is empty, and it is enabled.

Seems to me there is something make the checkbox to be checked when it is 
shown, and by default the two Edits are disabled.
So if  executed, then when dialog show, the value is not changed, 
and the Edits keeps disabled.
If  is not executed, then when dialog show, the value is changed 
to 1, and the Edits become enabled.

I've tried change the SetProperty's Sequence and Before/After, but still don't 
work.

Why the checkbox does not respect USE_PROXY value, and always been checked? I 
didn't find any attribute for the default value.

Thanks,
-Elfe


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Dependency on Sql Server

2010-06-24 Thread Michael Osmond
Hi

Another angle, to determine the location of an instance, connect to the 
instance and use the SERVERPROPERTY('MachineName') and compare to your local 
name.

You may need to be careful where the instance is running on a cluster.

Michael



-Original Message-
From: Blair [mailto:os...@live.com] 
Sent: Friday, 25 June 2010 6:11 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Dependency on Sql Server

Just looking at it from a naïve point-of-view, and seeing what is on my own
computer (I have two instances of SQLServer installed/running, one 2005 the
other 2008), this is what I see:

If the dependency were local, it appears that the service name is
MSSQL$. Local means that the
\ instance-identifier would match (ignoring
case) with the property "ComputerName".

You could then update the Dependencies column of the ServiceInstall table
for your service.

This would probably need to be done from an immediate action, and that
action/addition would need to be performed every time you are not removing
the service's component's feature (if not simply everytime) which would
require that you preserve the instance-identifier you depend on.

Wish I had some documentation to throw at you to prove that this is really
the way to go, however.

-Original Message-
From: dB. [mailto:dbl...@dblock.org] 
Sent: Thursday, June 24, 2010 9:34 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Dependency on Sql Server

We have the same problem, would love a solution.

Did you try creating two components with services, one with a dependency and
another without? Then condition them based on, say, SQLSERVER_IS_LOCAL. Try
setting and not setting the property and see if that works.

Once it does, you can start trying to figure out what a "local" instance
means. It would go a long way checking for basic names (eg. (local)). We're
using http://msiext.codeplex.com, it would be implementable to properly
figure out whether the instance is actually local.

Thx
dB.

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-Original Message-
From: Will Sullivan [mailto:wsulli...@softdocs.com] 
Sent: Wednesday, June 23, 2010 2:21 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Dependency on Sql Server

My service uses an instance of Sql Server.  Now, if that instance is on the
current machine, I need to set a dependency on that service so that my
service starts afterwards.

I can foresee a hard time getting this into my installer.  I need to
determine if the sql server is on the current machine from the
server/instance provided by the user, then determine the method of
identifying the service in order to set a dependency on it, then dynamically
adding this to my service during the install.

So, is there a relatively easy way to do this?  Or are there any guides out
here for this situation?  Looking for any help on this I can get!  TIA.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Merge modules for Visual C++ 2010 Express?

2010-06-24 Thread Blair
I haven't installed VC Express, but the location for them in VS 2010 is 
"C:\Program Files (x86)\Common Files\Merge Modules" (or "C:\Program 
Files\Common Files\Merge Modules" if your box is 32-bit) but they are an option 
for the paid versions of VS (I don't know if they are in the defaults or not).

-Original Message-
From: Engel Sanchez [mailto:engel_sanc...@yahoo.com] 
Sent: Thursday, June 24, 2010 1:46 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Merge modules for Visual C++ 2010 Express?

Hello. I have in the past used Wix to install the visual C++ redistributable 
compmonents as per the instructions here:

http://wix.sourceforge.net/manual-wix3/install_vcredist.htm

After installing Visual Studio Express 2010 I can't find the merge modules to 
do the same. Is there a new preferred way to do this with Wix? Perhaps this is 
not included in the Express version of Visual C++ anymore?

Any hints/advice/pointers will be greatly appreciated!

 Engel A. Sanchez


“Do what you love to do and give it your very best. Whether it's business or 
baseball, or the theater, or any field. If you don't love what you're doing and 
you can't give it your best, get out of it. Life is too short. You'll be an old 
man before you know it.”


http://engelsanchez.net



  

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Merge modules for Visual C++ 2010 Express?

2010-06-24 Thread Engel Sanchez
Hello. I have in the past used Wix to install the visual C++ redistributable 
compmonents as per the instructions here:

http://wix.sourceforge.net/manual-wix3/install_vcredist.htm

After installing Visual Studio Express 2010 I can't find the merge modules to 
do the same. Is there a new preferred way to do this with Wix? Perhaps this is 
not included in the Express version of Visual C++ anymore?

Any hints/advice/pointers will be greatly appreciated!

 Engel A. Sanchez


“Do what you love to do and give it your very best. Whether it's business or 
baseball, or the theater, or any field. If you don't love what you're doing and 
you can't give it your best, get out of it. Life is too short. You'll be an old 
man before you know it.”


http://engelsanchez.net



  

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] No OpenFileDialog or something like that?

2010-06-24 Thread Blair
In your custom action, create and start a new thread and then wait on it. In
that new thread, initialize COM for STA mode (or just initialize OLE, which
will do that for you) and then call the OpenFileDialog class. After you copy
your file path out of the class, let that thread end, which will release the
thread your custom action entered on, and set your property with the path
you received from the user.

-Original Message-
From: Elfe Xu [mailto:elf...@microsoft.com] 
Sent: Thursday, June 24, 2010 12:57 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] No OpenFileDialog or something like that?


@Johannes
Thanks for the link to wixwiki. But these samples are too simple and do not
show the complex usage for me to refer :(

I tried to write a custom action to use OpenFileDialog class. However, the
CA gets exceptions "Current thread must be set to single thread apartment
(STA) mode before OLE calls can be made. Ensure that your Main function has
STAThreadAttribute marked on it. This exception is only raised if a debugger
is attached to the process."

I found an old post
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Detecting-IA64
-bit-architecture-td1381532.html#a1383764
here  say that I need to create a new thread to invoke the function. Since
it is a old post (2008) and Joson had suggest to submit a feature requrest
for this requirement, I would like to know if there is any easy way to
achieve this now.
-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/No-OpenFileDia
log-or-something-like-that-tp5216565p5219318.html
Sent from the wix-users mailing list archive at Nabble.com.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Dependency on Sql Server

2010-06-24 Thread Blair
Just looking at it from a naïve point-of-view, and seeing what is on my own
computer (I have two instances of SQLServer installed/running, one 2005 the
other 2008), this is what I see:

If the dependency were local, it appears that the service name is
MSSQL$. Local means that the
\ instance-identifier would match (ignoring
case) with the property "ComputerName".

You could then update the Dependencies column of the ServiceInstall table
for your service.

This would probably need to be done from an immediate action, and that
action/addition would need to be performed every time you are not removing
the service's component's feature (if not simply everytime) which would
require that you preserve the instance-identifier you depend on.

Wish I had some documentation to throw at you to prove that this is really
the way to go, however.

-Original Message-
From: dB. [mailto:dbl...@dblock.org] 
Sent: Thursday, June 24, 2010 9:34 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Dependency on Sql Server

We have the same problem, would love a solution.

Did you try creating two components with services, one with a dependency and
another without? Then condition them based on, say, SQLSERVER_IS_LOCAL. Try
setting and not setting the property and see if that works.

Once it does, you can start trying to figure out what a "local" instance
means. It would go a long way checking for basic names (eg. (local)). We're
using http://msiext.codeplex.com, it would be implementable to properly
figure out whether the instance is actually local.

Thx
dB.

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-Original Message-
From: Will Sullivan [mailto:wsulli...@softdocs.com] 
Sent: Wednesday, June 23, 2010 2:21 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Dependency on Sql Server

My service uses an instance of Sql Server.  Now, if that instance is on the
current machine, I need to set a dependency on that service so that my
service starts afterwards.

I can foresee a hard time getting this into my installer.  I need to
determine if the sql server is on the current machine from the
server/instance provided by the user, then determine the method of
identifying the service in order to set a dependency on it, then dynamically
adding this to my service during the install.

So, is there a relatively easy way to do this?  Or are there any guides out
here for this situation?  Looking for any help on this I can get!  TIA.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] No OpenFileDialog or something like that?

2010-06-24 Thread Elfe Xu

@Johannes
Thanks for the link to wixwiki. But these samples are too simple and do not
show the complex usage for me to refer :(

I tried to write a custom action to use OpenFileDialog class. However, the
CA gets exceptions "Current thread must be set to single thread apartment
(STA) mode before OLE calls can be made. Ensure that your Main function has
STAThreadAttribute marked on it. This exception is only raised if a debugger
is attached to the process."

I found an old post
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Detecting-IA64-bit-architecture-td1381532.html#a1383764
here  say that I need to create a new thread to invoke the function. Since
it is a old post (2008) and Joson had suggest to submit a feature requrest
for this requirement, I would like to know if there is any easy way to
achieve this now.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/No-OpenFileDialog-or-something-like-that-tp5216565p5219318.html
Sent from the wix-users mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WiX-users Digest, Vol 49, Issue 116

2010-06-24 Thread Blair
Remove the  tag and instead "Publish" a "DoAction" event from the
Done/Finish/Close button on your finished dialog.

-Original Message-
From: Thomas Due [mailto:t...@scanvaegt.dk] 
Sent: Thursday, June 24, 2010 6:36 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] WiX-users Digest, Vol 49, Issue 116

Hello, 

I have two quick questions: 

First, I need to run an application when the installer is closed. Currently
it runs when the finished dialog is shown: 


NOT
Installed



 
But how do I make it run when the finished dialog is CLOSED? 

Second, how do I escape a " in the ExeCommand attribute? E.g.
ExeCommand="-lan=\"[INSTALLLANGUAGE]\" -src=[SourceDir]"?

Thanks, 
Thomas Due






--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Files are not copied if custom actions are defined

2010-06-24 Thread Blair
Are you also noticing an error from the custom action preventing your 
installation from succeeding?

The files are not actually installed until the script runs, so your custom 
actions will need to actually attempt to attach/detach as "deferred", not 
"immediate". Also, ALL actions that have side effects (such as 
attaching/removing databases) should ALWAYS be deferred, never immediate, in 
order to be able to participate in rollback, etc. in case of other installation 
errors. That preserves the transactional nature of Windows Installer.

The first time through the InstallExecuteSequence (up to InstallExecute, 
InstallExecuteAgain, or InstallFinalize) the script is recorded. At any of 
these three actions, the script is run (played back) before continuing on to 
the next action in the sequence. If an action is marked as immediate, it runs 
immediately (when it's position in the sequence is reached). If an action is 
marked as deferred, it is written into the script at that point (so it will 
still be run in order). That is what you need here.

If you need access to properties/tables/etc. you will need an 
immediate/deferred pair. The immediate should process the information in the 
database/environment and create data for the deferred action, then "schedule" 
the deferred action by calling DoAction on it.

-Original Message-
From: Pavel Oleinikov [mailto:node1...@gmail.com] 
Sent: Thursday, June 24, 2010 2:15 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Files are not copied if custom actions are defined

Hi people!

I have a strange trouble with WiX (I am a novice only...). There are
two components in my installer - Windows Service & Database. Also
there are two custom actions. If custom actions are defined, files are
not copied at all, target folder does not exist and custom action
"AttachDb", that wants to attach a database via a stored procedure
call, certainly fails, since database files are not exist (note -
section "InstallFiles" presents in the log). If custom actions are
commented out, all is OK, folder and files are created. Please help!
Many-many thanks in advance. Sorry for dummy and possibly annoying
question.

Source:


http://schemas.microsoft.com/wix/2006/wi";
xmlns:ds="http://schemas.appsecinc.com/wix/DataSourceExtension";>
 
   
   
   
 
   
 
   
 
 
 
   
   
 
 
   
 
   
 
   
   
   
   
 NOT Installed AND
&DatabaseFeature=3
 Installed AND
&DatabaseFeature=3
   
   
 
   
 
 
   
 
   
   
   
   
   
   
   Privileged
   
   
   
 



Terveisin, Pavel
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Share Folder

2010-06-24 Thread Chad Petersen
Take a look at the FileShare element. I've used it with no problems for
a long time.

Thanks
Chad

-Original Message-
From: Carolina Zuqueto Amaral [mailto:carolina.ama...@conv.com.br] 
Sent: Thursday, June 24, 2010 11:31 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Share Folder

Hi,

How Do I create a share folder?


Thanks,


Carolina Zuqueto.



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Share Folder

2010-06-24 Thread Carolina Zuqueto Amaral
Hi,

How Do I create a share folder?


Thanks,


Carolina Zuqueto.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Dependency on Sql Server

2010-06-24 Thread dB .
We have the same problem, would love a solution.

Did you try creating two components with services, one with a dependency and 
another without? Then condition them based on, say, SQLSERVER_IS_LOCAL. Try 
setting and not setting the property and see if that works.

Once it does, you can start trying to figure out what a "local" instance means. 
It would go a long way checking for basic names (eg. (local)). We're using 
http://msiext.codeplex.com, it would be implementable to properly figure out 
whether the instance is actually local.

Thx
dB.

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-Original Message-
From: Will Sullivan [mailto:wsulli...@softdocs.com] 
Sent: Wednesday, June 23, 2010 2:21 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Dependency on Sql Server

My service uses an instance of Sql Server.  Now, if that instance is on the 
current machine, I need to set a dependency on that service so that my service 
starts afterwards.

I can foresee a hard time getting this into my installer.  I need to determine 
if the sql server is on the current machine from the server/instance provided 
by the user, then determine the method of identifying the service in order to 
set a dependency on it, then dynamically adding this to my service during the 
install.

So, is there a relatively easy way to do this?  Or are there any guides out 
here for this situation?  Looking for any help on this I can get!  TIA.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] What can cause WcaInitialize to fail?

2010-06-24 Thread Tim Krehl
Yes it is being called in DllMain

switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
::WcaGlobalInitialize(hModule);
break;

case DLL_PROCESS_DETACH:
::WcaGlobalFinalize();
break;
}

Thanks,

Tim



On Wed, Jun 23, 2010 at 9:58 PM, Rob Mensching  wrote:

> Did you call WcaGlobalInitialize() in your DllMain()?
>
> /
>  WcaGlobalInitialize() - initializes the Wca library, should be
> called once per custom action Dll during
> DllMain on DLL_PROCESS_ATTACH
>
> /
>
>
> On Wed, Jun 23, 2010 at 8:46 AM, Fangren  wrote:
>
> >
> > Hoping someone can shed some light on WcaInitialize.
> >
> > I have a WiX based installer that works on hundreds of different
> machines,
> > but on a couple it appears that WcaInitialize is failing.  The log entry
> > after WcaInitialize is not written to the logs even with verbose logging.
> > What conditions can cause this call to fail?  I've been unable to dig up
> > documentation on what this call does exactly or expected return values.
> >
> > Code example:
> >
> > HRESULT hr = ::WcaInitialize(install, "MyCA");
> > if (FAILED(hr))
> > {
> >return ERROR_INSTALL_FAILURE;
> > }
> >
> > ::WcaLog(LOGMSG_STANDARD, "Working on MyCA");
> >
> > Thanks,
> >
> > Tim
> > --
> > View this message in context:
> >
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/What-can-cause-WcaInitialize-to-fail-tp5213865p5213865.html
> > Sent from the wix-users mailing list archive at Nabble.com.
> >
> >
> >
> --
> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> > lucky parental unit.  See the prize list and enter to win:
> > http://p.sf.net/sfu/thinkgeek-promo
> > ___
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
>
> --
> virtually, Rob Mensching - http://RobMensching.com LLC
>
> --
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Tim Krehl
Customer Care Team
Shavlik Technologies, LLC
(651) 407-5246 (office)
Shavlik. Simply Secure.

IMPORTANT NOTICES:
Confidential Information. The information contained in or attached to this
e-mail may be confidential information subject to protection by law or terms
of applicable confidentiality agreements, and is intended only for the use
of the individual or entity named above. It may not be disclosed to or used
by anyone other than the addressee, nor may it be copied or forwarded in any
way without the consent of the sender. If you are not the addressee
indicated in this message (or responsible for delivery of the message to
such person), you should destroy this message and notify the sender by reply
email. No binding commitment from the sender may be inferred by means of
E-mail communications
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Using New Lines in Text Fields for Custom WiX Extension Doesn't Work

2010-06-24 Thread jnewton

Thanks Rob, that worked great.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-New-Lines-in-Text-Fields-for-Custom-WiX-Extension-Doesn-t-Work-tp5214598p5217423.html
Sent from the wix-users mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] No OpenFileDialog or something like that?

2010-06-24 Thread MikeR

There is no file browsing UI/capability built into Windows Installer.  You
will need a custom action to display a file browse dialog.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/No-OpenFileDialog-or-something-like-that-tp5216565p5217401.html
Sent from the wix-users mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WiX-users Digest, Vol 49, Issue 116

2010-06-24 Thread Thomas Due
Hello, 

I have two quick questions: 

First, I need to run an application when the installer is closed. Currently it 
runs when the finished dialog is shown: 


NOT 
Installed



 
But how do I make it run when the finished dialog is CLOSED? 

Second, how do I escape a " in the ExeCommand attribute? E.g. 
ExeCommand="-lan=\"[INSTALLLANGUAGE]\" -src=[SourceDir]"?

Thanks, 
Thomas Due





--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to delete the extracted MSI after install

2010-06-24 Thread dB .
You should definitely not cleanup the MSI from within the MSI.

You might be in the beginning of wanting a lot more features from your 
bootstrapper. Take a look at http://dotnetinstaller.codeplex.com. For your 
purposes it extracts your MSIs to a temporary location and cleans up after 
itself.

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York


-Original Message-
From: Wilson, Phil [mailto:phil.wil...@invensys.com] 
Sent: Wednesday, June 23, 2010 1:13 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to delete the extracted MSI after install

There's a good case for not deleting it at all:

http://blogs.msdn.com/b/windows_installer_team/archive/2006/05/24/605835.aspx 

Rule 31. 

Phil Wilson 

-Original Message-
From: Andy.Kruger [mailto:appr...@gmail.com] 
Sent: Wednesday, June 23, 2010 2:43 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to delete the extracted MSI after install



I have a VC++ bootstrapper with an embedded MSI.
during install MSI gets extracted to the %USERPROFILE% path.

How do i clean up the extracted MSI after install?? 
Should i be doing it from the bootstrapper or from with in the WiX-MSI??

-
Andy
Build&Deployment
Schneider Electric
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-delete-the-extracted-MSI-after-install-tp5212438p5212438.html
Sent from the wix-users mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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).



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Heat -> Wrong project documentation output

2010-06-24 Thread Gernot Kerger
Hi,

 

I'm trying to generate a project's Documentation output with the
following line:

 

heat project "MyProject.csproj" -cg MyProjectDocuments -pog:Documents
-gg -nologo -sfrag -out MyProjectDocuments.wxs

 

Is it normal to get a
$(var.MyProject.ProjectDir)\bin\Debug\MyProject.XML source file inside
of a bin\debug directory?

 

What I need is $(var.MyProject.API.TargetDir)\MyProject.XML.

 

Cordialement / Best regards,

Gernot

 

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Files are not copied if custom actions are defined

2010-06-24 Thread Pavel Oleinikov
Hi people!

I have a strange trouble with WiX (I am a novice only...). There are
two components in my installer - Windows Service & Database. Also
there are two custom actions. If custom actions are defined, files are
not copied at all, target folder does not exist and custom action
"AttachDb", that wants to attach a database via a stored procedure
call, certainly fails, since database files are not exist (note -
section "InstallFiles" presents in the log). If custom actions are
commented out, all is OK, folder and files are created. Please help!
Many-many thanks in advance. Sorry for dummy and possibly annoying
question.

Source:


http://schemas.microsoft.com/wix/2006/wi";
xmlns:ds="http://schemas.appsecinc.com/wix/DataSourceExtension";>
 
   
   
   
 
   
 
   
 
 
 
   
   
 
 
   
 
   
 
   
   
   
   
 NOT Installed AND
&DatabaseFeature=3
 Installed AND
&DatabaseFeature=3
   
   
 
   
 
 
   
 
   
   
   
   
   
   
   Privileged
   
   
   
 



Terveisin, Pavel
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Antw: No OpenFileDialog or something like that?

2010-06-24 Thread Johannes Hetzer
Hi Elfe,
 
did you checked http://www.wixwiki.com/index.php?title=Main_Page#Samples.21 ?
 
These samples are usefull but you may have to adjust them because they don't 
work 100% with the latest WiX 3.5
 
KR

>>> Elfe Xu  24.06.2010 09:34 >>>
Hi,

During my product setup, I need to let user to specify the path of a 
certificate file on his local driver. I searched for something like the 
OpenFileDialog in Wix/WI for a while, but could not find things for this 
purpose. The DirectoryCombo and DirectoryList seems only for folders, but 
cannot be used for a specific type (e.g. .cert) of files.
Do I have to use CustomAction, to invoke the OpenFileDialog?

B.T.W. is there any place that I can find lots of Wix samples? The Wix document 
does not have samples, and search on the internet always costs lots of time 
with little result. Currently I'm mostly refer to the UIExtension in Wix 
source, but it's very limited.

Thanks,
-Elfe
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] No OpenFileDialog or something like that?

2010-06-24 Thread Elfe Xu
Hi,

During my product setup, I need to let user to specify the path of a 
certificate file on his local driver. I searched for something like the 
OpenFileDialog in Wix/WI for a while, but could not find things for this 
purpose. The DirectoryCombo and DirectoryList seems only for folders, but 
cannot be used for a specific type (e.g. .cert) of files.
Do I have to use CustomAction, to invoke the OpenFileDialog?

B.T.W. is there any place that I can find lots of Wix samples? The Wix document 
does not have samples, and search on the internet always costs lots of time 
with little result. Currently I'm mostly refer to the UIExtension in Wix 
source, but it's very limited.

Thanks,
-Elfe
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users