You don't need a Custom Action DLL.
Use a RegistrySearch to detect installation of IIS 6.0 (search the mail
archives, other people have posted what they use to do this reliably)
then condition the Publish tags which show your dialog with this
Property.

e.g.

<Property Id="DETECTIIS6" Secure="yes">
  <RegistrySearch Id="IIS6Search" Root="HKLM"
Key="SOFTWARE\Microsoft\IIS6\This_is_psuedocode_don't_use_it_literally"
Type="raw" Name="Version"/>
</Property>

  <Publish Dialog="FirstDialog" Control="Next" Event="NewDialog"
Value="LastDialog" Order="1">NOT DETECTIIS6</Publish>
  <Publish Dialog="FirstDialog" Control="Next" Event="NewDialog"
Value="IISConfigDlg" Order="2">DETECTIIS6</Publish>

  <Publish Dialog="LastDialog" Control="Back" Event="NewDialog"
Value="FirstDialog" Order="1">NOT DETECTIIS6</Publish>
  <Publish Dialog="LastDialog" Control="Back" Event="NewDialog"
Value="IISConfigDlg" Order="2">DETECTIIS6</Publish>


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 <Virtual Environment>**
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: Vishwajit Walke [mailto:vishwajit.wa...@matrikon.com] 
Sent: 06 April 2010 20:56
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] IIS 6.0 Detection to Skip the Custom Dialog
Occurrence

Hi,

I'm a beginner to Wix v3.0. I'm working on the Custom Dialog to accept
the Web Application Name and the Port Number.

I've written a Custom Action dll which checks whether a web application
exists on a specific port number and I'm triggering this custom action
on "Next" Button Click in my custom dialog.

All I want to achieve is to hide ("not" allow this custom dialog to
display) if IIS 6.0 is "not" installed. And if IIS is installed, then
allow this custom dialog to appear.

Is there a way to hide a Custom Dialog based on this specific condition
?

Do I need to write the code for this purpose in my custom action dll ?
OR is it possible to achieve through Wix Extensions for IIS ?

Please suggest.

Thanks. Vishwajit.


________________________________
READER BEWARE: Unencrypted, unsigned Internet e-mail is inherently
insecure.

Internet messages may be corrupted, incomplete, misdirected or may
incorrectly identify the sender. Therefore, nothing in this message or
attachments may be considered legally binding.

THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INDIVIDUAL OR ENTITY TO
WHICH IT IS ADDRESSED AND MAY BE PRIVILEGED.

If you are not the intended recipient or their authorized agent, you may
not forward or copy this information and must delete or destroy all
copies of this message and attachments received.

If you have received this communication in error, please notify Matrikon
Inc. by telephone at (780) 448-1010 or emailing ad...@matrikon.com.
------------------------------------------------------------------------
------
Download Intel&#174; Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to