[wix-users] reinstall every running

Phil Wilson phil.wilson at mvps.org
Sat Aug 13 09:48:03 PDT 2016


You have a major upgrade element that will disallow downgrades, and that
will actually disallow downgrades as you want if you've got the same
UpgradeCode as the installed package and your ProductVersion is lower in the
first three fields than the installed package, and you have a different
ProductCode - they're the basic rules to start with. 

Phil W 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Bernics Gábor
Sent: Saturday, August 13, 2016 2:21 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] reinstall every running

Sorry, if I was not obvious: I depoly this package with an msiexec script,
this srcipt run every start and reinstall the package. 

So, I would like add a simple version control in the msi: if the installed
version higher or equal to the packages version, skip the installation. 

(I am beginnner with WiX.) 

2016-08-12 18:10 időpontban Rob Mensching ezt írta:

> EventViewer should show you the Component being reinstalled.
> 
> _____________________________________________________________
> Short replies here. Complete answers over there: 
> http://www.firegiant.com/
> 
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On 
> Behalf Of Bernics Gábor
> Sent: Friday, August 12, 2016 8:12 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: [wix-users] reinstall every running
> 
> Hello,
> 
> I have a WiX generated MSI (see the source below), this MSI reinstall
every time if I run. 
> 
> How can I prevent this?
> 
> I would like deploy this package with GPO. 
> 
> Regards,
> 
> Gabor
> 
> <?xml version="1.0" encoding="UTF-8"?> <Wix 
> xmlns="http://schemas.microsoft.com/wix/2006/wi">
> <Product Id="*" Name="evoNetworkSwitch" Language="1033"
> Version="1.0.0.0" Manufacturer="evosoft Hungary IT"
> UpgradeCode="14182d16-d5a5-4ab0-beb7-4b310e680a5d">
> <Package InstallerVersion="200" Compressed="yes"
> InstallScope="perMachine" />
> 
> <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] 
> is already installed." />  <MediaTemplate />
> 
> <Feature Id="ProductFeature" Title="evoNetworkSwitch" Level="1">  
> <ComponentGroupRef Id="ProductComponents" />  </Feature>  </Product>
> 
> <!--Destination directory -->
> <Fragment>
> <Directory Id="TARGETDIR" Name="SourceDir">  <Directory 
> Id="ProgramFilesFolder">  <Directory Id="INSTALLFOLDER" 
> Name="evoNetworkSwitch" />  </Directory>  </Directory>  </Fragment>
> 
> <!--Source files -->
> <Fragment>
> <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="ProductComponent"
> Guid="{6F44232F-1C0B-4278-AB2B-BFD34FAE863C}">
> <File Id="evoNetworkSwitch.exe" Source="evoNetworkSwitch.exe" />
> 
> <!--Install services-->
> <ServiceInstall
> Id="ServiceInstaller"
> Type="ownProcess"
> Name="evoNetworkSwitch"
> DisplayName="evoNetworkSwitch"
> Description="Disable Wired connections if the Wireless is connected to
evosoft Wireless Infrastructure. Helpdesk: ithelpdesk at evosoft.com"
> Start="auto"
> Account="[SERVICEACCOUNT]"
> Password="[SERVICEPASSWORD]"
> ErrorControl="normal"
> />
> <ServiceControl Id="StartService" Start="install" Stop="both"
> Remove="uninstall" Name="JobService" Wait="yes" />
> 
> <File Id="eNSconf.xml" Source="eNSconf.xml" />  </Component>  
> </ComponentGroup>  </Fragment> </Wix>
> 
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> http://www.firegiant.com/
> 
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> http://www.firegiant.com/

-- 

Üdvözlettel / Kind regards,

Gabor BERNICS

Mobile: +36 70 233 9767
E-mail: gabor at bernics.hu

  

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/





More information about the wix-users mailing list