You don't need the "checkmonoinstalled" property, remove those tags:
<CustomAction Id="checkMonoInstalled" ..> and <Custom
Action="checkMonoInstalled" ...>

Then change the condition by setting inner text of the sequence <Custom ..>
element to

<Custom Action="InstallMono" Before="InstallFinalize">
        <![CDATA[NOT REMOVE AND NOT MONOINSTALLED]]>
</Custom>     

If that doesnt work, test if the MONOINSTALLED property has the correct
value (see the msi installation logfile)


Best regards,
Sebastian Brand

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



-----Original Message-----
From: libin [mailto:libin.moha...@wipro.com] 
Sent: July 16, 2009 12:27
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Help needed on suppressing unwanted message


 
Dear Brand,

I changed the code like this:

Property for checking the registry:

<Property Id="MONOINSTALLED">
      <RegistrySearch Id="MonoSearch" Key="SOFTWARE\Novell\Mono\2.0.1"
Name="Install" Root="HKLM" Type="raw"></RegistrySearch>
    </Property>
    <CustomAction Id="checkMonoInstalled" Property="checkmonoinstalled"
Value="[MONOINSTALLED]" Return="check" ></CustomAction>


Custom action for installation:

<CustomAction Id="InstallMono" FileKey="MONOSETUP" ExeCommand="/silent"
Execute="deferred" Impersonate="no"
            Return="ignore"/>

Install sequence:

<InstallExecuteSequence>
      <Custom Action="checkMonoInstalled" Before="InstallFinalize">
        <![CDATA[NOT REMOVE]]>
      </Custom>
      <Custom Action="InstallMono" After="checkMonoInstalled">
        <![CDATA[NOT REMOVE]]>
      </Custom>     
    </InstallExecuteSequence>


But still the message is coming. I think I have to include the condition(if
already installed no reinstallation) somewhere. 
Can you please tell me what I am missing here?

I am new to WIX and I don't know most of the keywords and functions.

Thanks a lot

Libin
 

-----Original Message-----
From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] 
Sent: Thursday, July 16, 2009 2:02 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Help needed on suppressing unwanted message

Hi Libin,

Create a property and add a <FileSearch> to find out if Mono is installed
already. Then change the condition of the InstallMono action to run only
when that property is not set (ie. Mono was not found on the system).
You may want to do the same with the GTK action to avoid reinstallation of
GTK# as well.


Best regards,
Sebastian Brand

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




-----Original Message-----
From: libin [mailto:libin.moha...@wipro.com]
Sent: July 16, 2009 8:35
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Help needed on suppressing unwanted message

Hi all,
 
I am using WIX for installing a windows application created using GTK#. We
are using mono to run the application.
In the installer package we are shipping both GTK# and mono. The installer
is working perfectly when both mono and GTK# is not installed in the system.
The issue is when mono is installed and unwanted message is coming up
showing "mono seems to be installed please uninstall and try again"
actually this is not causing any problem in successful installation but I
want to suppress this message.
 
code snippet:
 
inside component tag:
<File Id="MONOSETUP" Source="../Pre-Requisites/To
Run/W2K3/x86_x64/mono-2.0.1-gtksharp-2.10.4-win32-1.exe"

Checksum="yes" Hidden="yes"/>

<File Id="GTKSETUP" Source="../Pre-Requisites/To
Run/W2K3/x86_x64/gtksharp-2.8.3-win32-0.0.exe"

Checksum="yes" Hidden="yes"/>

Custom action for installation:

<!-- Install Mono and Gtk#-->

<CustomAction Id="InstallMono" FileKey="MONOSETUP" ExeCommand="/silent"
Execute="deferred" Impersonate="no"

Return="ignore"/>

<CustomAction Id="InstallGtk" FileKey="GTKSETUP" ExeCommand="/silent"
Execute="deferred" Impersonate="no"

Return="ignore"/>

<InstallExecuteSequence>

<Custom Action="InstallMono" Before="InstallFinalize">

<![CDATA[NOT REMOVE]]>

</Custom>

<Custom Action="InstallGtk" Before="InstallFinalize">

<![CDATA[NOT REMOVE]]>

</Custom>

</InstallExecuteSequence>

Please help me to find out what went wrong here

Many thanks

 

Libin

 

 

 

----------------------------------------------------------------------------
--
Enter the BlackBerry Developer Challenge This is your chance to win up to
$100,000 in prizes! For a limited time, vendors submitting new applications
to BlackBerry App World(TM) will have the opportunity to enter the
BlackBerry Developer Challenge. See full prize

details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Enter the BlackBerry Developer Challenge This is your chance to win up to
$100,000 in prizes! For a limited time, vendors submitting new applications
to BlackBerry App World(TM) will have the opportunity to enter the
BlackBerry Developer Challenge. See full prize details at:
http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



----------------------------------------------------------------------------
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize

details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to