I am using Wix 3.8 to create Msi and Exe Bootstrapper for our application. I
am following a per-user Install scope and storing the app in the User's
Appdata folder. While the first install happens fine, when I try to do a
minor upgrade (x.x.x.xxx), my upgrade fails and I get the error "Error
0x80070642: Failed to perform minor upgrade of MSI package.". The upgrade
works fine if I switch to perMachine Installation. Can anybody direct me
towards fixing this issue?

Code Snippet:

<Product Id="PRODUCT-GUID" Name="ProductInstaller" Language="1033" 
Version="$(var.ProductVersion)" Manufacturer="CompanyName"
UpgradeCode="UPGRADE-GUID">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perUser" 
InstallPrivileges="elevated" Id="*" />

<Upgrade Id="UPGRADE-GUID">
<UpgradeVersion OnlyDetect="yes" Property="SELFFOUND"
Minimum="$(var.MinProductVersion)"  IncludeMinimum="yes"
Maximum="$(var.ProductVersion)" IncludeMaximum="yes" />
<UpgradeVersion OnlyDetect="yes" Property="NEWERFOUND"
Maximum="$(var.ProductVersion)" IncludeMinimum="no" />
</Upgrade>

<CustomAction Id='AlreadyUpdated' Error='[ProductName] is already
installed.' />
<CustomAction Id='NoDowngrade' Error='A later version of [ProductName] is
already  installed.' />`
.
.
.
.
<Property Id='CHROME_BROWSER'>
<RegistrySearch Id='ChromeBrowser' Type='raw' Root='HKLM' 
Key='SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe'/>
</Property>

<CustomAction Id="LaunchBrowser" Property="CHROME_BROWSER"
ExeCommand="$(var.LaunchURL)"  Execute="deferred" Impersonate="no"
Return="asyncNoWait" />

<InstallExecuteSequence>
<Custom Action='AlreadyUpdated'
After='FindRelatedProducts'>SELFFOUND</Custom>
    <Custom Action='NoDowngrade'
After='FindRelatedProducts'>NEWERFOUND</Custom>
    <Custom Action='LaunchBrowser' Before='InstallFinalize'>
</Custom>    
</InstallExecuteSequence>


If I try to make it per-machine, while the update works fine, when I try to
launch Chrome browser in the end (Cannot use WixShellExec as my application
installer is only for Chrome browser), it launches Chrome but goes into a
Hanging State while it launches perfectly in the per-user scenario. If
anyone is aware about these issues, kindly help me out as I am totally
blocked here.

Thanks,

Vikas



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Issues-with-Wix-Installer-per-user-minor-upgrade-tp7596442.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to