Re: [WiX-users] Checking for Self install

2010-04-22 Thread Viv Coco
>  I am attempting to determine if a specific version of a product is already 
> installed on the system.  I basically want to do this to disallow/bail out of 
> an install if the MSI that is being executed is already installed on the 
> system.

1) If you run the same msi again you enter the maintenance mode where one can 
choose: repair, remove, change.

2) If you regenerate again the MSI, by rebuilding it, with the _same_ version 
but different Product Id (eg when you have in the code: Product Id="*"), and 
you have in the code smth like:



   SELFFOUND
   ...


   SELFFOUND
   ...


   !(loc.Error2001)


when you run this second msi you'll get the error saying that it was found and 
the installer will bail out.

Viv


On 4/19/2010 10:38 PM, Andy Clugston wrote:
> I am attempting to determine if a specific version of a product is already
> installed on the system.  I basically want to do this to disallow/bail out
> of an install if the MSI that is being executed is already installed on the
> system.
>
> Here is my authoring using 3.0 RTM. I must be missing something simple:
>
> Upgrade table.  FWIW, Product and Upgrade GUID is not changing for each
> build; only GUID that is changing is the Package GUID.  Language attribute
> matches as well.
>
> 
>
>IncludeMinimum='yes'
>Maximum='$(var.ProdVer)'
>IncludeMaximum='yes'
>OnlyDetect='yes'
>Language='1033'
>Property='SELFFOUND'/>
>  
>
> Check to see if product previously installed *and* is this specific version.
>
> Installed AND SELFFOUND
>
> Thanks.
> --
> Download Intel® 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
>
>
>


--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Checking for Self install

2010-04-21 Thread Sascha Beaumont
Launch conditions display when the evaluation is FALSE, i.e. the logic *fails*

To prevent installing my 32-bit package on a 64-bit OS, I use
something like this:






This means if "VersionNT64" evaluates to true (i.e. it's a 64-bit
system), I flip that to 'false'. If the application is not already
installed, then 'Installed' is also false - False OR False = False.
Hence the condition evaluates to false and the error message is
displayed to the user :)

Sascha

On Tue, Apr 20, 2010 at 9:22 PM, Andy Clugston  wrote:
> At the moment I am trying to understand the conditional logic I posted.
> Right now, when I attempt to install the condition is evaluating to TRUE and
> causing the *first* install to fail.  I am not understanding why it is
> evaluating this way.
>
> On Tue, Apr 20, 2010 at 2:02 AM, Sascha Beaumont
> wrote:
>
>> So you want to prevent repair, uninstall and upgrades? Ugh.
>>
>> If the Product ID isn't changing, Windows Installer should bail
>> automatically with "Another version of this product is already
>> installed" from memory, if you're using an automatically generated
>> Product ID you can use the fact that Windows Installer ignores fourth
>> version field to detect when none of the first three have changed. See
>> my post from last week for more info.
>>
>> Sascha
>>
>>
>>
>>
>> On Tue, Apr 20, 2010 at 6:38 AM, Andy Clugston  wrote:
>> > I am attempting to determine if a specific version of a product is
>> already
>> > installed on the system.  I basically want to do this to disallow/bail
>> out
>> > of an install if the MSI that is being executed is already installed on
>> the
>> > system.
>> >
>> > Here is my authoring using 3.0 RTM. I must be missing something simple:
>> >
>> > Upgrade table.  FWIW, Product and Upgrade GUID is not changing for each
>> > build; only GUID that is changing is the Package GUID.  Language
>> attribute
>> > matches as well.
>> >
>> > 
>> >
>> >      > >                      IncludeMinimum='yes'
>> >                      Maximum='$(var.ProdVer)'
>> >                      IncludeMaximum='yes'
>> >                      OnlyDetect='yes'
>> >                      Language='1033'
>> >                      Property='SELFFOUND'/>
>> >    
>> >
>> > Check to see if product previously installed *and* is this specific
>> version.
>> >
>> > Installed AND SELFFOUND
>> >
>> > Thanks.
>> >
>> --
>> > Download Intel® 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® 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® 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
>

--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Checking for Self install

2010-04-20 Thread Andy Clugston
At the moment I am trying to understand the conditional logic I posted.
Right now, when I attempt to install the condition is evaluating to TRUE and
causing the *first* install to fail.  I am not understanding why it is
evaluating this way.

On Tue, Apr 20, 2010 at 2:02 AM, Sascha Beaumont
wrote:

> So you want to prevent repair, uninstall and upgrades? Ugh.
>
> If the Product ID isn't changing, Windows Installer should bail
> automatically with "Another version of this product is already
> installed" from memory, if you're using an automatically generated
> Product ID you can use the fact that Windows Installer ignores fourth
> version field to detect when none of the first three have changed. See
> my post from last week for more info.
>
> Sascha
>
>
>
>
> On Tue, Apr 20, 2010 at 6:38 AM, Andy Clugston  wrote:
> > I am attempting to determine if a specific version of a product is
> already
> > installed on the system.  I basically want to do this to disallow/bail
> out
> > of an install if the MSI that is being executed is already installed on
> the
> > system.
> >
> > Here is my authoring using 3.0 RTM. I must be missing something simple:
> >
> > Upgrade table.  FWIW, Product and Upgrade GUID is not changing for each
> > build; only GUID that is changing is the Package GUID.  Language
> attribute
> > matches as well.
> >
> > 
> >
> >   >  IncludeMinimum='yes'
> >  Maximum='$(var.ProdVer)'
> >  IncludeMaximum='yes'
> >  OnlyDetect='yes'
> >  Language='1033'
> >  Property='SELFFOUND'/>
> >
> >
> > Check to see if product previously installed *and* is this specific
> version.
> >
> > Installed AND SELFFOUND
> >
> > Thanks.
> >
> --
> > Download Intel® 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® 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® 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


Re: [WiX-users] Checking for Self install

2010-04-19 Thread Sascha Beaumont
So you want to prevent repair, uninstall and upgrades? Ugh.

If the Product ID isn't changing, Windows Installer should bail
automatically with "Another version of this product is already
installed" from memory, if you're using an automatically generated
Product ID you can use the fact that Windows Installer ignores fourth
version field to detect when none of the first three have changed. See
my post from last week for more info.

Sascha




On Tue, Apr 20, 2010 at 6:38 AM, Andy Clugston  wrote:
> I am attempting to determine if a specific version of a product is already
> installed on the system.  I basically want to do this to disallow/bail out
> of an install if the MSI that is being executed is already installed on the
> system.
>
> Here is my authoring using 3.0 RTM. I must be missing something simple:
>
> Upgrade table.  FWIW, Product and Upgrade GUID is not changing for each
> build; only GUID that is changing is the Package GUID.  Language attribute
> matches as well.
>
> 
>
>                            IncludeMinimum='yes'
>                      Maximum='$(var.ProdVer)'
>                      IncludeMaximum='yes'
>                      OnlyDetect='yes'
>                      Language='1033'
>                      Property='SELFFOUND'/>
>    
>
> Check to see if product previously installed *and* is this specific version.
>
> Installed AND SELFFOUND
>
> Thanks.
> --
> Download Intel® 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® 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


[WiX-users] Checking for Self install

2010-04-19 Thread Andy Clugston
I am attempting to determine if a specific version of a product is already
installed on the system.  I basically want to do this to disallow/bail out
of an install if the MSI that is being executed is already installed on the
system.

Here is my authoring using 3.0 RTM. I must be missing something simple:

Upgrade table.  FWIW, Product and Upgrade GUID is not changing for each
build; only GUID that is changing is the Package GUID.  Language attribute
matches as well.



  


Check to see if product previously installed *and* is this specific version.

Installed AND SELFFOUND

Thanks.
--
Download Intel® 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