Major upgrade exe fails and rolls back when uninstalling old version - Advanced Installer Community
MartinHughes
Posts: 1
Joined: Wed Nov 23, 2016 3:31 pm

Major upgrade exe fails and rolls back when uninstalling old version

Hi All,

Been stuck on this for a few days. I have an installer. It was working fine and is working fine for new installs but not for upgrades anymore.

When the upgrade is uninstalling the previous version, when it is almost finished uninstalling the IIS part it rolls back.

Below is the lines in the verbose log file before the Return value 3. I see the mention of the file "Web.config.newsettings.xml" but I cant see whats wrong with it.

I have attached the AIP

Any help or pointer would be great, under a bit of pressure to find the issue.

Thanks
Martin

MSI (s) (70:78) [12:05:37:163]: Executing op: FeatureUnpublish(Feature=MainFeature,,Absent=2,Component=pAC8nIZ$7A'n-qnrsthp`!L]Kt%EDALtBk'qO`]H~]_,a+PjW?3Q)ZiHz5NgDshZY[5tX@l=)iZ$d-F]j,[w^3lD-9mj&$XnbcUNpRSW=~4BO9T2WUxNfVV,xE3ZXzcKi=`d(HBa}LAv5Sqc(B`Sr?erHPLd)]q]`xV5iq7r_9^%[0f6BD7T[k}i(~TXV?,`MOzH8CDC?%k-nE_NU=}FcS@F=77W6zh2S!X(V96~+~&Wc{s@H[i@+k_EdAj@T-0MW21Qw]_Gb9'La8p*']4nTK9l{ST8Q]m2-?vpUho}fR_1AF3JCfu3TAQSAH`?tRI(A[&~DN*2b8JB6'[uAL_sLa?r!eHmT@f4jv,76&Hd!ozWD_~Y~9N%[Im`OcSI+=ybL&)*$A!Oro+g)xPi$FsiirlHz8rF6@KOz,0CN3dhWTU&+?NX-59hN!hgHJqK9VNHN@1Zcav2&PkILvB6T,K3{8?u6sa-]1PRLV(mr7H3A?(icsjE]d=bUfDkTyxag=F7D=C8!Tz@KdETo`XdX@WJx.WA6d[ru6$IbDCos@J$-,W-t~DGy{~y(Hh*1A0vI,_5t5nALor@=UB%m9-HLaz9V_8&5V-X4M{(u@h=aU1xGqTLCwO}GMW,]?7+4'xIt((G@sH]Aj~Uf9*c8ZCnSM[O&??_ax.[s=C,wuVL*S38-Jh8*M1_+=-_n[1rDznM`gEGkIMM^?4k![Ta8*aSVGABNJskT9a8L2?1HeW&2rO@fl++@=vgr)-c)_Dbx-k1J20X,?X6}%RULyJ,u9T^+WAHSAK1FuR_j_HRhx+5_fH*h8o5A46,J_HKRUyQ2ig'4AaofcVZ7=Cwv0(0-&Ron=Kv]!3oBPO9^dRUW8l)F=lnlm.Syc!T7U(XT7~``AJ)yes1JNZv0!Z1@[Xuy8xI+O@yL}YgDL8Z.aZpf8MUF['?.@bJHe*7QvBuM?QW6fNgTUPqej)Y?@1Qi@NEqU7jqL*]qSfC9]a!.?yQMV]r
UnpublishFeatures: Feature: MainFeature
MSI (s) (70:78) [12:05:37:164]: Note: 1: 1402 2: UNKNOWN\Installer\Features\2DD1D1A0BECCF4F409781997FBFC5420 3: 2
MSI (s) (70:78) [12:05:37:165]: Executing op: ActionStart(Name=RemoveRegistryValues,Description=Removing system registry values,Template=Key: [1], Name: [2])
Action 12:05:37: RemoveRegistryValues. Removing system registry values
MSI (s) (70:78) [12:05:37:166]: Executing op: ProgressTotal(Total=3,Type=1,ByteEquivalent=13200)
MSI (s) (70:78) [12:05:37:166]: Executing op: RegOpenKey(Root=-1,Key=Software\BearingPoint\WebFiTAX,,BinaryType=0,,)
MSI (s) (70:78) [12:05:37:166]: Executing op: RegRemoveValue(Name=Version,Value=[ProductVersion],)
RemoveRegistryValues: Key: \Software\BearingPoint\WebFiTAX, Name: Version
MSI (s) (70:78) [12:05:37:167]: Executing op: RegRemoveValue(Name=Path,Value=[APPDIR],)
RemoveRegistryValues: Key: \Software\BearingPoint\WebFiTAX, Name: Path
MSI (s) (70:78) [12:05:37:169]: Executing op: RegOpenKey(Root=-1,Key=Software\Caphyon\Advanced Installer\Prereqs\{0A1D1DD2-CCEB-4F4F-9087-9179BFCF4502}\16.2.1.0,,BinaryType=0,,)
MSI (s) (70:78) [12:05:37:169]: Executing op: RegRemoveValue(Name=FFBA4953D1946D0B83D746165C18839,Value=1,)
RemoveRegistryValues: Key: \Software\Caphyon\Advanced Installer\Prereqs\{0A1D1DD2-CCEB-4F4F-9087-9179BFCF4502}\16.2.1.0, Name: FFBA4953D1946D0B83D746165C18839
MSI (s) (70:78) [12:05:37:170]: Executing op: ActionStart(Name=AI_XmlRemove,Description=Executing XML file configurations,Template=Configuring XML file: "[1]")
Action 12:05:37: AI_XmlRemove. Executing XML file configurations
MSI (s) (70:78) [12:05:37:171]: Executing op: CustomActionSchedule(Action=AI_XmlRemove,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (70:90) [12:05:37:175]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI1602.tmp, Entrypoint: OnXmlRemove
AI_XmlRemove: Configuring XML file: "C:\Program Files (x86)\XXXXXX\XXXXX\XXXXXXX\2016\Init\Web.config.newsettings.xml"
CustomAction AI_XmlRemove returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 12:05:37: InstallExecute. Return value 3.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Major upgrade exe fails and rolls back when uninstalling old version

Hello Martin and welcome to our forums,

It seems this happens because our "AI_XmlRemove" custom action (this action uninstall the XML files installed at install time) fails during the old product removal. I'm not sure what is the exact reason of failure for this action. Can you please send us the AIP (project file) of the old product (the one currently uninstalled) to support at advancedinstaller dot com so we can investigate and test it?

Also, can you let us know if you could replicate the upgrade issue on multiple machines? For testing purposes, can you try to manually uninstall the old product and see if the simple uninstall operation fails too?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”