One option would be to create a custom action that would create
temporary records on install if the file exists on the installation
media. This would allow you to avoid the prompt, but it would mean you
would need to handle all the scenarios (install, upgrade, remove,
repair, etc) with temporary records. This would lend itself well if you
don't know the content that might be included up front but is the more
complex option.

Since it seems you do know the files at build time, you could create a
component with a condition that would evaluate a custom property to
determine if it needs to be installed.  Then in your installer you would
have a custom action which would enable the component (via a property)
if the file exist in the installation media.

-----Original Message-----
From: Andrew Maxwell [mailto:andrew.maxw...@papercut.com] 
Sent: Tuesday, May 22, 2012 2:20 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] non-vital files in an installation

Hrm, alright - suppressing the GUI prompt itself is out of the question,
then.
Can anyone give any advice on what the best way to do this would be?

-  optional file might be placed in the distribution directory (eg. a
logo file), with a specific name and location
-  at MSI runtime if the file exists, the MSI will copy it to the
destination
-  if not, continues on without bothering the user

My approach at the moment is to simply create a dummy file in my source
directory when harvesting with heat, and setting its Vital flag to
false.
This works fine, apart from the GUI popup.

cheers,
Andrew





On 22 May 2012 14:58, Rob Mensching <r...@robmensching.com> wrote:

> Never seen anything in the MSI SDK that suggests you can suppress that

> UI if you show the internal UI. You could develop your own external UI

> (but that's a lot of work). Burn could maybe make it a bit easier to 
> develop the external UI.
>
> On Mon, May 21, 2012 at 7:42 PM, Andrew Maxwell < 
> andrew.maxw...@papercut.com
> > wrote:
>
> > Hi all,
> > I've got a scenario where in some cases a file may be included in 
> > our distribution, but if it's not - no big deal, the installation 
> > should continue on anyway.
> >
> > At the moment I've got the file flagged as Vital="no" , and this 
> > achieves my goal - except for a popup asking to retry/cancel/ignore.
> >
> > Is there a way to suppress this dialogue and automatically select
> 'Ignore'
> > ?
> >
> > Or is there a better way of achieving this?
> >
> > thanks for any input!
> > Andrew
> >
> >
> ----------------------------------------------------------------------
> --------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and 
> > threat landscape has changed and how IT managers can respond. 
> > Discussions will include endpoint security, mobile security and the 
> > latest in malware threats. 
> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
>
> --
> virtually, Rob Mensching - http://RobMensching.com LLC
>
> ----------------------------------------------------------------------
> --------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. 
> Discussions will include endpoint security, mobile security and the 
> latest in malware threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------
------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

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

Reply via email to