[WiX-users] Trying to create a Wix Extension

2009-10-09 Thread Mazin Sayid Ali
Hi,

A newbie query. I'm trying to create a wix extension.
I've done the following.
Created a CustomAction which runs on a CustomTable.
Created a Dll as pre Wix documentation on creating a extension.
Then I inherited the WixExtension Class and CompilerExtension Class. ( I
reused SqlExtension )
I did not create the Decompiler class (Is this required?)
I added the tables. xml file.

Few questions:
Is there anything we need to do while building the extension?
How do I embed the wixlib in the extension?

I get the following error while building the MSI
The Component element contains an unhandled extension element
'dbpro:DeployDatabase'.  Please ensure that the extension for elements in
the 'http://schemas.microsoft.com/wix/DBProExtension' namespace has been
provided.


Thanks in advance.
Mazin
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Trying to create a Wix Extension

2009-10-09 Thread Blair
As an aside, in your schema, you should use a namespace that is not from
MSFT unless you work for that company. Ideally you will use a domain you (or
your employer) own/control.

On to your queries (not in order):
The error seems to mean that the -ext yourextension.dll was missing from the
candle command-line. If you are using an msbuild .wixproj file built using
Votive, did you forget to add a reference to your extension dll?
Alternately, your schema's "targetNamespace" doesn't match the namespace you
selected in your CompilerExtension (I always simply retrieve the schema's
targetNamespace instead of hardcoding it in my C# code so they never
differ). Also make sure you didn't get the case wrong in your namespace: XML
is case sensitive (even if Microsoft often isn't).

The wixlib needs to be returned from the GetLibrary() override method of
your WixExtension-derived class. You can use the LoadLibraryHelper() method
if you embedded your wixlib as a resource into your dll (usually the same
way you embed your tables.xml, especially if you used the
LoadTableDefinitionHelper() method to retrieve your tables.xml in your
override of the TableDefinitions property getter).

The decompiler class is only required if you create/consume custom tables
and expect anyone to be able to easily use the melt tool on any package
files created using your extension.

-Original Message-
From: Mazin Sayid Ali [mailto:mazin.s...@gmail.com] 
Sent: Friday, October 09, 2009 12:26 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Trying to create a Wix Extension

Hi,

A newbie query. I'm trying to create a wix extension.
I've done the following.
Created a CustomAction which runs on a CustomTable.
Created a Dll as pre Wix documentation on creating a extension.
Then I inherited the WixExtension Class and CompilerExtension Class. ( I
reused SqlExtension )
I did not create the Decompiler class (Is this required?)
I added the tables. xml file.

Few questions:
Is there anything we need to do while building the extension?
How do I embed the wixlib in the extension?

I get the following error while building the MSI
The Component element contains an unhandled extension element
'dbpro:DeployDatabase'.  Please ensure that the extension for elements in
the 'http://schemas.microsoft.com/wix/DBProExtension' namespace has been
provided.


Thanks in advance.
Mazin

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Create shortcut for file in merge module

2009-10-09 Thread Blair
If you wish to retain the advertised nature of the shortcut, you will have a
harder time because the shortcut has to live in the same component as the
eventual target (which means you have to have the same component with
different resources based on whether the component lives in the stand-alone
application or the integrated application, which is a violation of the
component rules. Violating it could possibly cause the shortcut to be
orphaned depending on the installation/upgrade/removal sequences between the
stand-alone and integrated products.

If you wish to target a file from a merge module in a shortcut, you have to
assemble the target like this: "[#fileid.mergemoduleguid]". If you are
autogenerating the MSM's package guid, that value might be hard to
anticipate, depending on your build environment.

Instead, think of the situation this way: Component GUIDS are used to
identify components universally in the Windows Installer universe. Component
Ids, File Ids, etc. are used to identify those elements WITHIN any arbitrary
package. Thus, you don't have to use the same merge module in both
installation packages, you just have to use the same merge module content
you care about between both packages. And the easiest way to do that would
be to use wixlibs, which are wix-toolset-specific "libraries" of compiled
wix code, analogous to merge modules in the larger Windows Installer world
but without several of the problems associated with merge modules.

Here's how this can work in practice:

You generate a wixlib (compile with candle, link with lit) the code
containing the shared components and their resources. That code consists of
.wxs files containing only Fragments as direct children of the root Wix
elements.

You reference that wixlib in your standalone application, which will include
the appropriate ~Ref elements required to eventually include all your
fragments in your wixlib. Your standalone app is now built and can easily
create a non-advertised shortcut that targets any file (using simple
"[#fileid]" syntax) in your wixlib.

You generate an MSM that has a similarly small wxs file as your standalone
app, except it uses the Module element instead of the Product element and
doesn't include the shortcut. You reference the resulting MSM file in your
integrated package.

The result is that the shared components are the same (have the same GUIDS
and the same contained resources) even though the IDs differ (the integrated
product has those IDs with the appended ".GUID" on them). They act as you
expect them to act in scenarios where the standalone app and the integrated
app are both installed and removed in all combinations of ordering/version
differing/etc. as if the merge module had been used in building both
packages. And, when you finally move away from non-wix toolsets, you can
simply drop the wrapping MSM and directly link the wixlibs (remembering to
replace the Merge elements with appropriate ~Ref elements to pull in the
fragments from the wixlibs), so you have your migration story.

Let us know how that works for you.

-Original Message-
From: Dave Mateer [mailto:dave_mat...@ntm.org] 
Sent: Thursday, October 08, 2009 5:30 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] WiX-users Digest, Vol 41, Issue 37

The whole stack (code, merge module, standalone application, and larger
application) are developed entirely in-house.

The larger application is NOT using WiX. Right now it is using InstallAware,
but we are looking to slowly (module by module) migrate the entire thing to
WiX. This is a first step.

I am not familiar with wixlibs and would be interested if that is an option.

The shortcut does not need to be advertised. It does not matter either way.

The history is this: we have a tiny application (three dlls, two flat-files,
and an app.config) that has been developed as a stand-alone project. The
install was created using WiX (with an advertised desktop shortcut) and all
was well. Then we decided to add this application into a larger application
(as well as keep it standalone). The files will install into a different
location in the larger application as opposed to the stand-alone. I thought
a merge module might save me the headache of maintaining two separate WiX
files as components are added to the application in the future. The
stand-alone WiX file would basically just include the merge module and add a
desktop shortcut. The larger application would just include the merge
module.

Since it's such a small project, it's kind of academic at this point, but I
still would like to know how to do this the right way.

I really appreciate your help on this. The entire world of installers is new
to me and its very daunting at this point.

Thanks,

Dave 

--

Message: 2
Date: Thu, 8 Oct 2009 05:00:57 -0700
From: "Blair" 
Subject: Re: [WiX-users] Create shortcut for file in merge module
To: "'General discussion for Windows Installer XML toolset.'"

M

[WiX-users] Custom action type 19 displays message over the "Welcome" dialog

2009-10-09 Thread Dan Vasilov
Hello,

 

 We have a Wix-based setup that must meet a set of pre-conditions. The
conditions are properly checked, however the error message is displayed over
the "Welcome" dialog. We've tried to edit the UISequence and show the
Welcome dialog only when the specified conditions are met, however the error
message is still displayed after the Welcome dialog is shown.

  Do you have a suggestion where to look for a solution?

 

Dan

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Showing error message from CA which is called through publish event DoAction

2009-10-09 Thread Igor Paniushkin
Hi All,

 

I have a couple of validation custom actions in C++ and C# which I want
to call in dialogs and if installer executed without UI in install
execute sequence. And in case of error I want to show error message,
currently I'm using MsiProcessMessage and session.Message methods, which
are working fine if CA performed in install execute sequence.

But message is not shown if I'm trying to execute these actions in UI
sequence through DoAction publish event.

I have read in msi documentation, that it is be design, so my question
what is the best approach to show error message box from such situation?

 

Best Regards,

Igor


SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom action type 19 displays message over the "Welcome" dialog

2009-10-09 Thread Sebastian Brand (Instyler Software)
It seems that the Custom Actions are scheduled after the Welcome dialog or
somehow. How and where did you schedule them?


Best regards,
Sebastian Brand

Deployment consultant
E-Mail: sebast...@instyler.com

Instyler Setup - Creating WiX-based MSI installations, elegantly.
http://www.instyler.com



-Original Message-
From: Dan Vasilov [mailto:d...@rms.ro] 
Sent: Friday, October 09, 2009 11:04
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

Hello,

 

 We have a Wix-based setup that must meet a set of pre-conditions. The
conditions are properly checked, however the error message is displayed over
the "Welcome" dialog. We've tried to edit the UISequence and show the
Welcome dialog only when the specified conditions are met, however the error
message is still displayed after the Welcome dialog is shown.

  Do you have a suggestion where to look for a solution?

 

Dan


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Showing error message from CA which is called throughpublish event DoAction

2009-10-09 Thread Peter Shirtcliffe
With DoAction custom actions in the UI sequence, there doesnt seem to be
any MSI specific way so just use MessageBox().
To get the parent window for the message box, so that it appears on top
of your dialog, see
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg00415.htm
l


-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com] 
Sent: 09 October 2009 11:25
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Showing error message from CA which is called
throughpublish event DoAction

Hi All,

 

I have a couple of validation custom actions in C++ and C# which I want
to call in dialogs and if installer executed without UI in install
execute sequence. And in case of error I want to show error message,
currently I'm using MsiProcessMessage and session.Message methods, which
are working fine if CA performed in install execute sequence.

But message is not shown if I'm trying to execute these actions in UI
sequence through DoAction publish event.

I have read in msi documentation, that it is be design, so my question
what is the best approach to show error message box from such situation?

 

Best Regards,

Igor


SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and
requires that you delete it without acting upon or copying any of its
contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
SL6 7DY, UK.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom action type 19 displays message over the "Welcome" dialog

2009-10-09 Thread Dan Vasilov
This is the current code.


  


NOT
NEWERVERSIONDETECTED

...



...
  


  
  


  


The UI is defined in a separate file and it looks like:

http://schemas.microsoft.com/wix/2006/wi";>
  



  
  
  

  
  

  
  
  
  
  
  
  
  
  
  

  1
  

  


  LAUNCHAPP
  1


  


  
  1



  

  
  
SHOWADVOPTIONS
  

  

  

  


  
SHOWADVOPTIONS
  

  
  


  1

  1
  1
  1





  



  




Shouldn't the condition be automatically checked before displaying any UI?

Thank you for taking your time to analyze this.

Dan


-Original Message-
From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] 
Sent: Friday, October 09, 2009 2:23 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

It seems that the Custom Actions are scheduled after the Welcome dialog or
somehow. How and where did you schedule them?


Best regards,
Sebastian Brand

Deployment consultant
E-Mail: sebast...@instyler.com

Instyler Setup - Creating WiX-based MSI installations, elegantly.
http://www.instyler.com



-Original Message-
From: Dan Vasilov [mailto:d...@rms.ro] 
Sent: Friday, October 09, 2009 11:04
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

Hello,

 

 We have a Wix-based setup that must meet a set of pre-conditions. The
conditions are properly checked, however the error message is displayed over
the "Welcome" dialog. We've tried to edit the UISequence and show the
Welcome dialog only when the specified conditions are met, however the error
message is still displayed after the Welcome dialog is shown.

  Do you have a suggestion where to look for a solution?

 

Dan


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] change the default wixui dialog color

2009-10-09 Thread Pally Sandher
It is eminently possible to re-code the ExitDialog in WIXUIExtension so
you can specify a bitmap for only its use rather than it always using
the one defined in the WiXVariable "WixUIBannerBmp".
Will someone do it? Probably not. I've got Visual Studio 2008 now so I
could work on the code now but we no longer have a need for the checkbox
on the ExitDialog in any of our installers so I don't see myself being
motivated enough to do it.

As far as resizing the checkbox down & adding a transparent text box
next to it, I was told it'll never happen as it breaks some
accessibility stuff like screen readers apparently. Recently I've seen
installers from very large well respected software companies (Google
SketchUp & Perforce come immediately to mind) doing exactly that
however.

I bug reported this a long time ago. See
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=2025677&gro
up_id=105970

Blair can you clarify how one would set the ExitDialog to use a
different bitmap rather than the one defined in the WiXVariable
"WixUIBannerBmp" "without customizing everything" please? It would be
nice to have this in the WiX documentation in the How to page that
details how to use the checkbox in question so hopefully this comes up
less in future (it'll still come up regularly though, very few people
seem to even be aware of the WiX documentations existence and/or MSDN
and/or internet search engines on this list but at least there would be
a handy link to point them at).


Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the **
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
 
 

-Original Message-
From: Blair [mailto:os...@live.com] 
Sent: 09 October 2009 01:32
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] change the default wixui dialog color

You can set any background graphic you want in WiX's UI elements without
customizing everything. The issue is that checkboxes in Windows
Installer can't be made to be transparent, and as far as I know (and
Windows Installer's UI is a weak point for me) Windows Installer always
uses the system's (user's) default dialog background color.

-Original Message-
From: Scott Palmer [mailto:swpal...@gmail.com]
Sent: Thursday, October 08, 2009 11:20 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] change the default wixui dialog color

Can the default WiX UIs change to use that trick so we don't have to
customize everything just to get a decent background in the installer?
Scott

On Tue, Oct 6, 2009 at 12:56 AM, Blair  wrote:

> This is very often discussed (search the archives, this is the second 
> time this week).
>
> This is a known limitation of the Windows Installer UI (WiX doesn't
provide
> you a UI, it exposes Windows Installer's so you can use it). The two 
> workarounds involve changing your background graphic or shrinking your

> control down to the size of the checkbox itself and adding a 
> transparent static text with another copy of the checkbox text.
>
>


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Showing error message from CA which is calledthroughpublish event DoAction

2009-10-09 Thread Igor Paniushkin
Thank you, I will try that out.
But also then I have related question, how can I get right error message
which I need to show on message box? I mean that currently I have error
messages (localizable) in Error table, and in c++ I know the error code
of that message, how can I get message itself in c++ and not error code?

-Original Message-
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Sent: Friday, October 09, 2009 1:37 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA which is
calledthroughpublish event DoAction

With DoAction custom actions in the UI sequence, there doesnt seem to be
any MSI specific way so just use MessageBox().
To get the parent window for the message box, so that it appears on top
of your dialog, see
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg00415.htm
l


-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com] 
Sent: 09 October 2009 11:25
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Showing error message from CA which is called
throughpublish event DoAction

Hi All,

 

I have a couple of validation custom actions in C++ and C# which I want
to call in dialogs and if installer executed without UI in install
execute sequence. And in case of error I want to show error message,
currently I'm using MsiProcessMessage and session.Message methods, which
are working fine if CA performed in install execute sequence.

But message is not shown if I'm trying to execute these actions in UI
sequence through DoAction publish event.

I have read in msi documentation, that it is be design, so my question
what is the best approach to show error message box from such situation?

 

Best Regards,

Igor


SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and
requires that you delete it without acting upon or copying any of its
contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
SL6 7DY, UK.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Showing error message from CA which iscalledthroughpublish event DoAction

2009-10-09 Thread Peter Shirtcliffe
Here is the sequence of actions. Im using some wix sdk functions to make
the job easier and STL strings and a couple of my own utility classes
but Im sure you can follow what's going on.

Get the error message from the MSI database using a function like this.
The "query" argument would be something like L"SELECT Message FROM Error
WHERE Error=25000"

wstring MsiQueryGetString(const wstring & query)
{
PMSIHANDLE view;
HRESULT hr = WcaOpenExecuteView(query.c_str(), &view);
if (FAILED(hr))
throw WindowsError(L"Couldn't open and execute view: " + query,
hr);

PMSIHANDLE record;
hr = WcaFetchSingleRecord(view, &record);
if (FAILED(hr))
throw WindowsError(L"Couldn't fetch record using query: " +
query, hr);

LPWSTR  bufferPtr = 0;
hr = WcaGetRecordString(record, 1, &bufferPtr);
if (FAILED(hr))
{
ReleaseStr(bufferPtr);  // Must freed, even on error.
throw WindowsError(L"Couldn't get string from record in query: "
+ query, hr);
}

wstring result(bufferPtr);
ReleaseStr(bufferPtr);
return result;
}


If your error messages are more than simple strings i.e. they have
placeholders for other values in them, you can expand on the above by
calling MsiFormatRecord.
For example:

const wstring SQLResult = MsiQueryGetString( <<>> );
PMSIHANDLE record = MsiCreateRecord(1);
MsiRecordSetString(record, 0, SQLResult.c_str());
MsiRecordSetString(record, 1, <<>>.c_str());
wstring message = formatRecord(record);

// then display message with a messagebox

wstring formatRecord(MSIHANDLE record)
{
  MSIHANDLE installer = WcaGetInstallHandle();
wchar_t dummyBuffer;
DWORD bufferSize = 0;
UINT ret = MsiFormatRecord(installer, record, &dummyBuffer,
&bufferSize);
if (ret != ERROR_MORE_DATA)
throw WindowsError(L"Couldn't get formatted size of
error to display.", ret);

vector buffer(++bufferSize);
ret = MsiFormatRecord(installer, record, &buffer[ 0 ],
&bufferSize);
if (ret != ERROR_SUCCESS)
throw WindowsError(L"Couldn't format error message.",
ret);

return &buffer[ 0 ];
}
 
Hope that helps.


-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com] 
Sent: 09 October 2009 12:47
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA which
iscalledthroughpublish event DoAction

Thank you, I will try that out.
But also then I have related question, how can I get right error message
which I need to show on message box? I mean that currently I have error
messages (localizable) in Error table, and in c++ I know the error code
of that message, how can I get message itself in c++ and not error code?

-Original Message-
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
Sent: Friday, October 09, 2009 1:37 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA which is
calledthroughpublish event DoAction

With DoAction custom actions in the UI sequence, there doesnt seem to be
any MSI specific way so just use MessageBox().
To get the parent window for the message box, so that it appears on top
of your dialog, see
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg00415.htm
l


-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com]
Sent: 09 October 2009 11:25
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Showing error message from CA which is called
throughpublish event DoAction

Hi All,

 

I have a couple of validation custom actions in C++ and C# which I want
to call in dialogs and if installer executed without UI in install
execute sequence. And in case of error I want to show error message,
currently I'm using MsiProcessMessage and session.Message methods, which
are working fine if CA performed in install execute sequence.

But message is not shown if I'm trying to execute these actions in UI
sequence through DoAction publish event.

I have read in msi documentation, that it is be design, so my question
what is the best approach to show error message box from such situation?

 

Best Regards,

Igor


SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and
requires that you delete it without acting upon or copying any of its
contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
SL6 7DY, UK.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay ahead of the curve. Join us from November 9 - 12, 2009. Regi

Re: [WiX-users] Showing error message from CA whichiscalledthroughpublish event DoAction

2009-10-09 Thread Igor Paniushkin
Thank you very much for helping me out and for example! I was thinking
about the same, but it looked to me really ugly solution and I thought
that maybe there is easy way to do that.
And the last question, how is it better to check if action is performed
in InstallUISequence or in InstallExecuteSequence, because I want to
show this message only in InstallUISequence?

-Original Message-
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Sent: Friday, October 09, 2009 2:10 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA
whichiscalledthroughpublish event DoAction

Here is the sequence of actions. Im using some wix sdk functions to make
the job easier and STL strings and a couple of my own utility classes
but Im sure you can follow what's going on.

Get the error message from the MSI database using a function like this.
The "query" argument would be something like L"SELECT Message FROM Error
WHERE Error=25000"

wstring MsiQueryGetString(const wstring & query)
{
PMSIHANDLE view;
HRESULT hr = WcaOpenExecuteView(query.c_str(), &view);
if (FAILED(hr))
throw WindowsError(L"Couldn't open and execute view: " + query,
hr);

PMSIHANDLE record;
hr = WcaFetchSingleRecord(view, &record);
if (FAILED(hr))
throw WindowsError(L"Couldn't fetch record using query: " +
query, hr);

LPWSTR  bufferPtr = 0;
hr = WcaGetRecordString(record, 1, &bufferPtr);
if (FAILED(hr))
{
ReleaseStr(bufferPtr);  // Must freed, even on error.
throw WindowsError(L"Couldn't get string from record in query: "
+ query, hr);
}

wstring result(bufferPtr);
ReleaseStr(bufferPtr);
return result;
}


If your error messages are more than simple strings i.e. they have
placeholders for other values in them, you can expand on the above by
calling MsiFormatRecord.
For example:

const wstring SQLResult = MsiQueryGetString( <<>> );
PMSIHANDLE record = MsiCreateRecord(1);
MsiRecordSetString(record, 0, SQLResult.c_str());
MsiRecordSetString(record, 1, <<>>.c_str());
wstring message = formatRecord(record);

// then display message with a messagebox

wstring formatRecord(MSIHANDLE record)
{
  MSIHANDLE installer = WcaGetInstallHandle();
wchar_t dummyBuffer;
DWORD bufferSize = 0;
UINT ret = MsiFormatRecord(installer, record, &dummyBuffer,
&bufferSize);
if (ret != ERROR_MORE_DATA)
throw WindowsError(L"Couldn't get formatted size of
error to display.", ret);

vector buffer(++bufferSize);
ret = MsiFormatRecord(installer, record, &buffer[ 0 ],
&bufferSize);
if (ret != ERROR_SUCCESS)
throw WindowsError(L"Couldn't format error message.",
ret);

return &buffer[ 0 ];
}
 
Hope that helps.


-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com] 
Sent: 09 October 2009 12:47
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA which
iscalledthroughpublish event DoAction

Thank you, I will try that out.
But also then I have related question, how can I get right error message
which I need to show on message box? I mean that currently I have error
messages (localizable) in Error table, and in c++ I know the error code
of that message, how can I get message itself in c++ and not error code?

-Original Message-
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
Sent: Friday, October 09, 2009 1:37 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA which is
calledthroughpublish event DoAction

With DoAction custom actions in the UI sequence, there doesnt seem to be
any MSI specific way so just use MessageBox().
To get the parent window for the message box, so that it appears on top
of your dialog, see
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg00415.htm
l


-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com]
Sent: 09 October 2009 11:25
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Showing error message from CA which is called
throughpublish event DoAction

Hi All,

 

I have a couple of validation custom actions in C++ and C# which I want
to call in dialogs and if installer executed without UI in install
execute sequence. And in case of error I want to show error message,
currently I'm using MsiProcessMessage and session.Message methods, which
are working fine if CA performed in install execute sequence.

But message is not shown if I'm trying to execute these actions in UI
sequence through DoAction publish event.

I have read in msi documentation, that it is be design, so my question
what is the best approach to show error message box from such situation?

 

Best Regards,

Igor


SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and
requires that y

Re: [WiX-users] WiX Installer that does not leave a trace inAdd/Remove Programs

2009-10-09 Thread Thorpe, Alan
Yes, quite helpful. This leads to the Patch "AllowRemoval" property,
which can be set to restrict uninstall:



There is a quite detailed write up on this, which I'm sure everyone else
here is already familiar with. :-)

http://www.tramontana.co.hu/wix/lesson4.php



-Original Message-
From: Wendell Joost [mailto:wende...@gmail.com] 
Sent: Thursday, October 08, 2009 2:02 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] WiX Installer that does not leave a trace
inAdd/Remove Programs

Was this not helpful?

http://msdn.microsoft.com/en-us/library/aa372102(VS.85).aspx

Wendell

-- 
"Some people come visit Europe and are really let down when they find
out it's not like a credit-card commercial; others really get into
meeting all the quirky people and careening along narrow mountain
roads in rickety cabs driven by suicidal, gap-toothed Carpathians. I
guess it's pretty obvious which one you are..." - Justin Crevier, May
'01


On Thu, Oct 8, 2009 at 6:15 AM, Thorpe, Alan 
wrote:
> Perhaps I have not dug deeply enough into the patch aspects of WiX and
> MSI to figure this out yet, but... What is the correct method to
create
> an MSI using WiX that patches an existing product, but does not leave
an
> entry in the Add/Remove Programs list for users to attempt to
uninstall
> that patch?
>
>
>
> The situation is that the existing product has a proprietary
> registration process for plug-in components where it is easy to add or
> update modules, but next to impossible to roll back an updated module
to
> the previous version. Attempting to uninstall a patched module would,
in
> fact, likely remove or disable that component completely rather than
> revert it back to what was there before. I would prefer to patch what
is
> already there, but not offer users the option to uninstall the patch
via
> Add/Remove Programs and get themselves into deeper hot water. The
> "patch" would be reverted if necessary by re-running the product's own
> proprietary installer (not MSI).
>
>
>
>
>
>

--
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart
your
> developing skills, take BlackBerry mobile applications to market and
stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Showing error message from CAwhichiscalledthroughpublish event DoAction

2009-10-09 Thread Peter Shirtcliffe
Sorry, Im not sure how you would determine if you were in a DoAction
custom action. Its not something Ive ever done.

BTW it might be worth looking through the Wix SDK to see if any of the
example code is implemented within it. It was written quite a while ago,
perhaps for Wix 2.

-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com] 
Sent: 09 October 2009 13:17
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from
CAwhichiscalledthroughpublish event DoAction

Thank you very much for helping me out and for example! I was thinking
about the same, but it looked to me really ugly solution and I thought
that maybe there is easy way to do that.
And the last question, how is it better to check if action is performed
in InstallUISequence or in InstallExecuteSequence, because I want to
show this message only in InstallUISequence?

-Original Message-
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
Sent: Friday, October 09, 2009 2:10 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA
whichiscalledthroughpublish event DoAction

Here is the sequence of actions. Im using some wix sdk functions to make
the job easier and STL strings and a couple of my own utility classes
but Im sure you can follow what's going on.

Get the error message from the MSI database using a function like this.
The "query" argument would be something like L"SELECT Message FROM Error
WHERE Error=25000"

wstring MsiQueryGetString(const wstring & query) {
PMSIHANDLE view;
HRESULT hr = WcaOpenExecuteView(query.c_str(), &view);
if (FAILED(hr))
throw WindowsError(L"Couldn't open and execute view: " + query,
hr);

PMSIHANDLE record;
hr = WcaFetchSingleRecord(view, &record);
if (FAILED(hr))
throw WindowsError(L"Couldn't fetch record using query: " +
query, hr);

LPWSTR  bufferPtr = 0;
hr = WcaGetRecordString(record, 1, &bufferPtr);
if (FAILED(hr))
{
ReleaseStr(bufferPtr);  // Must freed, even on error.
throw WindowsError(L"Couldn't get string from record in query: "
+ query, hr);
}

wstring result(bufferPtr);
ReleaseStr(bufferPtr);
return result;
}


If your error messages are more than simple strings i.e. they have
placeholders for other values in them, you can expand on the above by
calling MsiFormatRecord.
For example:

const wstring SQLResult = MsiQueryGetString( <<>> );
PMSIHANDLE record = MsiCreateRecord(1); MsiRecordSetString(record, 0,
SQLResult.c_str()); MsiRecordSetString(record, 1,
<<>>.c_str());
wstring message = formatRecord(record);

// then display message with a messagebox

wstring formatRecord(MSIHANDLE record)
{
  MSIHANDLE installer = WcaGetInstallHandle();
wchar_t dummyBuffer;
DWORD bufferSize = 0;
UINT ret = MsiFormatRecord(installer, record, &dummyBuffer,
&bufferSize);
if (ret != ERROR_MORE_DATA)
throw WindowsError(L"Couldn't get formatted size of
error to display.", ret);

vector buffer(++bufferSize);
ret = MsiFormatRecord(installer, record, &buffer[ 0 ],
&bufferSize);
if (ret != ERROR_SUCCESS)
throw WindowsError(L"Couldn't format error message.",
ret);

return &buffer[ 0 ];
}
 
Hope that helps.


-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com]
Sent: 09 October 2009 12:47
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA which
iscalledthroughpublish event DoAction

Thank you, I will try that out.
But also then I have related question, how can I get right error message
which I need to show on message box? I mean that currently I have error
messages (localizable) in Error table, and in c++ I know the error code
of that message, how can I get message itself in c++ and not error code?

-Original Message-
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
Sent: Friday, October 09, 2009 1:37 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Showing error message from CA which is
calledthroughpublish event DoAction

With DoAction custom actions in the UI sequence, there doesnt seem to be
any MSI specific way so just use MessageBox().
To get the parent window for the message box, so that it appears on top
of your dialog, see
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg00415.htm
l


-Original Message-
From: Igor Paniushkin [mailto:ipaniush...@sdl.com]
Sent: 09 October 2009 11:25
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Showing error message from CA which is called
throughpublish event DoAction

Hi All,

 

I have a couple of validation custom actions in C++ and C# which I want
to call in dialogs and if installer executed without UI in install
execute sequence. And in case of error I want to show error message,
c

Re: [WiX-users] missing WIX 3.0 binary distributionfile 'difxapp_ia64.wixlib'

2009-10-09 Thread Jahanzeb Khan
One more try... in getting question answered.
Hi all,
I am trying to use the BootstrapperFile Include to install Crystall
Reports runtime; I tried using the  tag (snippet of code is
attached below) to suppress the UI that pops up when the bootstrap is
executing for crystal report runtime;  but for some weird reason the
 has no affect on the installer and I still see the license
dialog box/UI from Crystal report runtime installer(license screen); is
there another way to suppress or hide the license screen ui that pops up
with the runtime installer?  I don't wanna show their (crystal reports)
license screen first before my installers license screen.  
So, any way to do that (either suppress Crystal reports license dialog
box or show mine first)?
Thank you,

khan


  False
  CrystalReports 10.5
   true

-Original Message-
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Thursday, October 08, 2009 11:29 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] missing WIX 3.0 binary distributionfile
'difxapp_ia64.wixlib'

Smith, Stan wrote:
>   I'm trying to find someone who can supply information about the WIX
3.0 binary distribution file 'difxapp_ia64.wixlib' as it is not present
in the WIX 3.0 binary distribution and documented to be included?
>   

It should be. Please open a bug on SourceForge; it's also missing from 
WiX v3.5 builds but if that's fixed, you should be able to use it with 
WiX v3.0 RTM.

-- 
sig://boB
http://joyofsetup.com/




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] (no subject)

2009-10-09 Thread Евгений Рогожников


Hello!
 
I have problem thay very similar to that described in bug  1589839 
http://sourceforge.net/tracker/index.php?func=detail&aid=1589839&group_id=105970&atid=642714
 
When I run "heat file my.dll -out my.wxs" it hangs with CPU 100 percent
 
heat version is 3.0.5419.0
When my.dll was builded on VisualStudio 6.0 it was all right
But now it is builded on VisualStudio 2008
 
I attached by WinDbg  and get the next callstack:
 
0 Id: 12ca4.12c18 Suspend: 1 Teb: 7ffdf000 Unfrozen

ChildEBP RetAddr Args to Child 

0013f2ac 00c69333 01289e3c 0128e580 0013f2f8 clrstub[vsd_dispatchst...@927590

0013f2bc 00c64e93    
WixUtilExtension!Microsoft.Tools.WindowsInstallerXml.Extensions.UtilFinalizeHarvesterMutator.Mutate(Microsoft.Tools.WindowsInstallerXml.Serialize.Wix)+0x63

0013f2f8 00c61021    
wix!Microsoft.Tools.WindowsInstallerXml.Mutator.Mutate(Microsoft.Tools.WindowsInstallerXml.Serialize.Wix)+0xab

0013f470 00c6009b    
heat!Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Run(System.String[])+0xa39

0013f480 79e71b4c    
heat!Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Main(System.String[])+0x2b

0013f490 79e821f9 0013f560  0013f530 mscorwks!CallDescrWorker+0x33

0013f510 79e96571 0013f560  0013f530 
mscorwks!CallDescrWorkerWithHandler+0xa3

0013f648 79e965a4 0091c038 0013f714 0013f6e0 
mscorwks!MethodDesc::CallDescr+0x19c

0013f664 79e965c2 0091c038 0013f714 0013f6e0 
mscorwks!MethodDesc::CallTargetWorker+0x1f

0013f67c 79f27434 0013f6e0 e338c617  
mscorwks!MethodDescCallSite::CallWithValueTypes+0x1a

0013f7e0 79eef9e5 0091306c 0001 0013f81c mscorwks!ClassLoader::RunMain+0x20d

0013fa48 79eeff35  e338ceef 0001 
mscorwks!Assembly::ExecuteMainMethod+0xa6

0013ff18 79ef011f 0040  e338ce9f 
mscorwks!SystemDomain::ExecuteMainMethod+0x456

0013ff68 79ef004f 0040 e338ce47 6d7dca19 mscorwks!ExecuteEXE+0x59

0013ffb0 79007c24 01ca4803 79e7 0013fff0 mscorwks!_CorExeMain+0x15c

0013ffc0 7c816fe7 6d7dca19 01ca4803 7ffd4000 mscoree!_CorExeMain+0x2c

0013fff0  79007bf0  78746341 KERNEL32!BaseProcessStart+0x23

 



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] limit drive selection during installation to local drives

2009-10-09 Thread Jahanzeb Khan
Hi 

 

Is there a way in WIX to limit the installer to install only on the
local drive; currently the InstallDirDlg dialog allows you to select any
drives that are mapped to your computer.

I want a way to filter the out the mapped drives or network drives and
just show the local drives only during installation?

Or is there another way to do this?

 

Thanks

j. 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] limit drive selection during installation to localdrives

2009-10-09 Thread Chad Petersen
The Control element should have the attributes I believe you are looking
for.



-Original Message-
From: Jahanzeb Khan [mailto:jk...@commondesk.com] 
Sent: Friday, October 09, 2009 9:37 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] limit drive selection during installation to
localdrives

Hi 

 

Is there a way in WIX to limit the installer to install only on the
local drive; currently the InstallDirDlg dialog allows you to select any
drives that are mapped to your computer.

I want a way to filter the out the mapped drives or network drives and
just show the local drives only during installation?

Or is there another way to do this?

 

Thanks

j. 


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Installer text is unreadable in high contrast

2009-10-09 Thread Alex Davis
Hi
 
We use Wix 2.0 to build the installer for our product. When running the MSI 
after switching to the "high contrast black" color scheme in Windows, the 
installer text is not readable (attaching sample screenshot). 
 
While we expected that the installer background would turn black so that the 
white text is readable in this mode, the actual behavior seems to be that the 
background and text are both white, making most text unreadable. The problem 
appears to be that the banner background image on the installer screen doesn't 
change due to high contrast. We believe this would impact visually impaired 
users.
 
Does anyone have any inputs / workarounds to fix this issue?
 
Thanks
Alex


  --
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] FW: Prevent install from failing ifXmlFile elementdoesn't exist - Email found in subject - Email found in subject

2009-10-09 Thread Blair
Looping the list back in, in case anyone else has the same issue.

-Original Message-
From: Evan Beeton [mailto:ebee...@informasoftware.com] 
Sent: Friday, October 09, 2009 8:22 AM
To: os...@live.com
Subject: RE: [WiX-users] Prevent install from failing ifXmlFile elementdoesn't 
exist - Email found in subject - Email found in subject

Thanks for the help, this approach worked.

-Original Message-
From: Blair [mailto:os...@live.com] 
Sent: Thursday, October 08, 2009 8:18 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Prevent install from failing ifXmlFile elementdoesn't 
exist - Email found in subject - Email found in subject

AFAIK an XPath expression that doesn't find anything doesn't do anything
without errors (however I didn't look at the source code to see if the CA
flags an SFALSE as an error or not), so it is worth testing removing the
element, then adding the element with its attribute, whenever you install
(the first part should no-op and the second gets you where you want to be).

-Original Message-
From: Evan Beeton [mailto:ebee...@informasoftware.com] 
Sent: Thursday, October 08, 2009 6:21 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Prevent install from failing if XmlFile
elementdoesn't exist - Email found in subject

Thanks for the reply.

The existing product is dependent on that element either being present and
valid, or absent altogether. I suppose another option would be to delete the
element with the "old" attribute if it exists upon install, and then create
the new one. The problem with both approaches is I don't know how to do that
conditionally in WiX, as you mention in point 1.

-Original Message-
From: Blair [mailto:os...@live.com] 
Sent: Thursday, October 08, 2009 8:13 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Prevent install from failing if XmlFile
elementdoesn't exist - Email found in subject

You would need to do two things:
1. persist somewhere whether the element existed before you changed/added
the attribute to it, and
2. retrieve that knowledge to condition the element removal.

Could you blank out the attribute value instead? What other alternatives do
you have? What happens if you never remove the element or the attribute?

-Original Message-
From: Evan Beeton [mailto:ebee...@informasoftware.com] 
Sent: Wednesday, October 07, 2009 11:28 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Prevent install from failing if XmlFile element doesn't
exist

Hello, I'm very new to WiX and Windows Installers in general. I'm
writing an installer that's a new add-on for an existing product. The
existing product has an XML file that I need to update. The new
installer uses XmlFile setValue to "rename" a specific attribute in that
XML file upon installation. During uninstall, XmlConfig is used to
delete the element with that attribute.

The upshot is that if you install then uninstall, that XML element no
longer exists; this causes the XmlFile setValue to fail if you
re-install. What I'd ideally like to do is "rename" the attribute if it
already exists, and create the whole element if it doesn't. Is it
possible to do this?

Thank you

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] change the default wixui dialog color

2009-10-09 Thread Blair
I wrote "You can set any background graphic you want in WiX's UI elements
without
customizing everything." I didn't mean to imply that you can change that
graphic on a per-dialog basis. Most of the time people want the same "look"
for all of their dialogs.

Just because some large companies do things that make life difficult for
those that rely on accessibility aids doesn't mean that it is a recommended
best practice. You will find blogs talking about all sorts of bad things
that large and prominent companies have done that should know better.

The trend inside of Microsoft's largest teams has been to move away from
Windows Installer's UI and toward some sort of external UI system (embedded,
bootstrapped, whatever) due to the limitations imposed by Windows Installer.
However that isn't a panacea as there are also some significant limitations
to external and embedded UIs.

-Original Message-
From: Pally Sandher [mailto:pally.sand...@iesve.com] 
Sent: Friday, October 09, 2009 4:42 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] change the default wixui dialog color

It is eminently possible to re-code the ExitDialog in WIXUIExtension so
you can specify a bitmap for only its use rather than it always using
the one defined in the WiXVariable "WixUIBannerBmp".
Will someone do it? Probably not. I've got Visual Studio 2008 now so I
could work on the code now but we no longer have a need for the checkbox
on the ExitDialog in any of our installers so I don't see myself being
motivated enough to do it.

As far as resizing the checkbox down & adding a transparent text box
next to it, I was told it'll never happen as it breaks some
accessibility stuff like screen readers apparently. Recently I've seen
installers from very large well respected software companies (Google
SketchUp & Perforce come immediately to mind) doing exactly that
however.

I bug reported this a long time ago. See
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=2025677&gro
up_id=105970

Blair can you clarify how one would set the ExitDialog to use a
different bitmap rather than the one defined in the WiXVariable
"WixUIBannerBmp" "without customizing everything" please? It would be
nice to have this in the WiX documentation in the How to page that
details how to use the checkbox in question so hopefully this comes up
less in future (it'll still come up regularly though, very few people
seem to even be aware of the WiX documentations existence and/or MSDN
and/or internet search engines on this list but at least there would be
a handy link to point them at).


Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the **
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
 
 

-Original Message-
From: Blair [mailto:os...@live.com] 
Sent: 09 October 2009 01:32
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] change the default wixui dialog color

You can set any background graphic you want in WiX's UI elements without
customizing everything. The issue is that checkboxes in Windows
Installer can't be made to be transparent, and as far as I know (and
Windows Installer's UI is a weak point for me) Windows Installer always
uses the system's (user's) default dialog background color.

-Original Message-
From: Scott Palmer [mailto:swpal...@gmail.com]
Sent: Thursday, October 08, 2009 11:20 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] change the default wixui dialog color

Can the default WiX UIs change to use that trick so we don't have to
customize everything just to get a decent background in the installer?
Scott

On Tue, Oct 6, 2009 at 12:56 AM, Blair  wrote:

> This is very often discussed (search the archives, this is the second 
> time this week).
>
> This is a known limitation of the Windows Installer UI (WiX doesn't
provide
> you a UI, it exposes Windows Installer's so you can use it). The two 
> workarounds involve changing your background graphic or shrinking your

> control down to the size of the checkbox itself and adding a 
> transparent static text with another copy of the checkbox text.
>
>


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



Re: [WiX-users] missing WIX 3.0 binary distributionfile 'difxapp_ia64.wixlib'

2009-10-09 Thread Blair
This looks like a message hijack as this thread is about the ia64 difx
implementation in wix 3.x. I remember your query under the subject of
"[WiX-users] Question regarding BootstrappeFiler Include= Crystal
Reports".
Furthermore, you have now asked this three times in less than 24 hours (some
people only see what is posted to this list once per day).

However, to attempt to answer your question: the msbuild BootstrapperFile
element is related to Visual Studio's shipped-for-developers bootstrapper
included in the SDK. While some people on this list have some experience
with this bootstrapper, many (dare I say most?) don't, and it has nothing to
do with the wix team per se. You may get better results using a visual
studio support forum on MSDN as both regular users of that bootstrapper as
well as MSFT team members responsible for that product live there.

I hadn't responded before in hopes that someone else who has more experience
with that bootstrapper would have responded assuming that they had run into
that issue. Since no one has responded, one can only conclude that all us
non-experts in that bootstrapper don't know the answer either.

The only bootstrapper the this team can claim for our own is burn, and it
hasn't been released yet (it is still undergoing active development).

-Original Message-
From: Jahanzeb Khan [mailto:jk...@commondesk.com] 
Sent: Friday, October 09, 2009 8:28 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] missing WIX 3.0 binary distributionfile
'difxapp_ia64.wixlib'

One more try... in getting question answered.
Hi all,
I am trying to use the BootstrapperFile Include to install Crystall
Reports runtime; I tried using the  tag (snippet of code is
attached below) to suppress the UI that pops up when the bootstrap is
executing for crystal report runtime;  but for some weird reason the
 has no affect on the installer and I still see the license
dialog box/UI from Crystal report runtime installer(license screen); is
there another way to suppress or hide the license screen ui that pops up
with the runtime installer?  I don't wanna show their (crystal reports)
license screen first before my installers license screen.  
So, any way to do that (either suppress Crystal reports license dialog
box or show mine first)?
Thank you,

khan


  False
  CrystalReports 10.5
   true

-Original Message-
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Thursday, October 08, 2009 11:29 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] missing WIX 3.0 binary distributionfile
'difxapp_ia64.wixlib'

Smith, Stan wrote:
>   I'm trying to find someone who can supply information about the WIX
3.0 binary distribution file 'difxapp_ia64.wixlib' as it is not present
in the WIX 3.0 binary distribution and documented to be included?
>   

It should be. Please open a bug on SourceForge; it's also missing from 
WiX v3.5 builds but if that's fixed, you should be able to use it with 
WiX v3.0 RTM.

-- 
sig://boB
http://joyofsetup.com/




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] (no subject)

2009-10-09 Thread Blair
In this case we can't see which method call
UtilFinalizeHarvesterMutator.Mutate() was making that is having the problem
(there are no loops in this method). I think this warrants a new bug.

If you could attach to the bug or otherwise make available both DLL files
(the one that works and the one that doesn't) that would probably be
helpful.

-Original Message-
From: Евгений Рогожников [mailto:eugen...@mail.ru] 
Sent: Friday, October 09, 2009 8:41 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] (no subject)



Hello!
 
I have problem thay very similar to that described in bug  1589839
http://sourceforge.net/tracker/index.php?func=detail&aid=1589839&group_id=10
5970&atid=642714
 
When I run "heat file my.dll -out my.wxs" it hangs with CPU 100 percent
 
heat version is 3.0.5419.0
When my.dll was builded on VisualStudio 6.0 it was all right
But now it is builded on VisualStudio 2008
 
I attached by WinDbg  and get the next callstack:
 
0 Id: 12ca4.12c18 Suspend: 1 Teb: 7ffdf000 Unfrozen

ChildEBP RetAddr Args to Child 

0013f2ac 00c69333 01289e3c 0128e580 0013f2f8
clrstub[vsd_dispatchst...@927590

0013f2bc 00c64e93   
WixUtilExtension!Microsoft.Tools.WindowsInstallerXml.Extensions.UtilFinalize
HarvesterMutator.Mutate(Microsoft.Tools.WindowsInstallerXml.Serialize.Wix)+0
x63

0013f2f8 00c61021   
wix!Microsoft.Tools.WindowsInstallerXml.Mutator.Mutate(Microsoft.Tools.Windo
wsInstallerXml.Serialize.Wix)+0xab

0013f470 00c6009b   
heat!Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Run(System.String[])+0xa
39

0013f480 79e71b4c   
heat!Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Main(System.String[])+0x
2b

0013f490 79e821f9 0013f560  0013f530 mscorwks!CallDescrWorker+0x33

0013f510 79e96571 0013f560  0013f530
mscorwks!CallDescrWorkerWithHandler+0xa3

0013f648 79e965a4 0091c038 0013f714 0013f6e0
mscorwks!MethodDesc::CallDescr+0x19c

0013f664 79e965c2 0091c038 0013f714 0013f6e0
mscorwks!MethodDesc::CallTargetWorker+0x1f

0013f67c 79f27434 0013f6e0 e338c617 
mscorwks!MethodDescCallSite::CallWithValueTypes+0x1a

0013f7e0 79eef9e5 0091306c 0001 0013f81c
mscorwks!ClassLoader::RunMain+0x20d

0013fa48 79eeff35  e338ceef 0001
mscorwks!Assembly::ExecuteMainMethod+0xa6

0013ff18 79ef011f 0040  e338ce9f
mscorwks!SystemDomain::ExecuteMainMethod+0x456

0013ff68 79ef004f 0040 e338ce47 6d7dca19 mscorwks!ExecuteEXE+0x59

0013ffb0 79007c24 01ca4803 79e7 0013fff0 mscorwks!_CorExeMain+0x15c

0013ffc0 7c816fe7 6d7dca19 01ca4803 7ffd4000 mscoree!_CorExeMain+0x2c

0013fff0  79007bf0  78746341 KERNEL32!BaseProcessStart+0x23

 




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] (no subject)

2009-10-09 Thread Alex Davis
Hi
 
We use Wix 2.0 to build the installer for our product. When running the MSI 
after switching to the "high contrast black" color scheme in Windows, the 
installer text is not readable (attaching sample screenshot). 
 
While we expected that the installer background would turn black so that the 
white text is readable in this mode, the actual behavior seems to be that the 
background and text are both white, making most text unreadable. The problem 
appears to be that the banner background image on the installer screen doesn't 
change due to high contrast. We believe this would impact visually impaired 
users.
 
Does anyone have any inputs / workarounds to fix this issue?
 
Thanks
Alex



  --
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] missing WIX 3.0 binary distribution file 'difxapp_ia64.wixlib'

2009-10-09 Thread Smith, Stan
Bob Arnson wrote:
> Smith, Stan wrote:
>>   I'm trying to find someone who can supply information about the
>> WIX 3.0 binary distribution file 'difxapp_ia64.wixlib' as it is not
>> present in the WIX 3.0 binary distribution and documented to be
>> included?
>>
>
> It should be. Please open a bug on SourceForge; it's also missing from
> WiX v3.5 builds but if that's fixed, you should be able to use it with
> WiX v3.0 RTM.

Will open a bugzilla report.
Did not find the file in 3.5 builds as of 2 weeks ago.

Thanks.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] High Contrast

2009-10-09 Thread Blair
(changing the subject line since it was "blank")

The list server often strips attachments. Could you please post the images
somewhere and supply a link to them?

-Original Message-
From: Alex Davis [mailto:alexpdavi...@yahoo.com] 
Sent: Friday, October 09, 2009 10:52 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] (no subject)

Hi
 
We use Wix 2.0 to build the installer for our product. When running the MSI
after switching to the "high contrast black" color scheme in Windows, the
installer text is not readable (attaching sample screenshot). 
 
While we expected that the installer background would turn black so that the
white text is readable in this mode, the actual behavior seems to be that
the background and text are both white, making most text unreadable. The
problem appears to be that the banner background image on the installer
screen doesn't change due to high contrast. We believe this would impact
visually impaired users.
 
Does anyone have any inputs / workarounds to fix this issue?
 
Thanks
Alex



  


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How can I capture the exit code from an ExeCommand CA?

2009-10-09 Thread David Battey
How do I get the exit code of the process that I ran using 
CustomAction/@ExeCommand into the PROCESSEXIT property?


-Original Message-
From: Blair  - 2009-10-06 19:25
 
If your custom action runs before CostFinalize, use conditions based on
properties.

PROCESSEXIT=0
...


PROCESSEXIT<>0
...


If your custom action runs after CostFinalize, use MsiSetComponentState.

See the description of the "Condition" column in this page:
http://msdn.microsoft.com/library/aa368007.aspx

-Original Message-
From: David Battey [mailto:dbat...@ph...] 
Sent: Tuesday, October 06, 2009 7:15 AM
To: wix-us...@li...
Subject: [WiX-users] How can I capture the exit code from an ExeCommand 
CA?

I want to run an ExeCommand CA and then decide which of two components to 
install depending on the process's exit code . Is there a way to do this?

I can write a DllCommand to execute the .exe and assign the exit code to a 

property, but I'm wondering if there's a more direct way to do it.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How can I capture the exit code from an ExeCommandCA?

2009-10-09 Thread Jahanzeb Khan
session["Property Name"] = ExitCode;

-Original Message-
From: David Battey [mailto:dbat...@phoenixcon.com] 
Sent: Friday, October 09, 2009 4:03 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How can I capture the exit code from an
ExeCommandCA?

How do I get the exit code of the process that I ran using 
CustomAction/@ExeCommand into the PROCESSEXIT property?


-Original Message-
From: Blair  - 2009-10-06 19:25
 
If your custom action runs before CostFinalize, use conditions based on
properties.

PROCESSEXIT=0
...


PROCESSEXIT<>0
...


If your custom action runs after CostFinalize, use MsiSetComponentState.

See the description of the "Condition" column in this page:
http://msdn.microsoft.com/library/aa368007.aspx

-Original Message-
From: David Battey [mailto:dbat...@ph...] 
Sent: Tuesday, October 06, 2009 7:15 AM
To: wix-us...@li...
Subject: [WiX-users] How can I capture the exit code from an ExeCommand 
CA?

I want to run an ExeCommand CA and then decide which of two components
to 
install depending on the process's exit code . Is there a way to do
this?

I can write a DllCommand to execute the .exe and assign the exit code to
a 

property, but I'm wondering if there's a more direct way to do it.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] High Contrast

2009-10-09 Thread Alex Davis
Thanks Blair. I've uploaded the screenshot here: 
http://www.flickr.com/photos/43382...@n03/3995772779/
In regular mode, we would see some welcome description text on this screen. In 
high-contrast mode, no text is visible.

--- On Fri, 10/9/09, Blair  wrote:


From: Blair 
Subject: Re: [WiX-users] High Contrast
To: "'General discussion for Windows Installer XML toolset.'" 

Date: Friday, October 9, 2009, 7:17 PM


(changing the subject line since it was "blank")

The list server often strips attachments. Could you please post the images
somewhere and supply a link to them?

-Original Message-
From: Alex Davis [mailto:alexpdavi...@yahoo.com] 
Sent: Friday, October 09, 2009 10:52 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] (no subject)

Hi
 
We use Wix 2.0 to build the installer for our product. When running the MSI
after switching to the "high contrast black" color scheme in Windows, the
installer text is not readable (attaching sample screenshot). 
 
While we expected that the installer background would turn black so that the
white text is readable in this mode, the actual behavior seems to be that
the background and text are both white, making most text unreadable. The
problem appears to be that the banner background image on the installer
screen doesn't change due to high contrast. We believe this would impact
visually impaired users.
 
Does anyone have any inputs / workarounds to fix this issue?
 
Thanks
Alex



      


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



  
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] High Contrast

2009-10-09 Thread Eric Anderson
Hello, I can confirm we're seeing the same with WiX 3.0, using the theme "High 
Contrast Black" in Win7 RTM.

-Eric

-Original Message-
From: Alex Davis [mailto:alexpdavi...@yahoo.com] 
Sent: den 9 oktober 2009 13:48
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] High Contrast

Thanks Blair. I've uploaded the screenshot here: 
http://www.flickr.com/photos/43382...@n03/3995772779/
In regular mode, we would see some welcome description text on this screen. In 
high-contrast mode, no text is visible.

--- On Fri, 10/9/09, Blair  wrote:


From: Blair 
Subject: Re: [WiX-users] High Contrast
To: "'General discussion for Windows Installer XML toolset.'" 

Date: Friday, October 9, 2009, 7:17 PM


(changing the subject line since it was "blank")

The list server often strips attachments. Could you please post the images
somewhere and supply a link to them?

-Original Message-
From: Alex Davis [mailto:alexpdavi...@yahoo.com] 
Sent: Friday, October 09, 2009 10:52 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] (no subject)

Hi
 
We use Wix 2.0 to build the installer for our product. When running the MSI
after switching to the "high contrast black" color scheme in Windows, the
installer text is not readable (attaching sample screenshot). 
 
While we expected that the installer background would turn black so that the
white text is readable in this mode, the actual behavior seems to be that
the background and text are both white, making most text unreadable. The
problem appears to be that the banner background image on the installer
screen doesn't change due to high contrast. We believe this would impact
visually impaired users.
 
Does anyone have any inputs / workarounds to fix this issue?
 
Thanks
Alex



      


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



  
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How can I capture the exit code from an ExeCommand CA?

2009-10-09 Thread Blair
You have to use a DLL action to call the exe action either way. The
difference is whether you create a property or call MsiSetComponentState
after the exe returns.

-Original Message-
From: David Battey [mailto:dbat...@phoenixcon.com] 
Sent: Friday, October 09, 2009 1:03 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How can I capture the exit code from an ExeCommand
CA?

How do I get the exit code of the process that I ran using 
CustomAction/@ExeCommand into the PROCESSEXIT property?


-Original Message-
From: Blair  - 2009-10-06 19:25
 
If your custom action runs before CostFinalize, use conditions based on
properties.

PROCESSEXIT=0
...


PROCESSEXIT<>0
...


If your custom action runs after CostFinalize, use MsiSetComponentState.

See the description of the "Condition" column in this page:
http://msdn.microsoft.com/library/aa368007.aspx

-Original Message-
From: David Battey [mailto:dbat...@ph...] 
Sent: Tuesday, October 06, 2009 7:15 AM
To: wix-us...@li...
Subject: [WiX-users] How can I capture the exit code from an ExeCommand 
CA?

I want to run an ExeCommand CA and then decide which of two components to 
install depending on the process's exit code . Is there a way to do this?

I can write a DllCommand to execute the .exe and assign the exit code to a 

property, but I'm wondering if there's a more direct way to do it.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Out Of Office Reply

2009-10-09 Thread gary
Thank you for your message. I am currently out of the office on Holiday with no 
access to e-mail.

I will be returning to work on 12 October.

If you need assistance before then, you may reach Atlas on 0845 867 2845 or 
i...@atlascs.co.uk.

Regards

Gary Howlett

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Out Of Office Reply

2009-10-09 Thread Richard

In article ,
g...@atlascs.co.uk  writes:

> I will be returning to work on 12 October.

And yet, oddly enough, noone on the internet gives a damn.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 

  Legalize Adulthood! 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom action type 19 displays message over the "Welcome" dialog

2009-10-09 Thread Blair
You're talking about the launch condition (the one with a condition of NOT
NEWERVERSIONDETECTED), right? That isn't a type 19 custom action.

LaunchConditions by default are sequenced at 100. WelcomeDlg defaults to
being sequenced at 1298 (IIRC).

There are no type 19 custom actions in the snippets of code you supplied. A
type 19 CA would look like this:



And would need to be scheduled in a sequence table.

Having said that, I don't know why a launch condition failure would show up
over the top of the welcome dialog.

-Original Message-
From: Dan Vasilov [mailto:d...@rms.ro] 
Sent: Friday, October 09, 2009 4:38 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

This is the current code.


  


NOT
NEWERVERSIONDETECTED

...



...
  


  
  


  


The UI is defined in a separate file and it looks like:

http://schemas.microsoft.com/wix/2006/wi";>
  



  
  
  

  
  

  
  
  
  
  
  
  
  
  
  

  1
  

  


  LAUNCHAPP
  1


  


  
  1



  

  
  
SHOWADVOPTIONS
  

  

  

  


  
SHOWADVOPTIONS
  

  
  


  1

  1
  1
  1





  



  




Shouldn't the condition be automatically checked before displaying any UI?

Thank you for taking your time to analyze this.

Dan


-Original Message-
From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] 
Sent: Friday, October 09, 2009 2:23 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

It seems that the Custom Actions are scheduled after the Welcome dialog or
somehow. How and where did you schedule them?


Best regards,
Sebastian Brand

Deployment consultant
E-Mail: sebast...@instyler.com

Instyler Setup - Creating WiX-based MSI installations, elegantly.
http://www.instyler.com



-Original Message-
From: Dan Vasilov [mailto:d...@rms.ro] 
Sent: Friday, October 09, 2009 11:04
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

Hello,

 

 We have a Wix-based setup that must meet a set of pre-conditions. The
conditions are properly checked, however the error message is displayed over
the "Welcome" dialog. We've tried to edit the UISequence and show the
Welcome dialog only when the specified conditions are met, however the error
message is still displayed after the Welcome dialog is shown.

  Do you have a suggestion where to look for a solution?

 

Dan


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
WiX-users mailing l