Re: [WiX-users] Repair Problem

2012-12-11 Thread Rob Mensching
Check out the File Versioning Rules topic in the MSI SDK. It explains this
behavior.


On Tue, Dec 11, 2012 at 3:44 PM, Sanjay Poria wrote:

> My company moved to using msi around a year and I authored a major product
> release and subsequent patch files (small update msp's that do not
> increment the baseline version) using wix.  The product contains a number
> of binary files. Recently we had an issue where the customer manually
> replaced a couple of the binary files (.pdb) in the Program Files install
> area. Now, there was a later issue which meant that they wanted to go back
> to the latest installed version so we suggested just doing a "Repair" of
> the product from the control panel... Unfortunately the repair had no
> effect on the binary files and did not replace them with the version in the
> latest installed product.
>
> After some research I find that if I manually run a repair with the /fo
> flag (the default), the files are not replaced, but if I run it with /fd,
> they are replaced as expected.
>
> The help says
> o - Reinstalls if file is missing or an older version is installed.
> d - Reinstalls if file is missing or a different version is installed.
>
>
> My questions are:
> -  Why didn't msiexec realise the file was different based on the
> differing timestamp
> -  More worrying, when doing a repair from the control panel, the
> repair clearly fails for all/some of the files, but we get no error
> message. Should we tell the client to always run it from the command line?
> Can we build this option into the original msi and what are the downsides
> of this?
> -  Clearly the customer is breaking some best practises by
> overwriting files in the Program Files area but I did expect they would be
> safe because the repair would work. Are there some rules we can give to the
> customer to follow in the future?
>
> Any help is appreciated (especially because I know this is really a MSI
> issue and not a Wix one).
> Regards
> sanjay
>
> --
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
virtually,

   Rob Mensching
   http://RobMensching.com LLC
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] CustomTables & BootstrapperApplicationData

2012-12-11 Thread chefkoch
I am trying to create a custom table and making the content available for
Burn/CustomMBA via the BootstrapperApplicationData.xml.

When creating a custom table inside my MSI  product using the following
excample (from
http://blog.torresdal.net/2008/10/24/wix-and-dtf-using-a-custom-action-to-list-available-web-sites-on-iis/)
 it is included in the MSI which I checked with
http://code.google.com/p/lessmsi/ .

> 
>Type="int" Width="4" />
>PrimaryKey="no"/>
>PrimaryKey="no"/>
>Nullable="yes"/>
>PrimaryKey="no" Nullable="yes"/>
>   
> 0
> Bogus
> 0
> 
> 
>   
> 


Changing the table attributes from

> 

to

>   BootstrapperApplicationData="yes">

does not create the table instide the MSI file anymore nor does it create
the entries in BoostrapperApplicationData.xml

Should the tables be in the MSI only if  BootstrapperApplicationData="no"
or not defined or should the tables be always in the MSI file?

What's the correct way to get the table content into
the  BootstrapperApplicationData.xml as well?

Thanks for your support,
Best regards
chefkoch
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Repair Problem

2012-12-11 Thread Sanjay Poria
My company moved to using msi around a year and I authored a major product 
release and subsequent patch files (small update msp's that do not increment 
the baseline version) using wix.  The product contains a number of binary 
files. Recently we had an issue where the customer manually replaced a couple 
of the binary files (.pdb) in the Program Files install area. Now, there was a 
later issue which meant that they wanted to go back to the latest installed 
version so we suggested just doing a "Repair" of the product from the control 
panel... Unfortunately the repair had no effect on the binary files and did not 
replace them with the version in the latest installed product. 
 
After some research I find that if I manually run a repair with the /fo flag 
(the default), the files are not replaced, but if I run it with /fd, they are 
replaced as expected.
 
The help says
o - Reinstalls if file is missing or an older version is installed.
d - Reinstalls if file is missing or a different version is installed.
 
 
My questions are:
-  Why didn't msiexec realise the file was different based on the 
differing timestamp
-  More worrying, when doing a repair from the control panel, the 
repair clearly fails for all/some of the files, but we get no error message. 
Should we tell the client to always run it from the command line? Can we build 
this option into the original msi and what are the downsides of this?
-  Clearly the customer is breaking some best practises by overwriting 
files in the Program Files area but I did expect they would be safe because the 
repair would work. Are there some rules we can give to the customer to follow 
in the future?
 
Any help is appreciated (especially because I know this is really a MSI issue 
and not a Wix one).
Regards
sanjay
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] run Sql commands through wix

2012-12-11 Thread John Cooper
Suitable de-fanged:



--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 


-Original Message-
From: John H Bergman (XPedient) [mailto:john.berg...@xpdnt.com] 
Sent: Thursday, December 06, 2012 10:39 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] run Sql commands through wix

Does anyone have an example of this they could share or point me to?

-Original Message-
From: Rob Mensching [mailto:r...@robmensching.com]
Sent: Wednesday, December 5, 2012 9:09 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] run Sql commands through wix

See the Sql elements in the wix.chm.


On Wed, Dec 5, 2012 at 5:10 AM, Chaitanya  wrote:

> Hi,
>
> I want to run Sql commands through Wix,like insert,update,create.
>
> How to run sql commands through Wix.
>
> Suggest me
>
> Thanks,
>
> Chaitanya.
>
>
> --
>  LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free 
> Trial Remotely access PCs and mobile devices and provide instant 
> support Improve your efficiency, and focus on delivering more 
> value-add services Discover what IT Professionals Know. Rescue 
> delivers http://p.sf.net/sfu/logmein_12329d2d
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



--
virtually,

   Rob Mensching
   http://RobMensching.com LLC
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely 
access PCs and mobile devices and provide instant support Improve your 
efficiency, and focus on delivering more value-add services Discover what IT 
Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely 
access PCs and mobile devices and provide instant support Improve your 
efficiency, and focus on delivering more value-add services Discover what IT 
Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Alter Packages in Custom BA? [BURN]

2012-12-11 Thread Nicholas Pierce
You can use the InstallCondition attribute of MsiPackage (or ExePackage or
MsuPackage) to control whether a package is installed.  If InstallCondition
evaluates to true, then the package is installed, but if InstallCondition
evaluates to false, then the package will be removed unless it's permanent.
 I have a few numeric variables that I set to 1 if I want certain packages
installed, or 0 if I don't.

Alternatively, I think you can listen for the PlanPackageComplete event and
force Burn to install or ignore a particular package from your bootstrapper
application, though I haven't tried that myself.

Nicholas

On 11 December 2012 16:07, Bull, Thomas  wrote:

> I am making a custom bootstrapper WPF UI to allow consumers to select
> which MSIs and specific features within MSIs to install.  I think I have my
> head around how to select features within an MSI by setting
> Engine.StringVariables["TEMPVAR"] and then setting an MSIProperty to that
> Burn variable.  I define the variable in my bundle.wxs like so:
>
> 
>
> Please correct my logic if the above assumption is wrong!
>
> What I can't seem to figure out is how to conditionally install an MSI
> based on a burn variable value.  After I set the variable value I run
> Engine.Detect() and then Engine.Plan(LaunchAction.Layout).  However, I
> don't see my variable's value updated in the log, nor do I see the
> condition test executed.  Can anyone provide some insight as how to proceed
> with programmatically updating my burn plan?
>
> Thanks for the previous help and for taking the time with this question!
>
> --
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Bundles in Bundles: How? (v3.7 wix Bundle Reference Counting feature)

2012-12-11 Thread Wesley Manning
Hi,

Question for one of the developers maybe.  I'm using the bundle addon feature 
which is working good.  Now I want to include a couple of the addon bundles I 
created in the main bundle (my main installer).

How do I include bundles in bundles?  There is ExePackage and MsiPackage but no 
BundlePackage.   I thought this was a feature in v3.7 (or do I need to use EXE 
package?).  I have wix 3.7.1204.0 installed.

Thanks,

Wes


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Alter Packages in Custom BA? [BURN]

2012-12-11 Thread Bull, Thomas
I am making a custom bootstrapper WPF UI to allow consumers to select which 
MSIs and specific features within MSIs to install.  I think I have my head 
around how to select features within an MSI by setting 
Engine.StringVariables["TEMPVAR"] and then setting an MSIProperty to that Burn 
variable.  I define the variable in my bundle.wxs like so:



Please correct my logic if the above assumption is wrong!

What I can't seem to figure out is how to conditionally install an MSI based on 
a burn variable value.  After I set the variable value I run Engine.Detect() 
and then Engine.Plan(LaunchAction.Layout).  However, I don't see my variable's 
value updated in the log, nor do I see the condition test executed.  Can anyone 
provide some insight as how to proceed with programmatically updating my burn 
plan?

Thanks for the previous help and for taking the time with this question!
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users