Wix custom action method changes not updating installation process - wix

How ever made changes into related custom action , also called same method into install sequence at required place , but changes not getting reflected into actual installation process . It always giving me exception at this method . Even I tried to remove this statement from install sequence ,still it giving me exception for same method .
Action ended 6:43:41: InstallFinalize. Return value 1.
MSI (s) (6C:24) [06:43:41:955]: Skipping action: CopyLogFile (condition is false)
MSI (s) (6C:24) [06:43:41:955]: Skipping action: RegisterAspWithIISAction (condition is false)
MSI (s) (6C:24) [06:43:41:955]: Doing action: RemoveVsixTrash
Action 6:43:41: RemoveVsixTrash.
Action start 6:43:41: RemoveVsixTrash.
MSI (s) (6C:24) [06:43:41:970]: Creating MSIHANDLE (2051) of type 790542 for thread 4132
MSI (s) (6C:D8) [06:43:41:970]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI7FE9.tmp, Entrypoint: RemoveVsixTrash
MSI (s) (6C!98) [06:43:42:064]: Creating MSIHANDLE (2052) of type 790531 for thread 4248
SFXCA: Extracting custom action to temporary directory: C:\WINDOWS\Installer\MSI7FE9.tmp-\
MSI (s) (6C!98) [06:43:42:126]: Closing MSIHANDLE (2052) of type 790531 for thread 4248
MSI (s) (6C!98) [06:43:42:173]: Creating MSIHANDLE (2053) of type 790531 for thread 4248
SFXCA: Binding to CLR version v4.0.30319
MSI (s) (6C!98) [06:43:42:189]: Closing MSIHANDLE (2053) of type 790531 for thread 4248
MSI (s) (6C!98) [06:43:42:236]: Creating MSIHANDLE (2054) of type 790531 for thread 4248
Calling custom action Allscripts.Automation.CustomAction!Allscripts.Automation.CustomAction.CustomActions.RemoveVsixTrash
MSI (s) (6C!98) [06:43:42:251]: Closing MSIHANDLE (2054) of type 790531 for thread 4248
MSI (s) (6C!98) [06:43:42:267]: Creating MSIHANDLE (2055) of type 790531 for thread 4248
Exception thrown by custom action:
MSI (s) (6C!98) [06:43:42:283]: Closing MSIHANDLE (2055) of type 790531 for thread 4248
MSI (s) (6C!98) [06:43:42:298]: Creating MSIHANDLE (2056) of type 790531 for thread 4248
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Allscripts.Automation.CustomAction.CustomActions.GetVsVersionInstallDirectories()
at Allscripts.Automation.CustomAction.CustomActions.RemoveVsixTrash(Session session)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
MSI (s) (6C!98) [06:43:42:298]: Closing MSIHANDLE (2056) of type 790531 for thread 4248
CustomAction RemoveVsixTrash returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (6C:D8) [06:43:42:345]: Closing MSIHANDLE (2051) of type 790542 for thread 4132
Action ended 6:43:42: RemoveVsixTrash. Return value 3.
Action ended 6:43:42: INSTALL. Return value 3.

Related

Wix Custom Action being skipped when it shouldn't

I'm new to Wix, so I might be missing something basic, but I can't figure out why my custom action isn't being executed.
My Setup
I have an installer that does 3 things: 1) Installs the client app, 2) Updates the database to which the app is linked, and 3) Deploys reports to the report server. I have created a dialog with checkboxes that allows the user to choose what combination of these 3 things the installer should do.
My features and custom actions are defined like this:
<Feature Id="MainProduct" Title="ARCtax" Level="1">
<ComponentGroupRef Id="ProductComponents" />
<ComponentGroupRef Id="RegistryComponents" />
<Condition Level="0">
<![CDATA[(NOT INSTALL_OPTION_1) and (NOT REMOVE = "ALL")]]>
</Condition>
</Feature>
<InstallExecuteSequence>
<Custom Action="RunSqlScripts" Sequence="6598">
<![CDATA[ALLOW_DB_UPDATE = "yes" and INSTALL_OPTION_2 = "1"]]>
</Custom>
<Custom Action="RunRsSetup" Sequence="6599">
<![CDATA[ALLOW_RS_DEPLOY = "yes" and ((ALLOW_DB_UPDATE = "yes" and INSTALL_OPTION_3 = "1") or (ALLOW_DB_UPDATE = "no" and INSTALL_OPTION_2 = "1"))]]>
</Custom>
</InstallExecuteSequence>
INSTALL_OPTION_1 = The 1st checkbox on the configuration dialog. This controls whether or not the app is installed.
INSTALL_OPTION_2 = The 2nd checkbox on the configuration dialog. When ALLOW_DB_UPDATE = "yes", this controls whether the database is updated, otherwise it controls whether reports are deployed.
INSTALL_OPTION_3 = The 3rd checkbox on the configuration dialog. This controls whether reports are deployed when ALLOW_DB_UPDATE = "yes", otherwise it is hidden
ALLOW_DB_UPDATE = Property set by another custom action. If the database connection fails, or the database is already up to date, this is "no" otherwise "yes".
ALLOW_RS_DEPLOY = Property set by another custom action. If the connection to the report server is successfully established, this is set to "yes" otherwise "no".
The Problem
The problem I'm having is that when I uncheck the first checkbox, but leave the other 2 checked (Don't install the app, but update the database and deploy the reports). The custom actions don't execute. The reason I need this behavior to work is that there could be situations where the user would need to reinstall the reports, or update another database, but not need to reinstall the app.
My 2 custom actions that update the database and deploy the reports are the last 2 actions to occur in the InstallExecuteSequence before InstallFinalize
When I run the installer with verbose logging, it says that those 2 actions are skipped because the condition is false, but as far as I can see, it shouldn't be. Can anyone give me some pointers? Below is the log (as much as I thought relevant/stackoverflow would allow me to include)
UI Log
Action 11:55:15: WelcomeDlg.
Action start 11:55:15: WelcomeDlg.
MSI (c) (AC:20) [11:55:15:057]: Note: 1: 2205 2: 3: Error
MSI (c) (AC:20) [11:55:15:057]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898
Info 2898.For ARCtaxInstall_Font_Normal textstyle, the system created a 'Verdana' font, in 1 character set, of 13 pixels height.
MSI (c) (AC:20) [11:55:15:066]: Note: 1: 2205 2: 3: Error
MSI (c) (AC:20) [11:55:15:066]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898
Info 2898.For ARCtaxInstall_Font_Header textstyle, the system created a 'Verdana' font, in 1 character set, of 23 pixels height.
Action 11:55:15: WelcomeDlg. Dialog created
MSI (c) (AC:C8) [11:55:15:074]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'.
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: BindImage
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: ProgId
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: PublishComponent
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: SelfReg
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: Extension
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: Font
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: Shortcut
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: Class
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: Icon
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2: 3: TypeLib
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2727 2:
MSI (c) (AC:20) [11:55:16:910]: Doing action: FetchConnectionInfo
Action 11:55:16: FetchConnectionInfo.
Action start 11:55:16: FetchConnectionInfo.
MSI (c) (AC:E8) [11:55:16:913]: Invoking remote custom action. DLL: C:\Users\astarr\AppData\Local\Temp\MSID386.tmp, Entrypoint: FetchExistingConnection
MSI (c) (AC:DC) [11:55:16:915]: Cloaking enabled.
MSI (c) (AC:DC) [11:55:16:915]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (AC:DC) [11:55:16:916]: Connected to service for CA interface.
MSI (c) (AC!50) [11:55:17:249]: PROPERTY CHANGE: Adding SERVER_NAME property. Its value is '**********'.
MSI (c) (AC!50) [11:55:17:250]: PROPERTY CHANGE: Adding DATABASE_NAME property. Its value is '**********'.
Action ended 11:55:17: FetchConnectionInfo. Return value 1.
MSI (c) (AC:20) [11:55:17:282]: Note: 1: 2205 2: 3: Error
MSI (c) (AC:20) [11:55:17:282]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898
Info 2898.For ARCtaxInstall_Font_Normal__UL textstyle, the system created a 'Verdana' font, in 0 character set, of 13 pixels height.
Action 11:55:17: ConnectionSelectDlg. Dialog created
MSI (c) (AC:20) [11:55:17:782]: Doing action: AllowDbUpdateOption
Action 11:55:17: AllowDbUpdateOption.
Action start 11:55:17: AllowDbUpdateOption.
MSI (c) (AC:80) [11:55:17:785]: Invoking remote custom action. DLL: C:\Users\astarr\AppData\Local\Temp\MSID6F2.tmp, Entrypoint: CheckDbUpdate
MSI (c) (AC!C0) [11:55:18:252]: PROPERTY CHANGE: Adding ALLOW_DB_UPDATE property. Its value is 'yes'.
Action ended 11:55:19: AllowDbUpdateOption. Return value 1.
MSI (c) (AC:20) [11:55:19:824]: Doing action: AllowRsDeployOption
Action 11:55:19: AllowRsDeployOption.
Action start 11:55:19: AllowRsDeployOption.
MSI (c) (AC:3C) [11:55:19:827]: Invoking remote custom action. DLL: C:\Users\astarr\AppData\Local\Temp\MSIDEE3.tmp, Entrypoint: CheckRsPermission
MSI (c) (AC!B0) [11:55:21:760]: PROPERTY CHANGE: Adding ALLOW_RS_DEPLOY property. Its value is 'yes'.
Action ended 11:55:23: AllowRsDeployOption. Return value 1.
Action 11:55:23: InstallOptionsDlg. Dialog created
MSI (c) (AC:20) [11:55:25:030]: PROPERTY CHANGE: Deleting INSTALL_OPTION_1 property. Its current value is '1'.
Action 11:55:26: DestinationSelectDlg. Dialog created
MSI (c) (AC:20) [11:55:27:185]: Note: 1: 2205 2: 3: Error
MSI (c) (AC:20) [11:55:27:185]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898
Info 2898.For ARCtaxInstall_Font_Bold textstyle, the system created a 'Verdana' font, in 1 character set, of 13 pixels height.
Action 11:55:27: ConfirmInstallDlg. Dialog created
Action ended 11:55:28: WelcomeDlg. Return value 1.
MSI (c) (AC:A4) [11:55:28:472]: Doing action: ProgressDlg
Action 11:55:28: ProgressDlg.
Action start 11:55:28: ProgressDlg.
Action 11:55:28: ProgressDlg. Dialog created
Action ended 11:55:28: ProgressDlg. Return value 1.
Execute Sequence Log
Action start 11:55:28: INSTALL.
MSI (s) (6C:C0) [11:55:28:575]: Running ExecuteSequence
MSI (s) (6C:C0) [11:55:28:575]: Doing action: FindRelatedProducts
Action 11:55:28: FindRelatedProducts. Searching for related applications
Action start 11:55:28: FindRelatedProducts.
MSI (s) (6C:C0) [11:55:28:576]: Skipping FindRelatedProducts action: already done on client side
Action ended 11:55:28: FindRelatedProducts. Return value 0.
MSI (s) (6C:C0) [11:55:28:577]: Doing action: AppSearch
Action 11:55:28: AppSearch. Searching for installed applications
Action start 11:55:28: AppSearch.
MSI (s) (6C:C0) [11:55:28:577]: Skipping AppSearch action: already done on client side
Action ended 11:55:28: AppSearch. Return value 0.
MSI (s) (6C:C0) [11:55:28:578]: Skipping action: SetINSTALLFOLDER (condition is false)
MSI (s) (6C:C0) [11:55:28:578]: Doing action: LaunchConditions
Action 11:55:28: LaunchConditions. Evaluating launch conditions
Action start 11:55:28: LaunchConditions.
Action ended 11:55:28: LaunchConditions. Return value 1.
MSI (s) (6C:C0) [11:55:28:578]: Doing action: ValidateProductID
Action 11:55:28: ValidateProductID.
Action start 11:55:28: ValidateProductID.
Action ended 11:55:28: ValidateProductID. Return value 1.
MSI (s) (6C:C0) [11:55:28:580]: Doing action: CostInitialize
Action 11:55:28: CostInitialize. Computing space requirements
Action start 11:55:28: CostInitialize.
MSI (s) (6C:C0) [11:55:28:580]: Machine policy value 'MaxPatchCacheSize' is 10
MSI (s) (6C:C0) [11:55:28:581]: PROPERTY CHANGE: Adding ROOTDRIVE property. Its value is 'C:\'.
MSI (s) (6C:C0) [11:55:28:581]: PROPERTY CHANGE: Adding CostingComplete property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:581]: Note: 1: 2205 2: 3: Patch
MSI (s) (6C:C0) [11:55:28:581]: Note: 1: 2205 2: 3: PatchPackage
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2205 2: 3: MsiPatchHeaders
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2205 2: 3: __MsiPatchFileList
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2205 2: 3: PatchPackage
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2228 2: 3: PatchPackage 4: SELECT `DiskId`, `PatchId`, `LastSequence` FROM `Media`, `PatchPackage` WHERE `Media`.`DiskId`=`PatchPackage`.`Media_` ORDER BY `DiskId`
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2205 2: 3: Patch
Action ended 11:55:28: CostInitialize. Return value 1.
MSI (s) (6C:C0) [11:55:28:582]: Doing action: FileCost
Action 11:55:28: FileCost. Computing space requirements
Action start 11:55:28: FileCost.
MSI (s) (6C:C0) [11:55:28:583]: Note: 1: 2205 2: 3: MsiAssembly
MSI (s) (6C:C0) [11:55:28:583]: Note: 1: 2205 2: 3: Class
MSI (s) (6C:C0) [11:55:28:583]: Note: 1: 2205 2: 3: Extension
MSI (s) (6C:C0) [11:55:28:583]: Note: 1: 2205 2: 3: TypeLib
Action ended 11:55:28: FileCost. Return value 1.
MSI (s) (6C:C0) [11:55:28:583]: Doing action: CostFinalize
Action 11:55:28: CostFinalize. Computing space requirements
Action start 11:55:28: CostFinalize.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding OutOfDiskSpace property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding OutOfNoRbDiskSpace property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceAvailable property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRequired property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRemaining property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: Note: 1: 2205 2: 3: MsiAssembly
MSI (s) (6C:C0) [11:55:28:584]: Note: 1: 2228 2: 3: MsiAssembly 4: SELECT `MsiAssembly`.`Attributes`, `MsiAssembly`.`File_Application`, `MsiAssembly`.`File_Manifest`, `Component`.`KeyPath` FROM `MsiAssembly`, `Component` WHERE `MsiAssembly`.`Component_` = `Component`.`Component` AND `MsiAssembly`.`Component_` = ?
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding INSTALLFOLDER property. Its value is 'C:\Program Files\Appraisal Research Corp\ARCtax_Test_Installer'.
MSI (s) (6C:C0) [11:55:28:584]: Note: 1: 2205 2: 3: Patch
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'C:\'.
MSI (s) (6C:C0) [11:55:28:585]: PROPERTY CHANGE: Adding ManufactureDir property. Its value is 'C:\Program Files\Appraisal Research Corp\'.
MSI (s) (6C:C0) [11:55:28:585]: PROPERTY CHANGE: Modifying INSTALLFOLDER property. Its current value is 'C:\Program Files\Appraisal Research Corp\ARCtax_Test_Installer'. Its new value: 'C:\Program Files\Appraisal Research Corp\ARCtax_Test_Installer\'.
MSI (s) (6C:C0) [11:55:28:585]: Target path resolution complete. Dumping Directory table...
MSI (s) (6C:C0) [11:55:28:585]: Note: target paths subject to change (via custom actions or browsing)
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: TARGETDIR , Object: C:\
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: WindowsFolder , Object: C:\WINDOWS\
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: ProgramFiles64Folder , Object: C:\Program Files\
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: ManufactureDir , Object: C:\Program Files\Appraisal Research Corp\
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: INSTALLFOLDER , Object: C:\Program Files\Appraisal Research Corp\ARCtax_Test_Installer\
Action ended 11:55:28: CostFinalize. Return value 1.
MSI (s) (6C:C0) [11:55:28:585]: Doing action: MigrateFeatureStates
Action 11:55:28: MigrateFeatureStates. Migrating feature states from related applications
Action start 11:55:28: MigrateFeatureStates.
MSI (s) (6C:C0) [11:55:28:586]: Skipping MigrateFeatureStates action: already done on client side
Action ended 11:55:28: MigrateFeatureStates. Return value 0.
MSI (s) (6C:C0) [11:55:28:586]: Doing action: InstallValidate
Action 11:55:28: InstallValidate. Validating install
Action start 11:55:28: InstallValidate.
MSI (s) (6C:C0) [11:55:28:587]: PROPERTY CHANGE: Deleting MsiRestartManagerSessionKey property. Its current value is '1102d8f96701ca4ea7c1ec85069c9dad'.
MSI (s) (6C:C0) [11:55:28:587]: Feature: MainProduct; Installed: Local; Request: Null; Action: Null
MSI (s) (6C:C0) [11:55:28:587]: Component: TestApp; Installed: Local; Request: Null; Action: Null
MSI (s) (6C:C0) [11:55:28:587]: Component: ProductRegistryKey; Installed: Local; Request: Null; Action: Null
MSI (s) (6C:C0) [11:55:28:587]: Component: __ProductRegistryKey65; Installed: Null; Request: Null; Action: Null
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: BindImage
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: ProgId
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: PublishComponent
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: SelfReg
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: Extension
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: Font
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: Shortcut
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: Class
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: Icon
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2: 3: TypeLib
MSI (s) (6C:C0) [11:55:28:589]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'.
MSI (s) (6C:C0) [11:55:28:589]: Note: 1: 2205 2: 3: BindImage
MSI (s) (6C:C0) [11:55:28:589]: Note: 1: 2205 2: 3: ProgId
MSI (s) (6C:C0) [11:55:28:589]: Note: 1: 2205 2: 3: PublishComponent
MSI (s) (6C:C0) [11:55:28:589]: Note: 1: 2205 2: 3: SelfReg
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2: 3: Extension
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2: 3: Font
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2: 3: Shortcut
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2: 3: Class
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2: 3: Icon
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2: 3: TypeLib
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2727 2:
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2: 3: FilesInUse
MSI (s) (6C:C0) [11:55:28:609]: Note: 1: 2727 2:
Action ended 11:55:28: InstallValidate. Return value 1.
MSI (s) (6C:C0) [11:55:28:611]: Doing action: RemoveExistingProducts
Action 11:55:28: RemoveExistingProducts. Removing applications
Action start 11:55:28: RemoveExistingProducts.
MSI (s) (6C:C0) [11:55:28:612]: Skipping RemoveExistingProducts action: current configuration is maintenance mode or an uninstall
Action ended 11:55:28: RemoveExistingProducts. Return value 0.
MSI (s) (6C:C0) [11:55:28:612]: Doing action: InstallInitialize
Action 11:55:28: InstallInitialize.
Action start 11:55:28: InstallInitialize.
MSI (s) (6C:C0) [11:55:28:613]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [11:55:28:613]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [11:55:28:613]: BeginTransaction: Locking Server
MSI (s) (6C:C0) [11:55:28:614]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038
MSI (s) (6C:C0) [11:55:28:614]: SRSetRestorePoint skipped for this transaction.
MSI (s) (6C:C0) [11:55:28:614]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038
MSI (s) (6C:C0) [11:55:28:614]: Server not locked: locking for product {E0A31102-EAA7-4C51-8BFF-AA83722FA29A}
Action ended 11:55:28: InstallInitialize. Return value 1.
MSI (s) (6C:C0) [11:55:28:623]: Doing action: ProcessComponents
Action 11:55:28: ProcessComponents. Updating component registration
Action start 11:55:28: ProcessComponents.
Action ended 11:55:28: ProcessComponents. Return value 1.
MSI (s) (6C:C0) [11:55:28:625]: Doing action: UnpublishFeatures
Action 11:55:28: UnpublishFeatures. Unpublishing Product Features
Action start 11:55:28: UnpublishFeatures.
Action ended 11:55:28: UnpublishFeatures. Return value 1.
MSI (s) (6C:C0) [11:55:28:626]: Doing action: RemoveRegistryValues
Action 11:55:28: RemoveRegistryValues. Removing system registry values
Action start 11:55:28: RemoveRegistryValues.
Action ended 11:55:28: RemoveRegistryValues. Return value 1.
MSI (s) (6C:C0) [11:55:28:628]: Doing action: RemoveFiles
Action 11:55:28: RemoveFiles. Removing files
Action start 11:55:28: RemoveFiles.
MSI (s) (6C:C0) [11:55:28:629]: Note: 1: 2205 2: 3: RemoveFile
MSI (s) (6C:C0) [11:55:28:629]: Note: 1: 2205 2: 3: RemoveFile
Action ended 11:55:28: RemoveFiles. Return value 0.
MSI (s) (6C:C0) [11:55:28:629]: Doing action: InstallFiles
Action 11:55:28: InstallFiles. Copying new files
Action start 11:55:28: InstallFiles.
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2205 2: 3: Patch
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2228 2: 3: Patch 4: SELECT `Patch`.`File_`, `Patch`.`Header`, `Patch`.`Attributes`, `Patch`.`Sequence`, `Patch`.`StreamRef_` FROM `Patch` WHERE `Patch`.`File_` = ? AND `Patch`.`#_MsiActive`=? ORDER BY `Patch`.`Sequence`
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2205 2: 3: Error
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1302
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2205 2: 3: MsiSFCBypass
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2228 2: 3: MsiSFCBypass 4: SELECT `File_` FROM `MsiSFCBypass` WHERE `File_` = ?
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2205 2: 3: MsiPatchHeaders
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2228 2: 3: MsiPatchHeaders 4: SELECT `Header` FROM `MsiPatchHeaders` WHERE `StreamRef` = ?
Action ended 11:55:28: InstallFiles. Return value 1.
MSI (s) (6C:C0) [11:55:28:631]: Doing action: WriteRegistryValues
Action 11:55:28: WriteRegistryValues. Writing system registry values
Action start 11:55:28: WriteRegistryValues.
Action ended 11:55:28: WriteRegistryValues. Return value 1.
MSI (s) (6C:C0) [11:55:28:632]: Doing action: RegisterUser
Action 11:55:28: RegisterUser. Registering user
Action start 11:55:28: RegisterUser.
Action ended 11:55:28: RegisterUser. Return value 0.
MSI (s) (6C:C0) [11:55:28:633]: Doing action: RegisterProduct
Action 11:55:28: RegisterProduct. Registering product
Action start 11:55:28: RegisterProduct.
Action 11:55:28: GenerateScript. Generating script operations for action:
GenerateScript: Registering product
Action ended 11:55:28: RegisterProduct. Return value 1.
MSI (s) (6C:C0) [11:55:28:644]: Doing action: PublishFeatures
Action 11:55:28: PublishFeatures. Publishing Product Features
Action start 11:55:28: PublishFeatures.
Action ended 11:55:28: PublishFeatures. Return value 1.
MSI (s) (6C:C0) [11:55:28:649]: Doing action: PublishProduct
Action 11:55:28: PublishProduct. Publishing product information
Action start 11:55:28: PublishProduct.
PublishProduct:
MSI (s) (6C:C0) [11:55:28:656]: Resolving source.
MSI (s) (6C:C0) [11:55:28:656]: Resolving source to launched-from source.
MSI (s) (6C:C0) [11:55:28:656]: Setting launched-from source as last-used.
MSI (s) (6C:C0) [11:55:28:656]: PROPERTY CHANGE: Adding SourceDir property. Its value is 'C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\'.
MSI (s) (6C:C0) [11:55:28:656]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is 'C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\'.
MSI (s) (6C:C0) [11:55:28:656]: PROPERTY CHANGE: Adding SourcedirProduct property. Its value is '{E0A31102-EAA7-4C51-8BFF-AA83722FA29A}'.
MSI (s) (6C:C0) [11:55:28:656]: SOURCEDIR ==> C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\
MSI (s) (6C:C0) [11:55:28:656]: SOURCEDIR product ==> {E0A31102-EAA7-4C51-8BFF-AA83722FA29A}
MSI (s) (6C:C0) [11:55:28:657]: Determining source type
MSI (s) (6C:C0) [11:55:28:657]: Source type from package 'Installer_ARCtax.msi': 2
MSI (s) (6C:C0) [11:55:28:657]: SECREPAIR: Hash Database: C:\WINDOWS\Installer\SourceHash{E0A31102-EAA7-4C51-8BFF-AA83722FA29A}
MSI (s) (6C:C0) [11:55:28:683]: Source path resolution complete. Dumping Directory table...
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: TARGETDIR , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath: , ShortSubPath:
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: WindowsFolder , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath: , ShortSubPath:
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: ProgramFiles64Folder , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath: , ShortSubPath:
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: ManufactureDir , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath: Appraisal Research Corp\ , ShortSubPath: 8ii-ewho\
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: INSTALLFOLDER , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath: Appraisal Research Corp\ARCtax_Test_Installer\ , ShortSubPath: 8ii-ewho\v7651isb\
Action ended 11:55:28: PublishProduct. Return value 1.
MSI (s) (6C:C0) [11:55:28:684]: Skipping action: RunSqlScripts (condition is false)
MSI (s) (6C:C0) [11:55:28:684]: Skipping action: RunRsSetup (condition is false)
MSI (s) (6C:C0) [11:55:28:684]: Doing action: InstallFinalize
Action 11:55:28: InstallFinalize.
I suppose I should also note that when I leave the 1st checkbox checked, the other options work as they should.
Edit
I almost forgot, this issue only happens when the application is already installed. If it's not and I deselect the 1st checkbox, the database will still be updated and reports will still be deployed.
Assuming that the scenario is that you run the MSI again and it goes into maintenance mode and shows the Welcome dialog again, and then you choose the checkboxes again...
Make sure that you declare the properties as secure. That tends to be the main reason that property values don't migrate from the UI to the installer service.

Why installation rolls back at the end?

Our organization uses Wix Toolset to create an installation package for one of our applications (64-bit). Our installation of old version of the product (which is 32-bit) is created using InstallShield. We have a requirement - when we install the new version (WiX install, 64-bit), if the old version is present (InstallShield - 32-bit), this needs to be uninstalled during the installation process. We are using same upgrade code in both installations.
Behaviour 1 - (When we are using same upgrade code) - Installation goes towards the end (created all application shortcuts), then throws an error '[AppName] Setup Wizard ended prematurely' and rollback installation.
Behaviour 2 - (When we are using different upgrade code) - As expected both applications exists after installation.
Anybody faced similar issue? How to solve this? I am stuck with this issue for last 3 days!
[Update] I am using Bootstrapper and logging is enabled by default. Please find below some extract from the log file. At the end, you can see a fatal error with return value 3.
MSI (s) (A0:5C) [10:08:56:340]: Executing op: RegAddValue(Name=Readme,,)
MSI (s) (A0:5C) [10:08:56:340]: Executing op: RegAddValue(Name=Publisher,Value=Future Fibre Technologies,)
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegAddValue(Name=ModifyPath,Value=#%MsiExec.exe /I{3D7E14A8-61BB-41EE-9FEB-2A0272B730C4},)
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegAddValue(Name=InstallSource,Value=\\COMP_Name\Install\Testing\Software\AppName\v1.22.5\,)
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegAddValue(Name=InstallLocation,Value=C:\Program Files (x86)\CompanyName\AppName\,)
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegAddValue(Name=InstallDate,Value=20161026,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=HelpTelephone,Value= ,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=HelpLink,Value=#%http://www.abc.com.au,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=DisplayVersion,Value=x.yy.0050,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=Contact,Value= ,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=Comments,Value= ,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=AuthorizedCDFPrefix,,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\8A41E7D3BB16EE14F9BEA220277B034C\InstallProperties,SecurityDescriptor=BinaryData,BinaryType=1,,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=Language,Value=#1033,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=Version,Value=#18219058,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=WindowsInstaller,Value=#1,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=VersionMinor,Value=#22,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=VersionMajor,Value=#1,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=URLUpdateInfo,Value=http://www.abc.com.au,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=URLInfoAbout,Value=http://www.abc.com.au,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=UninstallString,Value=#%MsiExec.exe /I{3D7E14A8-61BB-41EE-9FEB-2A0272B730C4},)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=EstimatedSize,Value=#53956,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=Size,,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=Readme,,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=Publisher,Value=Future Fibre Technologies,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=ModifyPath,Value=#%MsiExec.exe /I{3D7E14A8-61BB-41EE-9FEB-2A0272B730C4},)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=LocalPackage,Value=C:\Windows\Installer\37e30.msi,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=InstallSource,Value=\\COMP_NAME\Install\Testing\Software\Application\vx.yy.z\,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=InstallLocation,Value=C:\Program Files (x86)\CompanyName\AppName\,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=InstallDate,Value=20161026,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=HelpTelephone,Value= ,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=HelpLink,Value=#%http://www.abc.com.au,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=DisplayVersion,Value=1.22.0050,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=Contact,Value= ,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=Comments,Value= ,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=AuthorizedCDFPrefix,,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Windows\CurrentVersion\Installer\TempPackages,,BinaryType=1,,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegRemoveValue(Name=C:\Windows\Installer\37e30.msi,Value=#0,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegRemoveKey()
MSI (s) (A0:5C) [10:08:56:344]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\TempPackages 3: 2
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\8A41E7D3BB16EE14F9BEA220277B034C\Transforms,,BinaryType=1,,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegRemoveKey()
MSI (s) (A0:5C) [10:08:56:344]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\8A41E7D3BB16EE14F9BEA220277B034C\Transforms 3: 2
MSI (s) (A0:5C) [10:08:56:344]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=0)
MSI (s) (A0:5C) [10:08:56:344]: Error in rollback skipped. Return: 5
MSI (s) (A0:5C) [10:08:56:345]: Note: 1: 2318 2:
MSI (s) (A0:5C) [10:08:56:346]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (A0:5C) [10:08:56:347]: Destroying RemoteAPI object.
MSI (s) (A0:58) [10:08:56:347]: Custom Action Manager thread ending.
MSI (s) (A0:5C) [10:08:56:347]: No System Restore sequence number for this installation.
MSI (c) (C8:7C) [10:08:56:363]: Back from server. Return value: 1603
MSI (c) (C8:7C) [10:08:56:363]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (C8:7C) [10:08:56:364]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 10:08:56: ExecuteAction. Return value 3.
MSI (c) (C8:7C) [10:08:56:364]: Doing action: FatalError
Action 10:08:56: FatalError.
Action start 10:08:56: FatalError.
Action 10:08:56: FatalError. Dialog created
Action ended 10:08:57: FatalError. Return value 2.
Action ended 10:08:57: INSTALL. Return value 3.
Property(C): DiskPrompt = [1]
Property(C): UpgradeCode = {03599145-22C5-4253-8D9A-78A05166A71F}
Property(C): WIXNETFX4RELEASEINSTALLED = #394254
Property(C): LicenseAccepted = 1
Update - Install Execute Sequence:
<InstallExecuteSequence>
<Custom Action='StopAppService' Before='InstallValidate'/>
<Custom Action='StopApplicationMonitor' After='InstallValidate'/>
<Custom Action='BackupConfigFile' After='StopApplicationMonitor'>
UPGRADINGPRODUCTCODE OR REMOVE="ALL"
</Custom>
<Custom Action='ImportConfigFile' After='InstallFinalize'>Not Installed</Custom>
<Custom Action='PrepareStartApplicationMonitor' After='ImportConfigFile'>Not Installed</Custom>
<Custom Action='StartApplicationMonitor' After='PrepareStartApplicationMonitor'>Not Installed</Custom>
</InstallExecuteSequence>

Wix/MSI - Major Upgrade in silent mode

I have an installer with upgrade support from our previous version:
<Product Id="*"
Name="$(var.ProductName)"
Language="1033"
Version="$(var.InstallerVersion)"
Manufacturer="$(var.Manufacturer)"
UpgradeCode="$(var.UpgradeCode)">
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="$(var.InstallerVersion)" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSIONFOUND" />
<UpgradeVersion Minimum="5.0.0" IncludeMinimum="yes" Maximum="$(var.InstallerVersion)" IncludeMaximum="yes" Property="OLDERVERSIONFOUND" MigrateFeatures="yes" />
<UpgradeVersion Minimum="0.0.0" IncludeMinimum="yes" Maximum="5.0.0" IncludeMaximum="no" Property="OLDESTVERSIONFOUND" MigrateFeatures="yes" />
</Upgrade>
<InstallExecuteSequence>
<Custom Action="SetReInstallProperty" After="FindRelatedProducts">OLDERVERSIONFOUND OR OLDESTVERSIONFOUND</Custom>
<Custom Action="SetReInstallModeProperty" After="FindRelatedProducts">OLDERVERSIONFOUND OR OLDESTVERSIONFOUND</Custom>
<RemoveExistingProducts After="InstallInitialize">OLDERVERSIONFOUND OR OLDESTVERSIONFOUND</RemoveExistingProducts>
When I run this installer over older version 4.2 in UI mode, upgrade works fine. But when I run it in silent mode with /q, it runs in maintenance mode and try to uninstall itself.
This is the parts of log:
MSI (s) (EC:00) [10:49:44:999]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
MSI (s) (EC:00) [10:49:44:999]: Doing action: INSTALL
Action start 10:49:44: INSTALL.
MSI (s) (EC:00) [10:49:44:999]: Running ExecuteSequence
MSI (s) (EC:00) [10:49:45:000]: Doing action: FindRelatedProducts
Action start 10:49:45: FindRelatedProducts.
MSI (s) (EC:00) [10:49:45:000]: PROPERTY CHANGE: Adding OLDESTVERSIONFOUND property. Its value is '{16DF8961-26DE-4A05-B759-102976C5EA22}'.
MSI (s) (EC:00) [10:49:45:000]: PROPERTY CHANGE: Adding MIGRATE property. Its value is '{16DF8961-26DE-4A05-B759-102976C5EA22}'.
MSI (s) (EC:00) [10:49:45:001]: Doing action: SetReInstallModeProperty
Action ended 10:49:45: FindRelatedProducts. Return value 1.
Action start 10:49:45: SetReInstallModeProperty.
MSI (s) (EC:00) [10:49:45:001]: Doing action: SetReInstallProperty
Action ended 10:49:45: SetReInstallModeProperty. Return value 1.
MSI (s) (EC:00) [10:49:45:001]: PROPERTY CHANGE: Adding REINSTALL property. Its value is 'all'.
...
MSI (s) (EC:00) [10:49:47:605]: Doing action: MigrateFeatureStates
Action ended 10:49:47: ReadNCPExtensions. Return value 1.
MSI (s) (EC:00) [10:49:47:605]: Migrating feature settings from product(s) '{16DF8961-26DE-4A05-B759-102976C5EA22}'
Action start 10:49:47: MigrateFeatureStates.
MSI (s) (EC:00) [10:49:47:606]: Doing action: InstallValidate
Action ended 10:49:47: MigrateFeatureStates. Return value 1.
Action start 10:49:47: InstallValidate.
MSI (s) (EC:00) [10:49:47:606]: PROPERTY CHANGE: Deleting MsiRestartManagerSessionKey property. Its current value is '0c59f7d17b575b409c4f5593caddd7f9'.
MSI (s) (EC:00) [10:49:47:606]: Feature: MainFeature; Installed: Absent; Request: Null; Action: Null
MSI (s) (EC:00) [10:49:47:606]: Component: C.Name1.dll; Installed: Absent; Request: Null; Action: Null
MSI (s) (EC:00) [10:49:47:606]: Component: C.Name2.dll; Installed: Absent; Request: Null; Action: Null
...
MSI (s) (EC:00) [10:49:47:621]: PROPERTY CHANGE: Adding REMOVE property. Its value is 'ALL'.
MSI (s) (EC:00) [10:49:47:622]: Doing action: SetARPINSTALLLOCATION
Action ended 10:49:47: InstallValidate. Return value 1.
MSI (s) (EC:00) [10:49:47:622]: PROPERTY CHANGE: Adding ARPINSTALLLOCATION property. Its value is 'C:\Program Files (x86)\SmartDrive Systems Inc\SmartDrive Data Forwarding Gateway\'.
Action start 10:49:47: SetARPINSTALLLOCATION.
MSI (s) (EC:00) [10:49:47:622]: Doing action: InstallInitialize
Action ended 10:49:47: SetARPINSTALLLOCATION. Return value 1.
MSI (s) (EC:00) [10:49:47:622]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (EC:00) [10:49:47:622]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (EC:00) [10:49:47:622]: BeginTransaction: Locking Server
MSI (s) (EC:00) [10:49:47:623]: SRSetRestorePoint skipped for this transaction.
MSI (s) (EC:00) [10:49:47:623]: Server not locked: locking for product {D097B768-E833-4511-A1F6-E51BD1A02258}
Action start 10:49:47: InstallInitialize.
MSI (s) (EC:00) [10:49:47:936]: Doing action: RemoveExistingProducts
Action ended 10:49:47: InstallInitialize. Return value 1.
MSI (s) (EC:00) [10:49:47:937]: Skipping RemoveExistingProducts action: current configuration is maintenance mode or an uninstall
Action start 10:49:47: RemoveExistingProducts.
MSI (s) (EC:00) [10:49:47:937]: Doing action: ProcessComponents
Action ended 10:49:47: RemoveExistingProducts. Return value 0.
Action start 10:49:47: ProcessComponents.
MSI (s) (EC:00) [10:49:47:938]: Doing action: UnpublishFeatures
Action ended 10:49:47: ProcessComponents. Return value 1.
Action start 10:49:47: UnpublishFeatures.
MSI (s) (EC:00) [10:49:47:938]: Doing action: StopServices
Action ended 10:49:47: UnpublishFeatures. Return value 1.
Action start 10:49:47: StopServices.
MSI (s) (EC:00) [10:49:47:939]: Doing action: DeleteServices
Action ended 10:49:47: StopServices. Return value 1.
Action start 10:49:47: DeleteServices.
The main feature names in both installers is different. When I change feature name in new version to the same as in 4.2, upgrade works in silent mode, but stop working in UI mode with similar log: after MigrateFeatureState all components is in state Installed: Absent; Request: Null; Action: Null and REMOVE set to ALL.
Any ideas why it behave so strange?
I set main feature name the same as in old installer and removed my custom action SetReinstallProperty and upgrade works in both modes now.

Why does Bootstrapper hang when detecting FilesInUse?

I am using WiX Toolset v3.10.0.1726
I have a .msi-file that gets bundled within a bootstrapper.
MSI Defintion:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
Name="$(var.ProductName)"
Language="!(loc.ProductLanguage)"
Version="!(bind.fileVersion.FILE)"
Manufacturer="$(var.Manufacturer)"
UpgradeCode="$(var.UpgradeCode)">
<Package InstallerVersion="200"
Compressed="yes"
InstallScope="perMachine"
Platform="x86"
InstallPrivileges="elevated"
ReadOnly="yes" />
<MediaTemplate EmbedCab="yes" />
<?include Feature.wxi?>
<MajorUpgrade AllowDowngrades="no"
AllowSameVersionUpgrades="yes"
DowngradeErrorMessage="!(loc.DowngradeErrorMessage)" />
<UI Id="UserInterface">
<Property Id="WIXUI_INSTALLDIR"
Value="TARGETDIR" />
<Property Id="WixUI_Mode"
Value="Custom" />
<TextStyle Id="WixUI_Font_Normal"
FaceName="Tahoma"
Size="8" />
<TextStyle Id="WixUI_Font_Bigger"
FaceName="Tahoma"
Size="9"
Bold="yes" />
<TextStyle Id="WixUI_Font_Title"
FaceName="Tahoma"
Size="9"
Bold="yes" />
<Property Id="DefaultUIFont"
Value="WixUI_Font_Normal" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="FatalError" />
<DialogRef Id="UserExit" />
<Publish Dialog="ProgressDlg"
Control="Next"
Event="EndDialog"
Value="Return"
Order="2" />
</UI>
</Product>
</Wix>
If executing the .msi-file directly, FilesInUse dialog shows up correctly if the application is running. Everything is working fine.
Now I've integrated the .msi-file in a bootstrapper:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Name="!(bind.packageName.Setup)"
Version="!(bind.packageVersion.Setup)"
Manufacturer="!(bind.packageManufacturer.Setup)"
UpgradeCode="$(var.UpgradeCode)"
DisableModify="yes">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
<bal:WixStandardBootstrapperApplication LicenseUrl=""
SuppressOptionsUI="no"
ShowVersion="yes"
SuppressRepair="yes"
LogoFile="Resources/dpd.png" />
</BootstrapperApplicationRef>
<Chain DisableSystemRestore="yes">
<MsiPackage Id="Setup"
Compressed="yes"
Name="$(var.ProductName)"
SourceFile="setup.msi"
DisplayInternalUI="yes"
Vital="yes" />
</Chain>
</Bundle>
</Wix>
I need DisplayInternalUI as I am having some extra dialogs in the .msi-file which are mandatory for the setup.
If the application is not running in an upgrade scenario everything is working fine, whereas a running application while upgrading brings the bootstrapper and the .msi-file into a not responding state.
The output of the log:
[2A34:28F0][2015-07-21T16:38:40]i001: Burn v3.10.0.1726, Windows v6.1
(Build 7601: Service Pack 1), path: W:\work\SETUP.exe ...
[2A34:28F0][2015-07-21T16:38:40]i009: Command Line: '-burn.unelevated
BurnPipe.{571E9E94-4908-45EE-A6AC-05F923FAFDCF}
{F7B2FBA0-BAEB-42C7-B1D5-B8704F153049} 10904 /log log.txt'
... [2A34:28F0][2015-07-21T16:38:41]i300: Apply begin
... [2A98:054C][2015-07-21T16:38:42]i301: Applying execute
package: Setup, action: Install, path: C:\ProgramData\Package
Cache{99D06386-9447-4D7B-8307-E53C12BB09B5}v2.0.19.28124\FOOAPPLICATION,
arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"
INSTALLFOLDER="C:\FOOFOLDER" TRANSFORMS=":1031"'
And the output of the msi-log (at least the last relevant lines):
...
MSI (s) (24:D4) [16:38:42:826]: Doing action: InstallValidate
MSI (s) (24:D4) [16:38:42:827]: PROPERTY CHANGE: Deleting
MsiRestartManagerSessionKey property. Its current value is
'053651647df31e46971d3237c9eb6a06'. MSI (s) (24:D4)
[16:38:42:827]: Transforming table Dialog. ... MSI (s)
(24:D4) [16:38:42:828]: Note: 1: 2205 2: 3: BindImage MSI (s)
(24:D4) [16:38:42:828]: Note: 1: 2205 2: 3: ProgId MSI (s)
(24:D4) [16:38:42:828]: Note: 1: 2205 2: 3: PublishComponent
MSI (s) (24:D4) [16:38:42:828]: Note: 1: 2205 2: 3: SelfReg MSI
(s) (24:D4) [16:38:42:828]: Note: 1: 2205 2: 3: Extension MSI
(s) (24:D4) [16:38:42:828]: Note: 1: 2205 2: 3: Font MSI (s)
(24:D4) [16:38:42:828]: Note: 1: 2205 2: 3: Class MSI (s)
(24:D4) [16:38:42:828]: Note: 1: 2205 2: 3: TypeLib MSI (s)
(24:D4) [16:38:42:829]: Note: 1: 2205 2: 3: _RemoveFilePath MSI
(s) (24:D4) [16:38:42:993]: Note: 1: 1402 2: HKEY_CLASSES_ROOT.NET 3:
2 MSI (s) (24:D4) [16:38:43:127]: Note: 1: 1402 2:
HKEY_CLASSES_ROOT.NET 3: 2 MSI (s) (24:D4) [16:38:43:221]:
PROPERTY CHANGE: Modifying CostingComplete property. Its current value
is '0'. Its new value: '1'. MSI (s) (24:D4) [16:38:43:222]:
Note: 1: 2205 2: 3: BindImage MSI (s) (24:D4) [16:38:43:222]:
Note: 1: 2205 2: 3: ProgId MSI (s) (24:D4) [16:38:43:222]:
Note: 1: 2205 2: 3: PublishComponent MSI (s) (24:D4)
[16:38:43:222]: Note: 1: 2205 2: 3: SelfReg MSI (s) (24:D4)
[16:38:43:222]: Note: 1: 2205 2: 3: Extension MSI (s) (24:D4)
[16:38:43:222]: Note: 1: 2205 2: 3: Font MSI (s) (24:D4)
[16:38:43:222]: Note: 1: 2205 2: 3: Class MSI (s) (24:D4)
[16:38:43:222]: Note: 1: 2205 2: 3: TypeLib MSI (s) (24:D4)
[16:38:43:222]: Note: 1: 2727 2: MSI (s) (24:D4) [16:38:43:314]:
Transforming table Error. MSI (s) (24:D4) [16:38:43:314]:
Transforming table Error. MSI (c) (98:4C) [16:38:43:326]:
RESTART MANAGER: Session opened.
So, why does the msi in the bootstrapped scenario hang (and causes the bootstrapper to hang either), and how do I fix this?
You skip the creation of a system restore point due to the DisableSystemRestore value on your chain but you did not do a similar thing in your msi. You can skip the creation of restore points in your msi by setting the MSIFASTINSTALL property. Works with MSI 5.0 as described here: http://msdn.microsoft.com/en-us/library/dd408005(VS.85).aspx
<!-- Add me to your MSI definition -->
<Property Id="MSIFASTINSTALL" Value="1" />

Windows Phone SDK 8.0 XAML Designer not loading

Before negative reporting, first figure out how this question is different from other designer loading problem. Look at their exceptions and mine.
Designer was working fine, I don't know what happened suddenly.
NOTE: I've tried uninstalling and re-installing. I've done with all VS12 update. Still facing designer issue.
System.NullReferenceException
Object reference not set to an instance of an object.
at Microsoft.Expression.DesignModel.Metadata.PlatformMetadataBase.GetPlatformAssemblies()
at Microsoft.Expression.SilverlightPlatform.SilverlightPlatformMetadata..ctor(IPlatformRuntimeAssemblyResolver platformRuntimeAssemblyResolver, IPlatformReferenceAssemblyResolver platformReferenceAssemblyResolver)
at Microsoft.Expression.SilverlightPlatform.SilverlightPlatform..ctor(IPlatformRuntimeAssemblyResolver platformRuntimeAssemblyResolver, IPlatformReferenceAssemblyResolver platformReferenceAssemblyResolver)
at Microsoft.Expression.WindowsPhonePlatform.MobilePlatform..ctor(IPlatformRuntimeAssemblyResolver platformRuntimeAssemblyResolver, IPlatformReferenceAssemblyResolver platformReferenceAssemblyResolver)
at Microsoft.Expression.WindowsPhonePlatform.WindowsPhonePlatformCreator.CreatePlatformInternal(IPlatformReferenceAssemblyResolver referenceAssemblyResolver)
at Microsoft.Expression.Platform.PlatformCreatorBase.CreatePlatform(IPlatformReferenceAssemblyResolver referenceAssemblyResolver)
at Microsoft.Expression.DesignSurface.Project.ProjectContextBase.Initialize()
at Microsoft.Expression.DesignSurface.Project.XamlProjectContext.Initialize()
at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)
at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)
at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func)
at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e()
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.NullReferenceException
Object reference not set to an instance of an object.
Server stack trace:
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func)
at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.NullReferenceException
Object reference not set to an instance of an object.
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func)
at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
And I've tried uninstalling and re-installing all Silverlight SDKs. So please, some useful answers needed!
Try the suggestion here (in the same order)
1: Uninstall WP8 SDK
2: Uninstall all instances of Silverlight SDK and
Rutime.
3: Re-install WP8 SDK.
I used it in the following workflow and it fixed my designer problem:
1: Uninstalled all WP7 SDK:s
2: Restarted computer (The designer still
failed after this step)
3: Uninstalled WP8 SDK (Maybe it is enough to
choose repair here, but I selected to uninstall the SDK)
4: Restarted
computer
5: Installed the WP8 SDK
Ok the problem is solved. I just re-installed my whole Operating System and pikatch!