Re: [WiX-users] How do I add both a HKLM and a HKCU key to the registry? And THANKS!

2009-10-25 Thread Dave Kolb
a HKLM and a HKCU key to the registry? If you mark your custom action as a 64-bit action it should run in a 64-bit process. I haven't tried it with DTF since I write all my custom actions in C/C++. On Sat, Oct 24, 2009 at 7:37 PM, Dave Kolb d...@dotnetcodeslingers.comwrote: Good information Blair

Re: [WiX-users] String concatenation/formatting.

2009-10-25 Thread Dave Kolb
What variable set does #FileId come from? I don't recognize the # syntax. -Original Message- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Sunday, October 25, 2009 11:31 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] String

Re: [WiX-users] How do I add both a HKLM and a HKCU key to the registry?

2009-10-24 Thread Dave Kolb
.' Subject: Re: [WiX-users] How do I add both a HKLM and a HKCU key to the registry? Try adding KeyPath=yes to each of your two RegistryKey elements. -Original Message- From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Friday, October 23, 2009 6:34 PM To: 'General discussion

Re: [WiX-users] How do I add both a HKLM and a HKCU key to the registry?

2009-10-24 Thread Dave Kolb
... Feature Id=DefaultFeature ConfigurableDirectory=TARGETDIR Level=1 ComponentRef Id=C_HKLM_RegistryEntries/ ComponentRef Id=C_HKCU_RegistryEntries/ Etc... -Original Message- From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Saturday, October 24, 2009 1:58 AM

Re: [WiX-users] How do I add both a HKLM and a HKCU key to the registry?

2009-10-24 Thread Dave Kolb
: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Saturday, October 24, 2009 3:50 AM To: 'General discussion for Windows Installer XML toolset.' Subject: RE: [WiX-users] How do I add both a HKLM and a HKCU key to the registry? Hi Blair, you probably meant adding KeyPath to a RegistryValue element

Re: [WiX-users] Can I set the Directory name attribute with a custom property value?

2009-10-24 Thread Dave Kolb
Thanks! -Original Message- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Saturday, October 24, 2009 5:20 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Can I set the Directory name attribute with a custom property value? That's a direct

Re: [WiX-users] How do I add both a HKLM and a HKCU key to the registry?

2009-10-24 Thread Dave Kolb
be managed by the application. Finally, a verbose log file should explain why a Component is not being installed. The behavior you are describing so far is not expected. There is something else. On Sat, Oct 24, 2009 at 1:33 AM, Dave Kolb d...@dotnetcodeslingers.comwrote: Well I flipped the order

Re: [WiX-users] How do I add both a HKLM and a HKCU key to the registry?

2009-10-24 Thread Dave Kolb
Good information Blair and thanks. I did not know about the EventSource element but should have guesses there likely was one. I will rethink what I am doing with the registry given your guidelines. Especially since I just realized that my custom action, built for Any CPU, is running against the

Re: [WiX-users] How do I add both a HKLM and a HKCU key to the registry?

2009-10-24 Thread Dave Kolb
Thanks John! -Original Message- From: John H. Bergman (XPedient Technologies) [mailto:john.berg...@xpedienttechnologies.com] Sent: Saturday, October 24, 2009 11:39 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How do I add both a HKLM and a HKCU

[WiX-users] How do I add both a HKLM and a HKCU key to the registry?

2009-10-23 Thread Dave Kolb
During install, I am trying to add both an HKLM key and an HKCU key for my product. My wxs looks like the below. When this compiles I get the error ICE57: Component 'C_HKCU_RegistryEntries' has both per-user and per-machine data with a per-machine KeyPath . I have both

[WiX-users] Can I set the Directory name attribute with a custom property value?

2009-10-23 Thread Dave Kolb
Should this work? I am getting the literal strings as the directory name. Is the directory name attribute not formattable? Where is it documented what is formatted or not as I have not been able to find that information. Thanks, Dave Property Id=MYCOMPANYNAME Value=49thLatitude / Property

Re: [WiX-users] Issue in installing in 64 Bit OS

2009-10-20 Thread Dave Kolb
You can test like this if you really need to ?if $(var.ProcessorArchitecture)=x64 ? but there is no such thing as a folder called Program Files (x64) only Program Files (x86). And the right thing should just happen if you set the architecture when building. - Dave -Original

Re: [WiX-users] Any way to control the # of service start attempts on ServiceControl?

2009-10-17 Thread Dave Kolb
...@joyofsetup.com] Sent: Saturday, October 17, 2009 2:11 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Any way to control the # of service start attempts on ServiceControl? Dave Kolb wrote: Is there any way to control the # of service start attempts

[WiX-users] Any way to control the # of service start attempts on ServiceControl?

2009-10-15 Thread Dave Kolb
Is there any way to control the # of service start attempts on ServiceControl or elsewhere in the .msi file? MSI seems to try 7 times to start my service before declaring an install failure. The service is not starting due to no fault of wix or MSI and so I am not asking about that. I just want to

Re: [WiX-users] When to change Product/@Id (ProductCode)? - two editions of the same product.

2009-10-15 Thread Dave Kolb
I understand Product/@Id is an XPath fragment but where is such syntax used in conjunction with wix? I could find no such usage in any wix or project files that I am using. Just trying to understand what you are talking about. Thanks, Dave snip Currently for our main product I'm using two

Re: [WiX-users] When to change Product/@Id (ProductCode)? - two editions of the same product.

2009-10-15 Thread Dave Kolb
; Product Id=$(var.Property_ProductCode) Sascha On Fri, Oct 16, 2009 at 2:38 PM, Dave Kolb d...@dotnetcodeslingers.com wrote: I understand Product/@Id is an XPath fragment but where is such syntax used in conjunction with wix? I could find no such usage in any wix or project files that I

Re: [WiX-users] When to change Product/@Id (ProductCode)? - two editions of the same product.

2009-10-15 Thread Dave Kolb
Yes thanks! I had seen a couple such references before and did not realize you all were talking like an xpath compiler J Kind of like talking like a pirate. Arrgh! Sorry I can't help with your actual question.Dave -Original Message- From: Sascha Beaumont

Re: [WiX-users] Custom Before= and After= vs. CustomAction Execute=

2009-10-14 Thread Dave Kolb
Thanks Sebastian. This one is good too http://blogs.technet.com/alexshev/pages/from-msi-to-wix.aspx I have some reading to do! - Dave -Original Message- From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Sent: Wednesday, October 14, 2009 1:04 AM To: General

[WiX-users] Fetching APPLICATIONFOLDER from CA fails with IndexOutOfRangeException

2009-10-14 Thread Dave Kolb
The following code get the following exception. Can I not fetch this property from my immediate custom action? Unfortunatley the session object has an indexer that cannot be enumerated so I'm at a loss as to what can be indexed from the sessin object! - Thanks, Dave public static

[WiX-users] Types of variables question

2009-10-14 Thread Dave Kolb
I understand these variable types from the wix doc: $(env._NtPostBld) Gets the environment variable %_NtPostBld% $(sys.CURRENTDIR) Gets the system variable for the current directory $(var.A) Gets the variable A that was defined in this xml But what are these that I have seen

[WiX-users] How does a votive project pass variables to candle?

2009-10-14 Thread Dave Kolb
I tried looking at the wix.targets but do not understand msbuild adequately. Are the many var.Projectname.xxx and var.Solutionxxx variables passed in on the command line with -d or are they written to a .wxi file or does candle take special input for variable somehow besides the -d option? Seems

Re: [WiX-users] How does a votive project pass variables to candle?

2009-10-14 Thread Dave Kolb
\Release\Product.wixobj -arch x86 Product.wxs From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Wednesday, October 14, 2009 4:04 PM To: 'General discussion for Windows Installer XML toolset.' Subject: How does a votive project pass variables to candle? I tried looking

Re: [WiX-users] Fetching APPLICATIONFOLDER from CA fails with IndexOutOfRangeException

2009-10-14 Thread Dave Kolb
Sorry, this was my bug. APPLICATIONFOLDER is there just fine! From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Wednesday, October 14, 2009 3:05 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Fetching APPLICATIONFOLDER from CA fails

Re: [WiX-users] Types of variables question

2009-10-14 Thread Dave Kolb
Thanks so much Blair. You are absolutely a fountain of knowledge and it is so wonderful you generously share it. Dave -Original Message- From: Blair [mailto:os...@live.com] Sent: Wednesday, October 14, 2009 4:59 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re:

[WiX-users] ServiceInstall and ServiceControl question

2009-10-13 Thread Dave Kolb
I use ServiceInstall and ServiceControl and noticed that if my service failed to start [a bug in my code], then the install failed. Is there a means to try to start the service and have it install even if it fails to start? P.S. Also, fwiw, I noticed that if I used two ServiceControl

Re: [WiX-users] Are shortcut names even useful anymore?

2009-10-13 Thread Dave Kolb
to them. The windows shell which is responsible for showing the start menu is either all or mostly native code, the .net version doesn't matter (just the underlying platform). The disk format doesn't matter either. -Original Message- From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent

Re: [WiX-users] ServiceInstall and ServiceControl question

2009-10-13 Thread Dave Kolb
can't be redefined to ignore (all you can do is condition it, which isn't what you are asking). -Original Message- From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Monday, October 12, 2009 11:32 PM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users

Re: [WiX-users] Are shortcut names even useful anymore?

2009-10-13 Thread Dave Kolb
] Are shortcut names even useful anymore? Be careful there. A short name (8.3 convention) is different than a Shortcut, which is what your subject line implies. -Original Message- From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Tuesday, October 13, 2009 8:56 AM To: 'General discussion

[WiX-users] Are we supposed to register products ourselves or should WIX/MSI do it automagically?

2009-10-13 Thread Dave Kolb
When a product is installed, are we supposed to have our .wxs file register an entry into HKLM\Software\[Company]\[Product] ourselves or is this something the .msi installer is supposed to do for us somehow? I looked at my old .msi files build with VS2008 before wix and did not see any special

Re: [WiX-users] Are we supposed to register products ourselves or should WIX/MSI do it automagically?

2009-10-13 Thread Dave Kolb
Nevermind on the ARP stuff. I defined the values and they just work! Am still wondering what is the proper thing to do in regards to registering the install of the product though. Thanks, Dave From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Tuesday, October 13, 2009 1:24 PM

Re: [WiX-users] Are short names even useful anymore?

2009-10-13 Thread Dave Kolb
Thanks Chad. In spite of calling it a shortcut, I know what a SFN is since working on PCs from the very first version of DOS 1.0, but am wondering why I might want to have anything meaningful for a short name nowadays. Since these names would be for my program files I'd really rather not any

Re: [WiX-users] Are short names even useful anymore?

2009-10-13 Thread Dave Kolb
Brant, Know anyway for wix to check that I am installing on NTFS and not a FAT system? I have no desire whatsoever of perpetuating anything in regards to FAT...Thanks, Dave -Original Message- From: Brant Gurganus [mailto:br...@gurganus.name] Sent: Tuesday, October 13, 2009 3:00 PM To:

Re: [WiX-users] Are short names even useful anymore?

2009-10-13 Thread Dave Kolb
Interesting. I still think I will not specify short names so as to let them auto generate and see if I ever run into problems. Thanks, Dave -Original Message- From: Brant Gurganus [mailto:br...@gurganus.name] Sent: Tuesday, October 13, 2009 4:23 PM To: General discussion for Windows

[WiX-users] Custom Before= and After= vs. CustomAction Execute=

2009-10-13 Thread Dave Kolb
Is there somewhere written up an overview of the flow of the installer in general and how sequencing actions work? I would like to better understand how to sequence actions and am confused about CustomActions Execute=Immediate|Deferred|etc. vs. Custom Action Before= and After= and how they work

Re: [WiX-users] Custom Before= and After= vs. CustomAction Execute=

2009-10-13 Thread Dave Kolb
I found this by John McFadyen - http://johnmcfadyen.spaces.live.com/blog/cns!9DD01136FC094724!167.entry which helps a lot to understand the grand scheme of things and clears up some things I was confused about. Any other big picture references appreciated. From: Dave Kolb [mailto:d

[WiX-users] Are shortcut names even useful anymore?

2009-10-12 Thread Dave Kolb
I don't use any shortcut names in my install and notice they are generated for me with some seemingly random letters. Are actual shortcut names even useful on any .NET 3.5 system which is the requirement for my application? I'm also OK with requiring an NTFS [non FAT32] disk though I'm not

Re: [WiX-users] How do you copy a set of files to multiple places using Wix?

2009-10-12 Thread Dave Kolb
Repeat the component and file elements for each directory. -Original Message- From: Keith Nicholas [mailto:keith.nicho...@gmail.com] Sent: Monday, October 12, 2009 10:49 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How do you copy a set of files to multiple places using

Re: [WiX-users] Which way to install a Windows service is best?

2009-10-11 Thread Dave Kolb
I got my 64 bit C# Custom Action running just fine and it can set some properties that I can use to set my account and password on my ServiceInstall element. Thanks to everyone. Wix is pretty cool! I have two other questions though: 1. When my CA sets properties they print in the log How can

Re: [WiX-users] Which way to install a Windows service is best?

2009-10-11 Thread Dave Kolb
: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Sunday, October 11, 2009 2:48 AM To: 'General discussion for Windows Installer XML toolset.' Subject: RE: [WiX-users] Which way to install a Windows service is best? I got my 64 bit C# Custom Action running just fine and it can set some properties

Re: [WiX-users] Which way to install a Windows service is best?

2009-10-11 Thread Dave Kolb
Good information thanks! -Original Message- From: Blair [mailto:os...@live.com] Sent: Sunday, October 11, 2009 3:01 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Which way to install a Windows service is best? 1. There are several issues that

[WiX-users] Thanks!

2009-10-11 Thread Dave Kolb
! Great stuff this WIX is! - Dave Kolb -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry

Re: [WiX-users] Thanks!

2009-10-11 Thread Dave Kolb
I installed the service with WIX using the ServiceInstall element. What snippet are you looking for? - Dave -Original Message- From: Jahanzeb Khan [mailto:jk...@commondesk.com] Sent: Sunday, October 11, 2009 9:03 PM To: General discussion for Windows Installer XML toolset. Subject: Re:

[WiX-users] Which way to install a Windows service is best?

2009-10-10 Thread Dave Kolb
I see at least 4 ways my windows service could be installed. My goal is to be able to call some custom code so that I can set the username and password for the service by looking up and decrypting a value from the registry. Therefore I do not think that ServiceInstall is an option. The

Re: [WiX-users] Which way to install a Windows service is best?

2009-10-10 Thread Dave Kolb
to install the service, but then change the appropriate user info via the WiX registry calls? That way MSI is in charge of correctly uninstalling and removing the appropriate registry settings. Dominique. -Original Message- From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Sat 10/10

Re: [WiX-users] Which way to install a Windows service is best?

2009-10-10 Thread Dave Kolb
, October 10, 2009 1:55 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Which way to install a Windows service is best? Guten Tag Dave Kolb, am Samstag, 10. Oktober 2009 um 19:24 schrieben Sie: I would love to but the information I need to look up is actually the service account

Re: [WiX-users] Which way to install a Windows service is best?

2009-10-10 Thread Dave Kolb
Thanks Blair. I will have a go at using ServiceInstall and running a prior CA to set properties for it and will avoid any evil self install patterns. I am confused on how DTF fits into the picture though. 1. Is DTF necessary to run a custom action built with C# managed code? 2. Must I supply my

Re: [WiX-users] Which way to install a Windows service is best?

2009-10-10 Thread Dave Kolb
to talk to out of process .NET through a pipe though huh? Interesting! - Dave -Original Message- From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] Sent: Saturday, October 10, 2009 6:35 PM To: 'General discussion for Windows Installer XML toolset.' Subject: RE: [WiX-users] Which way