Re: [WiX-users] How do I reference Directory Id's in custom action's exeCommand

2013-04-03 Thread Alain Forget
Short answer: [#myDirId] might work. Long answer: I've done it by setting a property like so for file Ids: ... Alain -Original Message- From: George Fleming [mailto:gef...@microsoft.com] Sent: April 3, 2013 20:08 To: wix-users@lists.sourceforge.net Subject:

[WiX-users] How do I reference Directory Id's in custom action's exeCommand

2013-04-03 Thread George Fleming
If I have a Directory tree: And a custom action: < CustomAction Id="xxx" Directory="PowershellLocation" ExeCommand="powershell.exe -NoLogo -NonInteractive -WindowStyle Hidden -Command " APS-Cmd -Path Full-path-of-dire

Re: [WiX-users] Windows Service always starts (even when I don't want it to)

2013-04-03 Thread Steven Ogilvie
The ServiceInstall sets the StartType to automatic when the system is started: Start Enumeration Determines when the service should be started. The Windows Installer does not support boot or system. This attribute's value must be one of the following: AutoThe service will start during s

Re: [WiX-users] Windows Service always starts (even when I don't want it to)

2013-04-03 Thread George Fleming
Does "Start" in ServiceControl override "Start" in ServiceInstall? I want to "install" the service, but not have it auto-start. I'm using a virtual service account, created by the service itself, and it has no password. -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@tit

Re: [WiX-users] How to perform installation per-user or per-machine by detecting previous installation context?

2013-04-03 Thread Derek Wickern
I was able to upgrade from per-user to per-machine using Burn to fire off an uninstall utility. http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WiX-3-6-upgrading-perUser-to-perMachine-td7582131.html#a7582482 On 3/22/13, sunny wrote: > Hello, > > I have an installer version 1.0.0 re

Re: [WiX-users] How to display project configuration (eg Test or Prod) when using minimal UI

2013-04-03 Thread Rob Mensching
You can customize the WiX dialogs if you want. On Wed, Apr 3, 2013 at 12:21 PM, j2associates wrote: > Hello all, > > We are using a Wix setup project with the minimal UI. Is there a way to > include the project configuration so that it is displayed somewhere in the > installation dialogs? I woul

Re: [WiX-users] question about same upgrade code in multiple bundles

2013-04-03 Thread Rob Mensching
This is possible. First the new B.exe needs a higher Bundle/@Version than any previously released Bundle. You can give the new B.exe one of the existing UpgradeCodes or give it a new one. The important thing is to add RelatedBundle elements where the Id attribute is set to the UpgradeCode of the ol

[WiX-users] Upgrade best practices with Burn

2013-04-03 Thread Marco Tognacci
HI, I have a Bootstrapper made with Burn in which I install some prerequisites like NET Framework 4.0, VC Redistributable, and then 2 or more msi packages that install the programs that make the suite that I want to install using Burn.I have seen the documentation about Upgrade of msi package wi

Re: [WiX-users] Windows Service always starts (even when I don't want it to)

2013-04-03 Thread Steven Ogilvie
One issue I think you have is in the ServiceControl, you have it to Start on Install but to Stop on both Install and Uninstall... If you want the service NOT to start to test, then take out Start="install" After testing put back in Start="install" and change Stop="uninstall" Question re ServiceI

[WiX-users] Windows Service always starts (even when I don't want it to)

2013-04-03 Thread George Fleming
I have Wix code that looks something like this to start a Windows service using a virtual service account: And it works fine in starting the service. Problem is, lately the service has been crashing, and therefore I wish to temporarily disable auto-start of the serv

Re: [WiX-users] Removing a feature with a patch

2013-04-03 Thread Brown, Dan
Actually , it's a patch applying a major upgrade in this case. I was led to believe this might be possible by an error message that pyro gives when you try to remove a component from a feature in the patch: "Removing component '{0}' from feature '{1}' is not supported. Either the component was r

[WiX-users] question about same upgrade code in multiple bundles

2013-04-03 Thread ptr
hey all I have a bundle B.exe that installs NET4.exe , VS2010CRT.msi , OurProduct.msi. The bundle is compressed and embeds all the packages. NET4.msi being the .NET 4 full framework VS2010CRT.msi being VS2010 CRT runtimes OurProduct.msi being all the assemblies that we develop inhouse. We supp

[WiX-users] How to display project configuration (eg Test or Prod) when using minimal UI

2013-04-03 Thread j2associates
Hello all, We are using a Wix setup project with the minimal UI. Is there a way to include the project configuration so that it is displayed somewhere in the installation dialogs? I would like users to know that they are installing to Test, Lab or Prod. Thanks in advance for any ideas and/or sugge

Re: [WiX-users] Run custom action on install and repair but not on uninstall

2013-04-03 Thread Jan Fałek
Thank you, That works. Why it is not obvious for me that Repair is Reinstall? Not Installed or REINSTALL -Original Message- From: Jan Fałek [mailto:jan.fa...@gmail.com] Sent: April-03-13 11:31 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Run custom action on install and re

Re: [WiX-users] Change content of Config file after installation

2013-04-03 Thread chennam
Hey in Continuation of the previous solution (see previous comment) Can we do file search of Web.Prod.Web1.config and replace some content "web1" to "web2" on conditional basis based on [Computername] we are Installing? Like if [ComputerName] is WEBPQR then replace Web1 with web2 allover the cont

Re: [WiX-users] ProductVersion msi property vs Wix Version@Product

2013-04-03 Thread Pally Sandher
Without seeing your Upgrade or MajorUpgrade code it's hard to say what it's actually doing. As Rob says, I suspect it's upgrading when the versions are equal due to the way your Upgrade table is laid out. Have you tried installing 4.1.1.8896 first and then trying to install 4.1.1.8878 & seeing

Re: [WiX-users] ProductVersion msi property vs Wix Version@Product

2013-04-03 Thread ptr
I understand that msi won't recognize 4.1.1.8878 as a higher version over 4.1.1.8896 but will it recognize 4.1.1.8896 as higher than 4.1.1.8878. The msi document talks about version in terms of "major.minor.build" in the link i have attached. It seems to work presently but I was wondering why as p

Re: [WiX-users] System Properties?

2013-04-03 Thread James Allen
Thanks for all the help guys, that got me unstuck! James Allen -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certifi

Re: [WiX-users] ProductVersion msi property vs Wix Version@Product

2013-04-03 Thread Rob Mensching
Windows Installer will not recognize "4.1.1.8878" as a higher version than "4.1.1.8896". However, you can write your upgrade to say "Upgrade when the version is the same". Technically speaking, I think you could write "Upgrade when the version is lower" but I don't know that anyone does that. On

Re: [WiX-users] System Properties?

2013-04-03 Thread Hoover, Jacob
I would use bal:Condition instead of Bundle/@Condition. The bal:Condition allows you to specify a message, the Bundle/@Condition feels like it is more designed for when your BA requires something for it to run. Ex: [PhysicalMemory] > 2048 Note, PhysicalMemory is not a burn built in variable,

[WiX-users] ProductVersion msi property vs Wix Version@Product

2013-04-03 Thread ptr
hey all The ProductVersion msi documentation talks about a 3 digit version number. I have been assigning Wix XML elment Version@Product a four digit .net Version. We are currently supporting only major upgrades so i

Re: [WiX-users] System Properties?

2013-04-03 Thread Steven Ogilvie
You need an actual number for the ServicePackLevel Try this: ((VersionNT = v5.1 AND ServicePackLevel >= 3) OR (VersionNT = v5.2 AND ServicePackLevel >= 2) OR (VersionNT = v6.0 AND ServicePackLevel >= 1 AND NTProductType = 1) OR (VersionNT = v6.0 AND ServicePackLevel >= 1 AND NTProductType = 3)

Re: [WiX-users] System Properties?

2013-04-03 Thread Rob Mensching
Sorry, I should have been more clear up front. On Wed, Apr 3, 2013 at 9:09 AM, Rob Mensching wrote: > The first list I sent is for Bundles, the second list is for MSIs. > > > On Wed, Apr 3, 2013 at 9:01 AM, James Allen wrote: > >> This will compile however the resultant .exe will not run, what

Re: [WiX-users] System Properties?

2013-04-03 Thread Rob Mensching
The first list I sent is for Bundles, the second list is for MSIs. On Wed, Apr 3, 2013 at 9:01 AM, James Allen wrote: > This will compile however the resultant .exe will not run, what am I doing > wrong? > > UpgradeCode="3601032C-27E7-A8C9-4323-88E01967A9C2145E" > Condition="((VersionNT >= v5.1

Re: [WiX-users] System Properties?

2013-04-03 Thread James Allen
This will compile however the resultant .exe will not run, what am I doing wrong? http://msdn.microsoft.com/en-us/library/windows/desktop/aa371639(v=vs.85).aspx> >=2) AND (PhysicalMemory > 2048) AND (OutOfDiskSpace = 'FALSE'))" > James Allen ---

Re: [WiX-users] Run custom action on install and repair but not on uninstall

2013-04-03 Thread Steven Ogilvie
Not Installed or REINSTALL -Original Message- From: Jan Fałek [mailto:jan.fa...@gmail.com] Sent: April-03-13 11:31 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Run custom action on install and repair but not on uninstall Hi everyone, As in the topic. I want to run CA d

[WiX-users] Run custom action on install and repair but not on uninstall

2013-04-03 Thread Jan Fałek
Hi everyone, As in the topic. I want to run CA during installation or on repair but not on uninstall. I tried couple of conditions and I give up. code example: ? -- Jan Fałek -- Minimize network downtime

Re: [WiX-users] Removing a feature with a patch

2013-04-03 Thread Rob Mensching
Sounds like you are doing a small update. If so, no. See: http://msdn.microsoft.com/en-us/library/windows/desktop/aa371855(v=vs.85).aspx On Wed, Apr 3, 2013 at 7:48 AM, Brown, Dan wrote: > Is it possible/allowed to remove a feature via a patch? > > I get a 2711 error when applying a patch that

[WiX-users] Removing a feature with a patch

2013-04-03 Thread Brown, Dan
Is it possible/allowed to remove a feature via a patch? I get a 2711 error when applying a patch that has a feature removed from the target version. Thanks, Dan -- Minimize network downtime and maximize team effectivene

Re: [WiX-users] System Properties?

2013-04-03 Thread Rob Mensching
http://wix.sourceforge.net/manual-wix3/bundle_built_in_variables.htm http://msdn.microsoft.com/en-us/library/windows/desktop/aa370905(v=vs.85).aspx On Wed, Apr 3, 2013 at 7:14 AM, James Allen wrote: > I am building a bootstrapper for which I need to check minimum system > requirements and I was

[WiX-users] System Properties?

2013-04-03 Thread James Allen
I am building a bootstrapper for which I need to check minimum system requirements and I was wondering if there is a way to check for the following : Ø Available Hard Disk Space Ø RAM Ø Processor Ø Display Screen resolution I would like to do this from my Bundle element if that is possib

Re: [WiX-users] Replacing installed msi cache

2013-04-03 Thread Rob Mensching
You can do a minor upgrade. On Wed, Apr 3, 2013 at 7:00 AM, Subbiah Ganesan wrote: > Hi all, > I have a msi released MSI1 and planning to release MSI2. i need to fix some > custom actions which will be getting executed while MSI1 gets removed. I > dont want to supply a patch since my installer n

[WiX-users] Replacing installed msi cache

2013-04-03 Thread Subbiah Ganesan
Hi all, I have a msi released MSI1 and planning to release MSI2. i need to fix some custom actions which will be getting executed while MSI1 gets removed. I dont want to supply a patch since my installer needs only Major upgrades once this is fixed. Is there any way this can done? like replacing th