[WiX-users] Change/Repair requires the msi with exactly the same name as it is when installed?

2011-01-17 Thread Elfe Xu
Hi all, I have a foo.msi in my temp folder when I install my foo application, with feature A. Then I go to the Add-Remove Program control panel, click Change, and want to install a new feature B of foo application. I got two problems then: 1, the UAC does not popup, when I click Change button an

Re: [WiX-users] Update InstallExecuteSequence Condition Programmatically using DTF

2011-01-17 Thread Rob Mensching
I'm curious, why do you need to do this? On Mon, Jan 17, 2011 at 5:05 PM, Castro, Edwin G. (Hillsboro) < edwin.cas...@fiserv.com> wrote: > I’d like to write a program using DTF to open up a MSI package and > programmatically update some Conditions in the InstallExecuteSequence table. > This progr

Re: [WiX-users] how to control File Sequence no in WIX

2011-01-17 Thread Rob Mensching
Merge Modules mess up patchwiz (aka: PCP) patching because their file sequencing is extremely limited. In fact, there is a tool called "melt.exe" in the WiX toolset that converts a Merge Module in to a .wixlib to make it more consumable for patching. Sequencing is calculated at the Product level.

Re: [WiX-users] Update InstallExecuteSequence Condition Programmatically using DTF

2011-01-17 Thread Castro, Edwin G. (Hillsboro)
It turns out I need to execute another view (an update view) once I've found the record I'm interested in. Here is the code in all its glory for those who are curious. Note: This is written as a PowerShell script. # $packages is a collection of strings representing the path to the MSI packages

Re: [WiX-users] Update InstallExecuteSequence Condition Programmatically using DTF

2011-01-17 Thread Castro, Edwin G. (Hillsboro)
I'm trying to emulate opening my MSI package with Orca and updating a few rows in the InstallExecuteSequence table but programmatically. I just need a nudge in the right direction so that I can figure out exactly how DTF is supposed to be used in a scenario like this. Edwin G. Castro Software D

Re: [WiX-users] Update InstallExecuteSequence Condition Programmatically using DTF

2011-01-17 Thread Christopher Painter
 Generally.  I'll avoid details about what methods to call and stuff and give you more high level advice. I've found it useful to design code like this to be driven off of XML.   For example I might right something like This allows me to write methods that do the work and methods that parse

Re: [WiX-users] how to control File Sequence no in WIX

2011-01-17 Thread wix user
Thanks Rob. Could you please give me more details on how this behaves? Is this sequence no maintained at module level (we have few merge modules in our product) or at Disk level or Product level. Also with this patch group, do we need any changes in the PCP file? Thanks On Mon, Jan 17, 2011 at

[WiX-users] Update InstallExecuteSequence Condition Programmatically using DTF

2011-01-17 Thread Castro, Edwin G. (Hillsboro)
I’d like to write a program using DTF to open up a MSI package and programmatically update some Conditions in the InstallExecuteSequence table. This program be used to update MSI packages before installation. Here’s some pseudo code for what I have so far: using (database = new Database(filePat

Re: [WiX-users] Custom Actions - C++ vs C# vs VBScript - Emailfound in subject - Email found in subject - Email found in subject

2011-01-17 Thread Rob Mensching
The WiX Documentation for FileSearch element has a link to this page: http://wix.sourceforge.net/manual-wix3/check_the_version_number.htm. On Mon, Jan 17, 2011 at 7:44 AM, Shaun Hayward wrote: > > WiX doesn't do it, the Windows Installer does. WiX is just the language. > > True :-) > > So let me

Re: [WiX-users] XmlConfig action not running on patch rollback?

2011-01-17 Thread Rob Mensching
It sounds like you mean "uninstall" a patch. Adding custom actions in patches doesn't work out so well. Patches essentially apply transform to the existing MSI then repair the MSI. In the case of uninstalling a patch, the transform is removed and the MSI is repaired. Obviously, if the custom actio

Re: [WiX-users] how to control File Sequence no in WIX

2011-01-17 Thread Rob Mensching
WiX toolset doesn't expose a method to control the sequence. You can cause new files to be added to the end of the sequence using the PatchGroup element. This is important if you use the old MSI patchwiz tools to create patches (becuase the MSI tools can't handle sequence changes, pyro doesn't have

Re: [WiX-users] Can a wixlib know the referring projects Package Platform?

2011-01-17 Thread Rob Mensching
Not today but we're hitting issues with this in WiX v3.6. Still pondering an answer... On Mon, Jan 17, 2011 at 6:56 AM, Maillet, Ed wrote: > Hey all, > I'm trying to setup some conditions in a wixlib and I'm finding that some > need to be based on the Platform attrib on the project that > refe

[WiX-users] How to continue on close of modal popup?

2011-01-17 Thread Matt Johnson
I have a UI dialog that I want to present a "warning" popup when a field is blank. The dialog is launched with SpawnDialog and says something like "Do you really want the field empty?" There are two buttons labeled "Yes" and "No". If the user picks "No", it's easy enough to close the popup an

Re: [WiX-users] XmlConfig action not running on patch rollback?

2011-01-17 Thread David Rickard (USA)
Just tried with WIX 3.6.1314. Same behavior. -Original Message- From: David Rickard (USA) [mailto:davri...@microsoft.com] Sent: Monday, January 17, 2011 11:35 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] XmlConfig action not running on patch rollback? I've got the followin

[WiX-users] how to control File Sequence no in WIX

2011-01-17 Thread wix user
Hi, I woluld like to know how we can control the file sequence no in the File table. If I add newly added file element (with new componet) at the end in next version of MSI. Still it is not getting sequence no at the end. This breaks the patches. Eg. I've a merge module with 50 file. we are using

[WiX-users] Japanese Windows 7 conundrum

2011-01-17 Thread Kurt Jensen
I have an MSI that is not installing on the Japanese language version of Windows 7 32-bit. The MSI has not been internationalized. My software is installing to E:\ rather than C:\Program Files\. And then the custom actions are not being executed. In the log I see: PROPERTY CHAN

[WiX-users] XmlConfig action not running on patch rollback?

2011-01-17 Thread David Rickard (USA)
I've got the following component: I want to add an attribute on install of the component and remove it on uninstall. Now this works just fine when the component is part of a full install and uninstall, but does not work as part of a patch. When I apply the patc

Re: [WiX-users] Wix upgrade process does not consider 4th part of the version string

2011-01-17 Thread Sanjay Rao
Hi, This is not a better solution at all. Sometimes user can support same version upgrade. On the other times he can have support of modifying the existing installation using installer. We cannot stop installation in case of same version. Regards, Sanjay Rao On 16-01-2011 18:47, Rob Mensching

Re: [WiX-users] Wix upgrade process does not consider 4th part of the version string

2011-01-17 Thread Sanjay Rao
Hi, We often have release of our software like 3.1.2 alpha release, 3.1.2 beta release etc. Internally we maintain this alpha, beta thing as fourth part of the version string. I fixed this thing in our environment by using a C++ custom action which will decide whether it's upgradable or not. Re

Re: [WiX-users] Patch Creation Issues

2011-01-17 Thread Aaron DeMarre
Thank you that gives me something to go on. I have all my components in the same fragment, so now I understand what is going on with PatchFamily. If I were to move all changed components into a separate fragment in the updated installer, would this have any effect? Or does it use the fragments decl

Re: [WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread vunder
Thanks for advice. I thought that vbscript can help me to decide this problem. The rigth thoise is C++ custom action! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-execute-binary-in-VBScript-custom-action-tp5931213p5932241.html Sent from th

Re: [WiX-users] Custom Actions - C++ vs C# vs VBScript - Emailfound in subject - Email found in subject - Email found in subject

2011-01-17 Thread Shaun Hayward
> WiX doesn't do it, the Windows Installer does. WiX is just the language. True :-) So let me rephrase: I didn't realize that MSI had a way to retrieve the DLL's version and compare against it. But since it does, the awesome WiX will support it. Does anyone have a WiX sample of how to accomplis

[WiX-users] Can a wixlib know the referring projects Package Platform?

2011-01-17 Thread Maillet, Ed
Hey all, I'm trying to setup some conditions in a wixlib and I'm finding that some need to be based on the Platform attrib on the project that references my wixlib. How can that be done? The only idea I have seems a bit like a kludge. - Ed -

Re: [WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread Christopher Painter
Since you are using VBScript, am I correct in assuming that this DLL you are calling into is a COM object?   Are you planning on registering that puppy from within your VBScript CA or something? Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a r

Re: [WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread Tobias S
Despite my recommendation not to use trouble making VBScripts (e.g. issues when customers VBScript runtime environment is not configured properly) you can use the BinaryWrite CA from http://msiext.codeplex.com/ to do what you need. http://code.dblock.org/Source/msiext/1.2/Docs/_msi_binary_8h.html#

Re: [WiX-users] Wix upgrade process does not consider 4th part of the version string

2011-01-17 Thread Neil Sleightholm
That is a good idea, I think I'll add that to my bootstrapper. Sounds like a useful feature for Burn. Neil Neil Sleightholm X2 Systems Limited n...@x2systems.com From: Albert van Peppen [mailto:alb...@insad.nl] Sent: Mon 17/01/

Re: [WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread vunder
Thanks. But I need to run file during installation. Seems I have to write new CA dll, extract file in it, run it and return result in variable -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-execute-binary-in-VBScript-custom-action-tp5931213p

Re: [WiX-users] Wix upgrade process does not consider 4th part of the version string

2011-01-17 Thread Albert van Peppen
For the reason mentioned, we use the bootstrapper for handling the correct action on the fourth part of the version string. This is not too hard and you can show a 'Internal release', 'Alpha release' or 'Beta release' logo when installing as well :) Albert van Peppen -Oorspronkelijk berich

Re: [WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread Pally Sandher
Files specified in Binary elements are embedded within the MSI. You'd need to extract it from your MSI first to a known location which is neither easy nor quick to write. The usual widely used solution is to install the file & refer to it using it's File Id (use [#FileId] for the full path) in your

Re: [WiX-users] compression

2011-01-17 Thread Pally Sandher
Try CompressionLevel="high" as it's better than "mszip" in my experience. Also your MSI itself will be a significant part of that 4.5 depending on it's complexity. Build with EmbedCab="no" to see what size it is itself. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945

Re: [WiX-users] Wix upgrade process does not consider 4th part of the version string

2011-01-17 Thread Pally Sandher
The core problem here is something you've highlighted already yourself Rob in your earlier post. Windows Installer is repeatedly & vehemently inconsistent (consistently inconsistent?). As you state, it quite happily recognises 4 version fields for File versions but Products are limited to 3. As per

Re: [WiX-users] WiX source code download

2011-01-17 Thread MeCoco
OK, the sources, for different versions, can be downloaded here: http://wix.sourceforge.net/releases/ The link can be found when going to: http://wix.sourceforge.net/ and clicking "Weekly Releases". MeCoco On 1/14/2011 5:25 PM, MeCoco wrote: > Hi all, > > I want to get the WiX sources but on so

[WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread vunder
I hahe an executable file stored in element: I need to execute it in my vbscript custom action and then depends on return code set some value to variable. To run files I am using: Set wshshell = WScript.CreateObject ("WScript.shell") wshshell.Run ("%comspec% C:\CheckIDE\CheckIDE.exe