Re: [WiX-users] Custom MBA, adding extra metadata to the Bootstrapper Application Data

2012-05-25 Thread Rob Mensching
You just add rows to a table that has BootstrapperApplicationData=yes.
The Binder will translate all those rows into
BootstrapperApplicationData.xml.

I feel like I missed some complexity in your situation.

On Thu, May 24, 2012 at 2:12 PM, Hoover, Jacob
jacob.hoo...@greenheck.comwrote:

 Has anyone tried with success to allow dynamic metadata to be included
 in a custom managed bootstrapper application? I see how the BalExtension
 is doing it via CustomTable and Row elements. I was hoping for a means
 to inject arbitrary data into the application data per project using the
 same MBA. (I want to define a feature tree and associated properties per
 installer instance.)


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
virtually, Rob Mensching - http://RobMensching.com LLC
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WIX regsvr32 with XP

2012-05-25 Thread Rob Hamflett
On 24/05/2012 17:52, Wilson, Phil wrote:
 Those top two are Visual C++ 2010 C runtime support Dlls, typically supplied 
 with this type of thing:

 http://www.microsoft.com/en-us/download/details.aspx?id=

 or with merge modules that came with Visual Studio 2010.  You'll probably 
 need a minimum of XP SP3 (see the link, system requirements).

 Phil W

Statically linking the binaries is another option.

Rob


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Completely suppress any FilesInUse dialogs

2012-05-25 Thread Rob Hamflett
On 24/05/2012 16:49, Chris Robison wrote:
 I've been trying to completely suppress any FilesInUse dialogs from
 appearing, because I want to handle it. I've tried
 setting MSIRESTARTMANAGERCONTROL=Disable, that seems to prevent restart
 manager, which is good. I've also tried creating my own FilesInUse dialog
 and setting Hidden=yes, that doesn't suppress it. The only mention online
 to success is setting the Attribute column in the Dialog table for
 FilesInUse to 0. I haven't found a way to do this in WIX. Does anyone have
 any suggestions? I would route around this dialog completely, but it
 doesn't look like that is possible.

 Chris

In addition to Dialog@Hidden=yes try setting Dialog@Modeless=yes as 
well.

Rob


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] harvesting COM information using heat.exe results in HEAT5150

2012-05-25 Thread Michael Scheepers
Hi there,

I try to extract the self-register information for a COM file written 
with VB6 a long time ago.

If I use regsvr32 to register the file manually on Win7 64-bit it works 
fine. But when I try to extract the information using heat with the 
following command line, just the file tag is generated, without having 
the com information extracted.
Command line:
heat file file.dll -sfrag -srd -suid -svb6 -out file.wxi
Result:
heat.exe : warning HEAT5150 : Could not harvest data from a
file that was expected to be a SelfReg DLL: path\to\file.dll.
If this file does not support SelfReg you can ignore this
warning. Otherwise, this error detail may be helpful to
diagnose the failure: Ein Aufrufziel hat einen Ausnahmefehler
verursacht.

When I use Dependency Walker I can see, that a delay-load dependency to 
GPSVC.DLL was not found. That might be, because I am running a Windows 7 
64-bit machine, but the DLL is for a x86 architecture, but again: 
registering the file using regsvr32 works fine. I searched the internet 
and found an article [1] where the solution is to change the 
architecture of the dll to 64-bit, but that is no option to me.

So is there an other way to have the file self-registered during 
installation except using 2 custom actions to call regsvr32 and regsvr32 /u

Regards, Michel

[1] 
http://social.msdn.microsoft.com/Forums/en-IE/vcgeneral/thread/93f8509b-b6e8-45a8-81a4-a7a127385d84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CheckBox Value via Custom Action

2012-05-25 Thread Ravi Raj
Is there any update?

On Sat, May 19, 2012 at 11:01 AM, Ravi Raj raviraj.callin...@gmail.comwrote:

 Any suggestions???


 On Tue, May 15, 2012 at 11:49 AM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I have done this thing:

 Property Id=ENABLEVIRTUALIZATION Secure=yes /CustomAction 
 Id=CA_SetProperty_EV Property=ENABLEVIRTUALIZATION Value=0 
 Execute=firstSequence /
  InstallExecuteSequence  Custom Action=CA_SetProperty_EV 
 Before=AppSearchNOT Installed AND NOT 
 OLDERVERSIONDETECTED/Custom/InstallExecuteSequenceInstallUISequence  
 Custom Action=CA_SetProperty_EV Before=AppSearchNOT Installed AND NOT 
 OLDERVERSIONDETECTED/Custom/InstallUISequence

 Now when chkbox is disabled, the registry stored value=0 (which is
 correct). Again, when I click Verify button (some action performed) and
 chkbox gets enabled (and its checked by default even in disabled state) but
 still i found registry value to be 0 but actually it should be one.
 why is this strange behavior?


 On Mon, May 14, 2012 at 7:38 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I need to perform certain action on my checkbox.
 At the start if the installation the chkbox is disabled. There is a
 button to call a custom action and verify certain things and assign a value
 to a variable.
 This variable will decide whether to enable chkbox or not. I have
 implemented till this part:

 Control Id=ImportCheckBoxType=CheckBox
 CheckBoxValue=1X=35 Y=100Width=160 Height=20  
   Disabled=yesText=!(loc.Virtual_ChkBox) 
 Property=ENABLEVIRTUAL  Condition Action=enable![CDATA[INTEGRATED = 
 1]]/Condition  Condition Action=disable![CDATA[INTEGRATED = 
 0]]/Condition/Control

 So as soon as I launch the installer, the chkbox is disabled and
 unchecked. If Verify is OK then its became enable but still unchecked.
 Suppose a user does not check this box and proceeds with installation then
 what vale gets stored in registry (I am storing this value ENABLEVIRTUALto 
 registry).

 If empty gets stored then it will give error while performing repair or
 uninstall. How can I store this value?

 Again,
 In custom action i have used a string null or empty chk (obtained from
 previous installer dialog), if not null then verify works else it give
 throw exception:

 [CustomAction]
 public static ActionResult Check(Session mpSession)
 {
 mpSession.Log(Begin CustomActions.Check);

 String sServerName = 
 GetSetProperties.GetSessionProperty(mpSession, INSTALLMACHINE, false);

 if (!String.IsNullOrEmpty(sServerName))
 {
 try
 {
//Something
 GetSetProperties.SetSessionProperty(mpSession, 
 INTEGRATED, packs.Count != 1 ? 0 : 1);
 }
 catch (Exception oException)
 {
 HandleException(mpSession, oException);
 return ActionResult.Failure;
 }
 }
 else
 {
 throw new Exception(SDK Service Machine cannot be empty.);
 }

 return ActionResult.Success;
 }

  private static void HandleException(Session mpSession, Exception ex)
 {
 string errorMsg = Exception during custom action execution: + 
 ex.ToString();

 mpSession.Log(errorMsg);

 mpSession.Message(InstallMessage.Error, new Record { 
 FormatString = errorMsg });
 }

 Here in this code Catch, else and HandleException are not working
 properly and the installer gets interrupted in between. How can I fix this?

 Some working code will be very useful as I am new to WiX.
 --
 Thanks and Regards,
 Ravi Raj




 --
 Thanks and Regards,
 Ravi Raj




 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Wix bootstrapper sample issue

2012-05-25 Thread Kannan24
Hi,

Am tried to run the burn with classlibrary in bundle.wxs project, but am
unable to get the solution. I have followed the below sample.

http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-bootstrap-failing-to-load-td7547420.html

while running the application, the below log file shows error. In that link
there got one message box, but i didn't get anything.

error log:

[0238:0590][2012-05-25T07:39:12]: Burn v3.6.2221.0, path:
C:\Users\Kannanns\Documents\visual studio
2010\Projects\Bootstrapper4\Bootstrapper4\bin\Debug\Bootstrapper4.exe,
cmdline: ''
[0238:0590][2012-05-25T07:39:12]: Setting string variable 'WixBundleName' to
value 'TestBundle'
[0238:0590][2012-05-25T07:39:12]: Setting string variable 'WixBundleLog' to
value 'C:\Users\Kannanns\AppData\Local\Temp\TestBundle_20120525073912.log'
[0238:0590][2012-05-25T07:39:12]: Setting string variable
'WixBundleOriginalSource' to value 'C:\Users\Kannanns\Documents\visual
studio
2010\Projects\Bootstrapper4\Bootstrapper4\bin\Debug\Bootstrapper4.exe'
[0238:0590][2012-05-25T07:39:12]: Loading managed bootstrapper application.
[0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed to create the
managed bootstrapper application.
[0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed to create UX.
[0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed to load UX.
[0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed while running
[0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed to run per-user
mode.

I followed the same code in my application, Please find the code in my
application.

MyBA Class library project:

Class1.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Tools.WindowsInstallerXml.Bootstrapper;
using System.Windows.Forms;
using Threading = System.Windows.Threading;


namespace MyBA
{
public class TestBA : BootstrapperApplication
{
static public Threading.Dispatcher Dispatcher { get; private set; }

protected override void Run()
{
this.Engine.Log(LogLevel.Verbose, Running the TestBA.);

TestBA.Dispatcher = Threading.Dispatcher.CurrentDispatcher;
MessageBox.Show(My Bootstrapper Application is running);

Threading.Dispatcher.Run();
MessageBox.Show(Dispatcher Run has finished.);
this.Engine.Quit(0);
}
}
}

TestBA.BootstrapperCore.config:

?xml version=1.0 encoding=utf-8 ?
configuration
  configSections
sectionGroup name=wix.bootstrapper
type=Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup,
BootstrapperCore
  section name=host
type=Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection,
BootstrapperCore /
/sectionGroup
  /configSections
  startup useLegacyV2RuntimeActivationPolicy=true
supportedRuntime version=v4.0 /
supportedRuntime version=v2.0.50727 /
  /startup
  wix.bootstrapper
host assemblyName=TestBA
  
/host
  /wix.bootstrapper
/configuration

AssemblyInfo.cs


using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Microsoft.Tools.WindowsInstallerXml.Bootstrapper;
using MyBA;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the
information // associated with an assembly.
[assembly: AssemblyTitle(MyBA)]
[assembly: AssemblyDescription()]
[assembly: AssemblyConfiguration()]
[assembly: AssemblyCompany()]
[assembly: AssemblyProduct(MyBA)]
[assembly: AssemblyCopyright(Copyright ©  2012)]
[assembly: AssemblyTrademark()]
[assembly: AssemblyCulture()]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components.  If you need to access a type in this assembly from //
COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is
exposed to COM
[assembly: Guid(2ff0a50e-27aa-4a44-987c-74f6833c5338)]
[assembly: BootstrapperApplication(typeof(MyBA.TestBA))]

// Version information for an assembly consists of the following four
values:
//
//  Major Version
//  Minor Version 
//  Build Number
//  Revision
//
// You can specify all the values or you can default the Build and Revision
Numbers // by using the '*' as shown below:
// [assembly: AssemblyVersion(1.0.*)]
[assembly: AssemblyVersion(1.0.0.0)]
[assembly: AssemblyFileVersion(1.0.0.0)]


Bundle.wxs:

?xml version=1.0?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
xmlns:util=http://schemas.microsoft.com/wix/UtilExtension;
  Bundle Name=TestBundle Version=1.0.0.0 Manufacturer=test
UpgradeCode=1BEA4ED5-ABCF-4D5E-B801-283BE568CB29

BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'
  Payload Name=BootstrapperCore.config
SourceFile=..\..\MyBA\MyBA\bin\Debug\TestBA.BootstrapperCore.config /
  

Re: [WiX-users] WIX regsvr32 with XP

2012-05-25 Thread Jelani Jackson
Thank you, I appreciate all of your help

On Fri, May 25, 2012 at 3:24 AM, Rob Hamflett rob_hamfl...@sn.scee.netwrote:

 On 24/05/2012 17:52, Wilson, Phil wrote:
  Those top two are Visual C++ 2010 C runtime support Dlls, typically
 supplied with this type of thing:
 
  http://www.microsoft.com/en-us/download/details.aspx?id=
 
  or with merge modules that came with Visual Studio 2010.  You'll
 probably need a minimum of XP SP3 (see the link, system requirements).
 
  Phil W

 Statically linking the binaries is another option.

 Rob



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Example on DiskCostDlg usage?

2012-05-25 Thread tetelee
I want to customize my installer to have a disk cost dialog. I thought it
would be easy to check existing template. However, I really don't understand
how it works. In the WixUI_Advanced.wxs, it declares the dialog reference
like this:

DialogRef Id=DiskCostDlg /

But how does this dialog get used? There is nothing else related to the disk
cost dialog, and I don't know where it would appear. It's not in any Publish
element. In the WixUI_InstallDir.wxs, it is the same that only a reference
to DiskCostDlg is there. And I don't recall seeing this dialog in a
installer using WixUI_InstallDir. I am using WIX 3.6. Anybody can tell me
where I can find an example? Thanks!

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Example-on-DiskCostDlg-usage-tp7576500.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Selected features of a CustomizeDlg

2012-05-25 Thread Christopher Williams

Hi Nick,   Thanks again for your prompt response.  I have pasted the dialog 
portion of the modified VerifyReadyDlg below.  For clarity, I made the 
font-size larger where I added code.   My Dialog is called the 
DBCredentialsDlg.  It should be spawned whenever the user clicks the 
install, remove or change button and the InstallDatabase feature is 
selected for installation or removal.  As coded now, the dialog is spawned when 
the user performs a completely new install or a total removal.  However, the 
dialog is not spawned in maintenance mode when the feature is either added or 
removed after an initial custom install. To determine whether my condtions was 
problematic, I removed the condition for spawing my dialog in maintenance mode 
and still the dialog is not spawned.  I suspect that this portion of code is 
never executed but don't know how to investigate further.  Incidentially, as a 
test, I also added code to spawn the dialog during repair mode and the test was 
positive.  The only use case of interest where the dialog is not spawned is 
when the database is being added or removed after an initial install. In 
maintenance mode, I am testing whether the feature is installed locally or not 
installed (using !InstallDatabase = 3, !InstallDatabase = 0) and whether the 
feature is selected for install locally or removal (using amp;Installdatabase 
= 3, amp;InstallDatabase = 0).  Any assistance will be appreciated.  
Regards.Chris.  Dialog Id=VerifyReadyDlg Width=370 Height=270 
Title=!(loc.VerifyReadyDlg_Title) TrackDiskSpace=yes
Control Id=Install Type=PushButton ElevationShield=yes X=212 
Y=243 Width=80 Height=17 Default=yes Hidden=yes Disabled=yes 
Text=!(loc.VerifyReadyDlgInstall)
Condition Action=showNOT Installed AND ALLUSERS/Condition
Condition Action=enableNOT Installed/Condition
Condition Action=defaultNOT Installed/Condition
Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace  
1]]/Publish
Publish Event=SpawnDialog Value=OutOfRbDiskDlgOutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST=P OR NOT 
PROMPTROLLBACKCOST)/Publish
Publish Event=EndDialog Value=ReturnOutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST=D/Publish
Publish Event=EnableRollback Value=FalseOutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST=D/Publish
Publish Event=SpawnDialog Value=OutOfDiskDlg(OutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
PROMPTROLLBACKCOST=F)/Publish
Publish Event=NewDialog Value=DBCredentialsDlgNOT Installed AND 
(amp;InstallDatabase = 3)/Publish
/Control
Control Id=InstallNoShield Type=PushButton ElevationShield=no 
X=212 Y=243 Width=80 Height=17 Default=yes Hidden=yes 
Disabled=yes Text=!(loc.VerifyReadyDlgInstall)
Condition Action=showNOT Installed AND NOT ALLUSERS/Condition
Condition Action=enableNOT Installed/Condition
Condition Action=defaultNOT Installed/Condition
Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace  
1]]/Publish
Publish Event=SpawnDialog Value=OutOfRbDiskDlgOutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST=P OR NOT 
PROMPTROLLBACKCOST)/Publish

Publish Event=EndDialog Value=ReturnOutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST=D/Publish
Publish Event=EnableRollback Value=FalseOutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST=D/Publish
Publish Event=SpawnDialog Value=OutOfDiskDlg(OutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
PROMPTROLLBACKCOST=F)/Publish
/Control
Control Id=Change Type=PushButton ElevationShield=yes X=212 
Y=243 Width=80 Height=17 Default=yes Hidden=yes Disabled=yes 
Text=!(loc.VerifyReadyDlgChange)
Condition Action=showWixUI_InstallMode = Change AND ALLUSERS AND 
(ADDLOCAL OR REMOVE)/Condition
Condition Action=enableWixUI_InstallMode = Change/Condition
Condition Action=defaultWixUI_InstallMode = Change/Condition
Publish Event=EndDialog Value=Return![CDATA[OutOfDiskSpace  
1]]/Publish
Publish Event=SpawnDialog Value=OutOfRbDiskDlgOutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST=P OR NOT 
PROMPTROLLBACKCOST)/Publish
Publish Event=EndDialog Value=ReturnOutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST=D/Publish
Publish Event=EnableRollback Value=FalseOutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST=D/Publish
Publish Event=SpawnDialog Value=OutOfDiskDlg(OutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
PROMPTROLLBACKCOST=F)/Publish
Publish Event=NewDialog Value=DBCredentialsDlg((!InstallDatabase 
= 0) AND (amp;InstallDatabase = 3)) OR ((!InstallDatabase = 3) AND 
(amp;InstallDatabase = 0))/Publish
/Control
Control Id=ChangeNoShield Type=PushButton 

Re: [WiX-users] Custom MBA, adding extra metadata to the Bootstrapper Application Data

2012-05-25 Thread Hoover, Jacob
Thanks Rob, it really was that easy. 

-Original Message-
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Friday, May 25, 2012 2:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom MBA, adding extra metadata to the
Bootstrapper Application Data

You just add rows to a table that has BootstrapperApplicationData=yes.
The Binder will translate all those rows into
BootstrapperApplicationData.xml.

I feel like I missed some complexity in your situation.

On Thu, May 24, 2012 at 2:12 PM, Hoover, Jacob
jacob.hoo...@greenheck.comwrote:

 Has anyone tried with success to allow dynamic metadata to be included

 in a custom managed bootstrapper application? I see how the 
 BalExtension is doing it via CustomTable and Row elements. I was 
 hoping for a means to inject arbitrary data into the application data 
 per project using the same MBA. (I want to define a feature tree and 
 associated properties per installer instance.)


 --
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. 
 Discussions will include endpoint security, mobile security and the 
 latest in malware threats. 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




--
virtually, Rob Mensching - http://RobMensching.com LLC

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Finding Related Products

2012-05-25 Thread Rob Hamflett
Is there a way to check for pre-existing products other than via 
FindRelatedProducts?  The problem I have is that regardless of the 
operation (install/repair/remove) I need to discover if some of our 
other products are installed, and FindRelatedProducts only runs on install.

Is there a way to determine this without writing a custom action?

Thanks,
Rob


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Burn SQL Server 2008 Uninstall not being called.

2012-05-25 Thread Benjamin Bennett
Notes I seen this
http://sourceforge.net/mailarchive/forum.php?thread_name=8701D1480741164DB71E42643C4A489F03380D86%40emeamail0305.global.sdl.corpforum_name=wix-users
Depending on whether you are using SQL Server 2008 or SQL Server 2008 R2.

The option /IAcceptSQLServerLicenseTerms   is NOT  a valid option for
SQL Server 2008 , it will fail with error code given in the mailing
list.
The option  /IAcceptSQLServerLicenseTerms  is only valid for SQL
Server 2008 R2 , I think also 2012 but not for sure.

My problem is Uninstall action isn't being preformed . I am missing
something ? It looks like it performs some check but that check fails.
I have tried switching around the compress/cache settings
Also is there an element to make sure only one instance of boot
strapped installer is installed. I compiled and linked twice in a row
, installed twice and I have two instances of my suite in the
add/remove programs.

WixVariable Id=SQLCMD Value=' /IAcceptSQLServerLicenseTerms
/INDICATEPROGRESS=False /QUIETSIMPLE /SECURITYMODE=SQL
/TCPENABLED=1 '/
  Chain 
  ExePackage Id='SqlServerExpress2008'
  Compressed=yes  !--tried both yes / no--
  Cache=yes


  SourceFile=!(wix.artifacts.dir)SQLEXPR_x86_ENU.exe
  InstallCommand='/ACTION=INSTALL
/INSTANCENAME=!(wix.INSTANCENAME) /SAPWD=!(wix.SAPWD)
!(wix.SQLCMD)'
  RepairCommand='/ACTION=REPAIR
/INSTANCENAME=!(wix.INSTANCENAME) /SAPWD=!(wix.SAPWD)
!(wix.SQLCMD)'
  UninstallCommand='/ACTION=UNINSTALL
/INSTANCENAME=!(wix.INSTANCENAME)'
  Vital=yes
  /ExePackage


  /Chain

[0C88:0538][2012-05-25T09:39:08]: Detect 1 packages
[0C88:0538][2012-05-25T09:39:08]: Detected package:
SqlServerExpress2008, state: Absent, cached: Complete
[0C88:0538][2012-05-25T09:39:08]: Detect complete, result: 0x0
[0C88:0538][2012-05-25T09:39:10]: Plan 1 packages, action: Uninstall
[0C88:0538][2012-05-25T09:39:10]: Skipping dependency registration on
package with no dependency providers: SqlServerExpress2008
[0C88:0538][2012-05-25T09:39:10]: Planned package:
SqlServerExpress2008, state: Absent, default requested: Absent, ba
requested: Absent, execute: None, rollback: None, cache: No, uncache:
Yes, dependency: None

-- 
Sincerely,

Benjamin Bennett

For a successful technology, reality must take precedence over public
relations, for Nature cannot be fooled.
Richard Feynman

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Burn SQL Server 2008 Uninstall not being called.

2012-05-25 Thread Richard Mayes
Don't you have to specify what features to remove?
http://msdn.microsoft.com/en-us/library/ms144259(v=sql.100).aspx#Uninstall

Also to debug the Sql install check the logs that are created in the
installation dir (C:\Program Files (x86)\Microsoft SQL
Server\100\Setup Bootstrap\Log) they are very useful and mean you
don't have to remove the /QS param.

Richard Mayes
Blog: http://blog.slinkysoftware.com
Twitter: http://twitter.com/caveman_dick

On 25 May 2012 17:01, Benjamin Bennett benbenn...@gmail.com wrote:
 Notes I seen this
 http://sourceforge.net/mailarchive/forum.php?thread_name=8701D1480741164DB71E42643C4A489F03380D86%40emeamail0305.global.sdl.corpforum_name=wix-users
 Depending on whether you are using SQL Server 2008 or SQL Server 2008 R2.

 The option /IAcceptSQLServerLicenseTerms   is NOT  a valid option for
 SQL Server 2008 , it will fail with error code given in the mailing
 list.
 The option  /IAcceptSQLServerLicenseTerms  is only valid for SQL
 Server 2008 R2 , I think also 2012 but not for sure.

 My problem is Uninstall action isn't being preformed . I am missing
 something ? It looks like it performs some check but that check fails.
 I have tried switching around the compress/cache settings
 Also is there an element to make sure only one instance of boot
 strapped installer is installed. I compiled and linked twice in a row
 , installed twice and I have two instances of my suite in the
 add/remove programs.

 WixVariable Id=SQLCMD Value=' /IAcceptSQLServerLicenseTerms
 /INDICATEPROGRESS=False /QUIETSIMPLE /SECURITYMODE=SQL
 /TCPENABLED=1 '/
  Chain 
          ExePackage Id='SqlServerExpress2008'
              Compressed=yes  !--tried both yes / no--
              Cache=yes


                          SourceFile=!(wix.artifacts.dir)SQLEXPR_x86_ENU.exe
                          InstallCommand='/ACTION=INSTALL
 /INSTANCENAME=!(wix.INSTANCENAME) /SAPWD=!(wix.SAPWD)
 !(wix.SQLCMD)'
                          RepairCommand='/ACTION=REPAIR
 /INSTANCENAME=!(wix.INSTANCENAME) /SAPWD=!(wix.SAPWD)
 !(wix.SQLCMD)'
                          UninstallCommand='/ACTION=UNINSTALL
 /INSTANCENAME=!(wix.INSTANCENAME)'
                          Vital=yes
          /ExePackage


  /Chain

 [0C88:0538][2012-05-25T09:39:08]: Detect 1 packages
 [0C88:0538][2012-05-25T09:39:08]: Detected package:
 SqlServerExpress2008, state: Absent, cached: Complete
 [0C88:0538][2012-05-25T09:39:08]: Detect complete, result: 0x0
 [0C88:0538][2012-05-25T09:39:10]: Plan 1 packages, action: Uninstall
 [0C88:0538][2012-05-25T09:39:10]: Skipping dependency registration on
 package with no dependency providers: SqlServerExpress2008
 [0C88:0538][2012-05-25T09:39:10]: Planned package:
 SqlServerExpress2008, state: Absent, default requested: Absent, ba
 requested: Absent, execute: None, rollback: None, cache: No, uncache:
 Yes, dependency: None

 --
 Sincerely,

 Benjamin Bennett

 For a successful technology, reality must take precedence over public
 relations, for Nature cannot be fooled.
 Richard Feynman

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Burn SQL Server 2008 Uninstall not being called.

2012-05-25 Thread Benjamin Bennett
Nope that wasn't it . Nothing in the SQL server logs.
Burn is checking if it is installed somehow and determining that it
isn't installed.

On Fri, May 25, 2012 at 11:16 AM, Richard Mayes caveman.d...@gmail.com wrote:
 Don't you have to specify what features to remove?
 http://msdn.microsoft.com/en-us/library/ms144259(v=sql.100).aspx#Uninstall

 Also to debug the Sql install check the logs that are created in the
 installation dir (C:\Program Files (x86)\Microsoft SQL
 Server\100\Setup Bootstrap\Log) they are very useful and mean you
 don't have to remove the /QS param.

 Richard Mayes
 Blog: http://blog.slinkysoftware.com
 Twitter: http://twitter.com/caveman_dick

 On 25 May 2012 17:01, Benjamin Bennett benbenn...@gmail.com wrote:
 Notes I seen this
 http://sourceforge.net/mailarchive/forum.php?thread_name=8701D1480741164DB71E42643C4A489F03380D86%40emeamail0305.global.sdl.corpforum_name=wix-users
 Depending on whether you are using SQL Server 2008 or SQL Server 2008 R2.

 The option /IAcceptSQLServerLicenseTerms   is NOT  a valid option for
 SQL Server 2008 , it will fail with error code given in the mailing
 list.
 The option  /IAcceptSQLServerLicenseTerms  is only valid for SQL
 Server 2008 R2 , I think also 2012 but not for sure.

 My problem is Uninstall action isn't being preformed . I am missing
 something ? It looks like it performs some check but that check fails.
 I have tried switching around the compress/cache settings
 Also is there an element to make sure only one instance of boot
 strapped installer is installed. I compiled and linked twice in a row
 , installed twice and I have two instances of my suite in the
 add/remove programs.

 WixVariable Id=SQLCMD Value=' /IAcceptSQLServerLicenseTerms
 /INDICATEPROGRESS=False /QUIETSIMPLE /SECURITYMODE=SQL
 /TCPENABLED=1 '/
  Chain 
          ExePackage Id='SqlServerExpress2008'
              Compressed=yes  !--tried both yes / no--
              Cache=yes


                          SourceFile=!(wix.artifacts.dir)SQLEXPR_x86_ENU.exe
                          InstallCommand='/ACTION=INSTALL
 /INSTANCENAME=!(wix.INSTANCENAME) /SAPWD=!(wix.SAPWD)
 !(wix.SQLCMD)'
                          RepairCommand='/ACTION=REPAIR
 /INSTANCENAME=!(wix.INSTANCENAME) /SAPWD=!(wix.SAPWD)
 !(wix.SQLCMD)'
                          UninstallCommand='/ACTION=UNINSTALL
 /INSTANCENAME=!(wix.INSTANCENAME)'
                          Vital=yes
          /ExePackage


  /Chain

 [0C88:0538][2012-05-25T09:39:08]: Detect 1 packages
 [0C88:0538][2012-05-25T09:39:08]: Detected package:
 SqlServerExpress2008, state: Absent, cached: Complete
 [0C88:0538][2012-05-25T09:39:08]: Detect complete, result: 0x0
 [0C88:0538][2012-05-25T09:39:10]: Plan 1 packages, action: Uninstall
 [0C88:0538][2012-05-25T09:39:10]: Skipping dependency registration on
 package with no dependency providers: SqlServerExpress2008
 [0C88:0538][2012-05-25T09:39:10]: Planned package:
 SqlServerExpress2008, state: Absent, default requested: Absent, ba
 requested: Absent, execute: None, rollback: None, cache: No, uncache:
 Yes, dependency: None

 --
 Sincerely,

 Benjamin Bennett

 For a successful technology, reality must take precedence over public
 relations, for Nature cannot be fooled.
 Richard Feynman

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



-- 
Sincerely,

Benjamin Bennett
314.246.0645
benbenn...@gmail.com

For a successful technology, reality must take precedence over public
relations, for Nature cannot be fooled.
Richard Feynman

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

[WiX-users] Custom action fails with error code

2012-05-25 Thread Justin Kabonick
Last year I wrote an installer to install a Windows service. Part of that
install includes a custom action which calls the executable which is
installed and passes in some command line parameters so that a
configuration file is updated.

However, the custom action started failing. I get the following in the log.

MSI (s) (F0:80) [14:44:08:231]: Executing op:
ActionStart(Name=UpdateConfig,,)
MSI (s) (F0:80) [14:44:08:231]: Executing op:
CustomActionSchedule(Action=UpdateConfig,ActionType=1042,Source=C:\FolderPath\MyService.exe,Target=/updateconfig
C:\FolderPath,)
CustomAction UpdateConfig returned actual error code -2146232576 (note this
may not be 100% accurate if translation happened inside sandbox)
MSI (s) (F0:80) [14:44:08:262]: Note: 1: 1722 2: UpdateConfig 3: C:\
FolderPath\MyService.exe 4: /updateconfig C:\FolderPath
MSI (c) (F4:50) [14:44:08:262]: Font created.  Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg, Ret=MS Shell Dlg

Error 1722. There is a problem with this Windows Installer package. A
program run as part of the setup did not finish as expected. Contact your
support personnel or package vendor.  Action UpdateConfig, location:
C:\FolderPath\MyService.exe, command: /updateconfig C:\FolderPath
MSI (s) (F0:80) [14:44:09:338]: Product: My Windows Service -- Error 1722.
There is a problem with this Windows Installer package. A program run as
part of the setup did not finish as expected. Contact your support
personnel or package vendor.  Action UpdateConfig, location:
C:\FoldePath\MyService.exe, command: /updateconfig C:\FoldePath


That error code doesn't seem to mean anything and it appears to be a
garbage value. But I can't seem to find any reason for the action to fail.
It works fine if I run it outside of the installer. I know that the
executable uses some .Net reflection to find the configuration file and
there was an earlier issue because the current working directory was
C:\System32 since it was started by msiexec. However that was fixed.

Is there any way to track down why this action would start failing suddenly?
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Burn managed UI - how to cancel and rollback?

2012-05-25 Thread Nick Ramirez
So, assuming I put a cancel button onto my managed bootstrapper application
UI, can anyone say what's the best practice for carrying it out? Do I
somehow trigger a rolled back on the entire chain of packages? If so, what's
the method to call? 

I've been looking through the WiX demo setup, but I'm having trouble
following the logic of the cancel part. I see that it delegates to a
RelayCommand, but I don't see where the cancel/rollback actually takes
place?

Thanks for the help!

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-managed-UI-how-to-cancel-and-rollback-tp7577071.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] MSI detected as virus.... RunOnce registry keys

2012-05-25 Thread imran
Did anyone resolve this issue? I am getting the same problem in Windows XP.

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/MSI-detected-as-virus-RunOnce-registry-keys-tp7409683p7577248.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] harvesting COM information using heat.exe results in HEAT5150

2012-05-25 Thread Brian C
Heat does not extract for 64-bit dlls.  We have had to write a script to 
convert the 32 bit extraction into 64 bit.

 


 From: Michael Scheepers mscheep...@tool-links.de
To: General discussion for Windows Installer XML toolset. 
wix-users@lists.sourceforge.net 
Sent: Friday, May 25, 2012 2:56 AM
Subject: [WiX-users] harvesting COM information using heat.exe results in 
HEAT5150
  
Hi there,

I try to extract the self-register information for a COM file written 
with VB6 a long time ago.

If I use regsvr32 to register the file manually on Win7 64-bit it works 
fine. But when I try to extract the information using heat with the 
following command line, just the file tag is generated, without having 
the com information extracted.
Command line:
    heat file file.dll -sfrag -srd -suid -svb6 -out file.wxi
Result:
    heat.exe : warning HEAT5150 : Could not harvest data from a
    file that was expected to be a SelfReg DLL: path\to\file.dll.
    If this file does not support SelfReg you can ignore this
    warning. Otherwise, this error detail may be helpful to
    diagnose the failure: Ein Aufrufziel hat einen Ausnahmefehler
    verursacht.

When I use Dependency Walker I can see, that a delay-load dependency to 
GPSVC.DLL was not found. That might be, because I am running a Windows 7 
64-bit machine, but the DLL is for a x86 architecture, but again: 
registering the file using regsvr32 works fine. I searched the internet 
and found an article [1] where the solution is to change the 
architecture of the dll to 64-bit, but that is no option to me.

So is there an other way to have the file self-registered during 
installation except using 2 custom actions to call regsvr32 and regsvr32 /u

Regards, Michel

[1] 
http://social.msdn.microsoft.com/Forums/en-IE/vcgeneral/thread/93f8509b-b6e8-45a8-81a4-a7a127385d84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users