Re: [WiX-users] Allow installer to install over itself

2008-05-06 Thread Rob Hamflett
Have you tried configuring the Upgrade table to include the current version number? I think in this case you need to schedule RemoveExistingProducts before the new install. Rob Colin Bleckner wrote: Hrm, something like that might worked. Just to make sure I understand what's going on, it

[WiX-users] Reboot problem

2008-05-06 Thread Åkergården , Jon
Hi, We want to ensure that a Windows Service is started correctly after a successful installation by rebooting the machine since we've had occasional problems starting it directly from the msi. After the reboot the installation resumes with starting the installation procedures - such as

Re: [WiX-users] RFC: File vitality

2008-05-06 Thread Rob Hamflett
I'd vote for on by default. In our installers, the files that aren't vital could still cause problems overall if they weren't present. For example, the help docs aren't vital because the product doesn't need them to work, but it would be very annoying for the user if they can't find them

[WiX-users] Wix: Write a registry Entry during uninstallation

2008-05-06 Thread Ian Sant
Hi Guys, I am using Wix to write my MSIs. I need to update a registry entry while uninstalling my application, does anybody know how this could be done. Thanks Nixu - This SF.net email is sponsored by the 2008 JavaOne(SM)

Re: [WiX-users] Failed to drop sql database

2008-05-06 Thread Eric Latendresse
Thanks Rob, that worked. Eric From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Monday, May 05, 2008 9:53 PM To: Eric Latendresse; wix-users@lists.sourceforge.net Subject: RE: Failed to drop sql database What I usually do is build the fixed MSI then do a recache-reinstall (msiexec

Re: [WiX-users] CustomAction to install the JRE to a subdirectory of TARGETDIR

2008-05-06 Thread Tony Hoyle
Ben Greene wrote: This doesn’t seem to work though. When I run it either nothing happens, or I get a dialog telling me about the command-line switches msiexec accepts. You can't run an msi from within an msi, so what you're attempting isn't going to work. You have two options:

Re: [WiX-users] RFC: File vitality

2008-05-06 Thread Christopher Karper
Just allow it to be set on a higher level, like componentGroup componentGroup ... unspecifiedVital=yes On Tue, May 6, 2008 at 4:28 AM, Rob Hamflett [EMAIL PROTECTED] wrote: I'd vote for on by default. In our installers, the files that aren't vital could still cause problems overall if they

[WiX-users] Condition on Feature

2008-05-06 Thread Srinivas Tirupati
I have a feature in my product which needs to be installed only if VS 2005 is present. I have done this by adding a condition element to Feature Element. Feature Id='AdapterSDKTools' Title='$(loc.ToolsTitle)' Description='$(loc.ToolsDescription)' AllowAdvertise='no' Level='1000'

Re: [WiX-users] Need assistance!

2008-05-06 Thread Wilson, Phil
Is there some reason that sequencing the custom actions appropriately doesn't solve this problem? Run the install custom action deferred after the files are installed, and at uninstall time before they are removed. Phil Wilson From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [WiX-users] Adding extension table with file extension

2008-05-06 Thread Michal Malka
Thanks - it was really solved when I added the Verb table (manually to the msi file). The problem is that it didn't add the table when I added the following line to the wxs file: ProgId Id=E2E extension Advertise=yes Extension Id=E2E Advertise=yes

Re: [WiX-users] Need assistance!

2008-05-06 Thread Dwyer, Shawn
We use a similar approach of storing support files in a Binary table and extracting them to %TEMP% during a custom action. However one thing we ran into was that during the custom actions that wanted to use these files, %TEMP% was not the same as where we extracted them to. This was due to each

[WiX-users] SQL Script question

2008-05-06 Thread Christopher Karper
Why is it that SQLScripts don't use property replacement, but SQLStrings do? It's a real hassle to break large DB deployment into dozens of smaller SQL string elements, when the sql script action should be able to do everything I need. Am I missing some technical limitation that makes it

Re: [WiX-users] Need assistance!

2008-05-06 Thread Kiran Subhedar (Sogeti)
Thanks for the heads up Shawn. I have just completed writing my C++ custom action although I am a .Net coder. :) I am using the Win API function GetTempPath() in my C++ CA to refer to the %TEMP% directory and back in my WIX file, I am calling my support files as [TempFolder]support.exe. So

Re: [WiX-users] Wix: Write a registry Entry during uninstallation

2008-05-06 Thread Rob Mensching
Heh, what's the scenario for that? It is rather unusual to write stuff to the machine while uninstalling. The Windows Installer doesn't provide native support for it, but I know someone is writing a Custom Action to do this (to fix some TypeLib bugs) but I don't know if/when that work will be

Re: [WiX-users] Adding extension table with file extension

2008-05-06 Thread Rob Mensching
That sounds like a bug. If you had a Verb under an advertised Extension then the Verb table should have been populated. If you have a small repro of this, it would be fantastic if you could open a bug. From: Michal Malka Sent: Tuesday, May 06, 2008 09:58 To: Blair Murri; Bob Arnson Cc: Rob

Re: [WiX-users] SQL Script question

2008-05-06 Thread Rob Mensching
Yeah. smile/ WcaGetPropertyString, looks up the Property name passed in and gets a value. You can't pass in Please, resolve this [Property] for me and get back Please, resolve this PropertyValue for me. You'd have to process the SQL Script looking for [Property] strings and update them. To

Re: [WiX-users] Need assistance!

2008-05-06 Thread Dwyer, Shawn
I'm not sure if you'll still have the problem, but my guess is that you will. Our 'ExtractSupportFiles' C++ custom action calls GetTempPath() and extracts all our support files to a subfolder. At this point (because of terminal services) the installer is running under session 1, so the path

Re: [WiX-users] SQL Script question

2008-05-06 Thread Christopher Karper
Fair enough. I know that SQL uses the square brackets itself, and I had just stripped those out since I don't use characters that require them in my SQL object names. I had also toyed with the idea of using a different bracket style for my properties. How about if I got all the records in the

Re: [WiX-users] Need assistance!

2008-05-06 Thread Rob Mensching
Note: if you extract code files out during the script generation phase then use them during the execution phase and your deferred Custom Action is elevated, you could be open to an elevation of rights attack. Namely, the attacker could wait for your first custom action to lay down the DLLs to

Re: [WiX-users] Need assistance!

2008-05-06 Thread Tony Juricic
Newbie - I have a similar need to use support DLLs and action during install and uninstall. Can somebody please explain or provide a link to a sample on how to use custom action to extract binary files? - This SF.net email is

Re: [WiX-users] SQL Script question

2008-05-06 Thread Rob Mensching
You can't just look for Properties in the Property table because technically they can be defined at any time. Only the Properties that have non-blank default values are in the Property table. However, the different bracketing style is a very interesting idea. It's lots and lots of string

Re: [WiX-users] Adding extension table with file extension

2008-05-06 Thread Rob Mensching
Yes, it does and it should default to the same as the parent (actually required to be the same as parent). From: Blair Murri [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 06, 2008 11:40 To: Michal Malka; Blair Murri; Bob Arnson Cc: Rob Mensching; wix-users@lists.sourceforge.net Subject: RE:

Re: [WiX-users] Need assistance!

2008-05-06 Thread Rob Mensching
Since my email is being screwy (bounce, bounce, bounce): Be *very* *very* careful that the second custom action does not elevate or has some way to verify that the supporting files were not tampered with. (Another idea to my first idea of marshalling the binary data through CustomActionData,

Re: [WiX-users] Adding extension table with file extension

2008-05-06 Thread Blair Murri
Does the verb element accept Advertise=yes? (yes, I know I could go look it up, but I am assuming that with that attribute missing, it is going into the Registry table instead of the Verb table and thus MSI can't find the row it is looking for). From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [WiX-users] SQL Script question

2008-05-06 Thread Christopher Karper
Yeah, I had feared the properties would be like that. There doesn't seem to be a get me all the current properties type of method. There probably is a way, I'm just not that smart. ;-) We maintain our database deployments and upgrades in a .sql file. It generally starts life as the output from

Re: [WiX-users] Need assistance!

2008-05-06 Thread Christopher Karper
PGP the files, then send the public key over CustomActionData. :-D Is that *too* creative? Chris On Tue, May 6, 2008 at 2:41 PM, Rob Mensching [EMAIL PROTECTED] wrote: Note: if you extract code files out during the script generation phase then use them during the execution phase and your

[WiX-users] WixUtilExtension Performance Counters

2008-05-06 Thread Jacobson, Kurt
Hi Everyone, I was wondering if anyone could point me in the direction of a working example of how to define performance counters through the WixUtilExtension? Perhaps I'm missing something obvious, but the only docs I find are for the schema (which is nice, but not much of a how-to) and a few

[WiX-users] How do I find out the install directory of an upgrade application?

2008-05-06 Thread dB.
I am trying to upgrade an application with some upgrade code, so I am uninstalling it. But I want to reinstall my current application into the same folder, so I need to find out the directory of the previous app. I got an Upgrade table with the correct upgrade ID and that tells me that I have

[WiX-users] Wix 3.0 Event log read write permissions

2008-05-06 Thread Apoorv Shrivastava
I am using Wix Release 3.0.4102.0 and I want to grant Network Service access to Application Event log. I am declaring this as: Component Id=RegKeyPermissionComponent DiskId=1 Guid=A4FA2F01-DC4A-4CA7-995F-56947018EFCE KeyPath=yes RegistryKey

Re: [WiX-users] See if a file is going to be installed

2008-05-06 Thread Blair Murri
Try out the Feature and Component State Values section at the bottom of this page: http://msdn.microsoft.com/library/aa368012.aspx You will probably use the $ComponentId=3 for installation, and $ComponentId=2 for removal. Note that you may get true for $ComponentId=3 during repairs if some

[WiX-users] is it valid to reference a binary file id using a public property value?

2008-05-06 Thread Robert O'Brien
is it valid to reference a binary file id using a public property value? e.g. if I have the following public property and binary files defined Property Id=ENVIRONMENTID Value=Unk / Binary Id=MyService.exe.dvt.config SourceFile=$(var.SolutionDir)Configuration\MyService.exe.dvt.config / Binary

Re: [WiX-users] is it valid to reference a binary file id using a public property value?

2008-05-06 Thread Robert O'Brien
Based on results the compiler doesn't like my attempt to use a Binary file id reference comprised of a public property value [#MyService.exe.[ENVIRONMENTID].config]. That being the case Is there some way of accomplishing this file name reference that I'm overlooking? From: Robert O'Brien

[WiX-users] MSBuild with multiple localizations

2008-05-06 Thread Kevin Richardson
Greetings, Does anyone have an example of building multi-language WiX installers with MSBuild? I've looked at the single-language examples, but what I'd like to do is have a .wixproj that builds an installer in 10+ languages. My current process uses the WiX tools manually through batch

Re: [WiX-users] Wix 3.0 Event log read write permissions

2008-05-06 Thread Kevin Richardson
You'll want to use util:PermissionEx instead. Include WixUtilExtension.dll with and use: util:PermissionEx GenericAll=yes Read=yes Write=yes User=NetworkService/ This will append the permissions rather than replacing them. Remember to add