The most obvious problem there is that the version needs incrementing
in the first three digits. The 4th one isn't used. So if the original
was 1.0.0.0, it won't work. There may be other issues, but let's get
that one out of the way first:

About half way down here it mentions the first three digits:

http://msdn.microsoft.com/en-us/library/aa369786(v=vs.85).aspx
---------------
Phil Wilson


On Thu, Feb 27, 2014 at 10:06 AM, faujong <fiefie.ni...@gmail.com> wrote:
> Thank you for your reply.
> I am new to WiX, so I apologize for not understanding too much of it.
>
> 1. Below is my Product.wxs. I am not sure if it is changing ProductCode and
> making a new product or not ?
> InstallScope is set to "perMachine".
> I have installed more than 2 times.
>
> <Product Id="*" Name="WixWindowsService2012" Language="1033"
> Version="1.0.0.1" Manufacturer="aa" UpgradeCode="blabla">
>         <Package InstallerVersion="200" Compressed="yes" 
> InstallScope="perMachine"
> Platforms="x64"/>
>         <Upgrade Id="blabla">
>                 <UpgradeVersion OnlyDetect="no" Property="PREVIOUSFOUND"
>                            Minimum="1.0.0.0"  IncludeMinimum="yes"
>                            Maximum="99.0.0.0" IncludeMaximum="no" />
>         </Upgrade>
>         <MajorUpgrade Schedule="afterInstallExecute" DowngradeErrorMessage="A 
> newer
> version of [ProductName] is already installed." />
>         <MediaTemplate />
>         <Feature Id="ProductFeature" Title="WixWindowsService2012" Level="1">
>                 <ComponentGroupRef Id="ProductComponents" />
>                 </Feature>
> </Product>
>
> <Fragment>
>         <Directory Id="TARGETDIR" Name="SourceDir">
>                 <Directory Id="ProgramFiles64Folder">
>                         <Directory Id="INSTALLFOLDER" 
> Name="WixWindowsService2012" />
>                         </Directory>
>                 </Directory>
> </Fragment>
>
> <Fragment>
>         <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
>                 <Component Id="ProductComponent" Win64="yes">
>                         <File Id="WixWindowsService2012.exe" 
> Name="WixWindowsService2012.exe"
> Source="$(var.WixWindowsService2012.TargetPath)" Vital="yes" KeyPath="yes"
> DiskId="1"/>
>                         <ServiceInstall ....></ServiceInstall>
>                         <ServiceControl Id="StartService" Start="install" 
> Stop="both"
> Remove="uninstall" Name="WixWindowsService2012" Wait="yes" />
>                 </Component>
>                 <Component Id="Config" Win64="yes" >
>                         <File 
> Source="$(var.WixWindowsService2012.ProjectDir)app.config"
> Name="WixWindowsService2012.exe.config" KeyPath="yes"/>
>                 </Component>
>
> 2. Yes, this is what I set ServiceControl to:
> <ServiceControl Id="StartService" Start="install" Stop="both"
> Remove="uninstall" Name="WixWindowsService2012" Wait="yes" />
>
> 3. When I select either of option button, and click OK, it will NOT roll
> back to previous version.
> And, the only way to roll back the installation is to click on the Cancel
> button.
> So, that's correct ?
>
>
>
>
> --
> View this message in context: 
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-not-copy-a-file-in-subsequent-installations-tp7592929p7592988.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to