The issue with canceling installation. - Advanced Installer Community
zebr
Posts: 2
Joined: Wed Jan 22, 2014 1:16 pm

The issue with canceling installation.

Hi everybody!

I am developing an installation package and I have an issues with canceling installation.

After I click on the "Install" and the installation process begins, I want to interrupt it.
I click on the "Cancel" and "Yes".

As a result, I get 3 options, depends on installation stage:
1. All is fine and rollback starts.

Code: Select all

Action 15:21:41: CancelDlg. Dialog created
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 15048 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 15148 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 12508 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 4632 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 14424 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 13732 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 10548 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 9000 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 5124 could not be cancelled. Error: 1168
MSI (s) (E0:EC) [15:21:42:866]: I/O on thread 932 could not be cancelled. Error: 1168
MSI (s) (E0:28) [15:21:42:867]: Machine policy value 'DisableRollback' is 0
MSI (s) (E0:28) [15:21:42:867]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (E0:28) [15:21:42:869]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (E0:28) [15:21:42:869]: No System Restore sequence number for this installation.
MSI (s) (E0:28) [15:21:42:870]: Unlocking Server
Action ended 15:21:42: INSTALL. Return value 2.
or

Code: Select all

Action 15:24:43: CancelDlg. Dialog created
MSI (s) (E0:88) [15:24:44:423]: I/O on thread 15048 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:423]: I/O on thread 15148 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:423]: I/O on thread 12508 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:423]: I/O on thread 13732 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:423]: I/O on thread 9196 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:423]: I/O on thread 10548 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:424]: I/O on thread 9912 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:424]: I/O on thread 4628 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:424]: I/O on thread 14132 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:424]: I/O on thread 5096 could not be cancelled. Error: 1168
MSI (s) (E0:88) [15:24:44:424]: I/O on thread 9292 could not be cancelled. Error: 1168
Action ended 15:24:44: InstallExecute. Return value 2.
MSI (s) (E0:14) [15:24:44:437]: User policy value 'DisableRollback' is 0
MSI (s) (E0:14) [15:24:44:437]: Machine policy value 'DisableRollback' is 0
MSI (s) (E0:14) [15:24:44:465]: Executing op: Header(Signature=1397708873,Version=500,Timestamp=1144093458,LangId=1033,Platform=589824,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=0)
MSI (s) (E0:14) [15:24:44:465]: Executing op: DialogInfo(Type=0,Argument=1033)
MSI (s) (E0:14) [15:24:44:466]: Executing op: DialogInfo(Type=1,Argument=ASF Web Services)
MSI (s) (E0:14) [15:24:44:466]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back action:,,CleanupAction=RollbackCleanup,CleanupDescription=Removing backup files,CleanupTemplate=File: [1])
MSI (s) (E0:14) [15:24:44:466]: Executing op: RegisterBackupFile(File=C:\Config.Msi\8eff8402.rbf)
Action 15:24:44: Rollback. Rolling back action:
2. Installation is not interrupted.

Code: Select all

Action 15:07:42: AI_XmlConfig. Executing XML file configurations
MSI (s) (CC:A0) [15:07:42:999]: Executing op: CustomActionSchedule(Action=AI_XmlConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (CC:04) [15:07:43:007]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI1ACC.tmp, Entrypoint: OnXmlConfig
AI_XmlConfig: Configuring XML file: "[...path...]standalone.xml"
[...cut some xml-files...]
Action 15:07:45: CancelDlg. Dialog created
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 2200 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 3100 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 436 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 4852 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 6584 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 3196 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 6560 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 6344 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 5320 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 6404 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 3812 could not be cancelled. Error: 1168
MSI (s) (CC:50) [15:07:47:027]: I/O on thread 6916 could not be cancelled. Error: 1168
[...cut some xml-files...]
AI_XmlConfig: Configuring XML file: "[...path...]standalone.xml"
MSI (s) (CC:A0) [15:07:50:014]: Executing op: ActionStart(Name=WriteEnvironmentStrings,Description=Updating environment strings,Template=Name: [1], Value: [2], Action [3])
Action 15:07:50: WriteEnvironmentStrings. Updating environment strings
3. Installation aborted by fatal error.

Code: Select all

Action start 14:57:24: AI_XmlUninstall.
Action 14:57:25: CancelDlg. Dialog created
MSI (s) (CC:D4) [14:57:24:620]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIAAE1.tmp, Entrypoint: OnXmlUninstall
MSI (s) (CC!A8) [14:57:26:017]: PROPERTY CHANGE: Adding AI_XmlRemove property. Its value is 'ProductName[...cut...]ProductCode{[...cut...]}REMOVEf_download,f_setupAI_TEST_XML_FILE_DIRECTORYAI_TEST_XML_FILE_NAMEAI_XML_MODULE_IDConfigConfig030drivers_8datasources_8drivers014datasources_8subsystem_82datasources014driversdatasourcesdrivers014inetaddress_10interface_10inet-address014interface_10interfaces_5interface114invmconnector_2connectors_14in-vm-connector314connectors_14hornetqserver_3connectors414jmsdestinations_8hornetqserver_8jms-destinations014hornetqserver_8subsystem_88hornetq-server014module_1dependenciesmodule012dependenciesmoduledependencies112modulemodule030nettyacceptor_2acceptors_1netty-acceptor114acceptors_1hornetqserver_2acceptors514param_33nettyacceptor_22param014nettyacceptor_22acceptors_11netty-acceptor114paramnettyacceptorparam014acceptors_3hornetqserver_5acceptors514hornetqserver_5subsystem_22hornetq-server
MSI (s) (CC!A8) [14:57:26:018]: Doing action: AI_XmlRemove
Action 14:57:26: AI_XmlRemove. Executing XML file configurations
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 2200 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 3100 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 436 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 5288 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 6880 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 3568 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 5348 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 6844 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 6708 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 4052 could not be cancelled. Error: 1168
MSI (s) (CC:CC) [14:57:26:440]: I/O on thread 7044 could not be cancelled. Error: 1168
CustomAction AI_XmlUninstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 14:57:26: AI_XmlUninstall. Return value 3.
MSI (s) (CC:E4) [14:57:26:449]: Machine policy value 'DisableRollback' is 0
MSI (s) (CC:E4) [14:57:26:449]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (CC:E4) [14:57:26:450]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (CC:E4) [14:57:26:451]: No System Restore sequence number for this installation.
MSI (s) (CC:E4) [14:57:26:451]: Unlocking Server
Action ended 14:57:26: INSTALL. Return value 3.
Please help me to solve this issue.
Last edited by zebr on Tue Jan 28, 2014 11:18 am, edited 1 time in total.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: The issue with canceling installation.

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate? Also, can you give us more details (maybe attach some screenshots) about when (during installation) the [Cancel] button is pressed and what dialog is displayed after clicking on [Yes] button on "CancelDlg"?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zebr
Posts: 2
Joined: Wed Jan 22, 2014 1:16 pm

Re: The issue with canceling installation.

Thanks for your answer.
Daniel wrote: Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate?
I am sorry I'm afraid I can't do this because it's a commercial project. :(
Daniel wrote: Also, can you give us more details (maybe attach some screenshots) about when (during installation) the [Cancel] button is pressed and what dialog is displayed after clicking on [Yes] button on "CancelDlg"?
pic1.png
pic1.png (16.58 KiB) Viewed 7477 times
pic2.png
pic2.png (12.46 KiB) Viewed 7477 times

Code: Select all

MSI (s) (F8:50) [11:26:09:907]: Doing action: AI_XmlUninstall
Action 11:26:09: AI_XmlUninstall. Generating actions to configure XML files
Action start 11:26:09: AI_XmlUninstall.
Action 11:26:11: CancelDlg. Dialog created
MSI (s) (F8:A8) [11:26:09:920]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI8AE1.tmp, Entrypoint: OnXmlUninstall
MSI (s) (F8!B0) [11:26:11:587]: PROPERTY CHANGE: Adding AI_XmlRemove property. Its value is 'ProductName[...cut...]ProductCode{[...cut...]}REMOVEf_download,f_setupAI_TEST_XML_FILE_DIRECTORYAI_TEST_XML_FILE_NAMEAI_XML_MODULE_IDConfigConfig030drivers_8datasources_8drivers014datasources_8subsystem_82datasources014driversdatasourcesdrivers014inetaddress_10interface_10inet-address014interface_10interfaces_5interface114invmconnector_2connectors_14in-vm-connector314connectors_14hornetqserver_3connectors414jmsdestinations_8hornetqserver_8jms-destinations014hornetqserver_8subsystem_88hornetq-server014module_1dependenciesmodule012dependenciesmoduledependencies112modulemodule030nettyacceptor_2acceptors_1netty-acceptor114acceptors_1hornetqserver_2acceptors514param_33nettyacceptor_22param014nettyacceptor_22acceptors_11netty-acceptor114paramnettyacceptorparam014acceptors_3hornetqserver_5acceptors514hornetqserver_5subsystem_22hornetq-server
MSI (s) (F8!B0) [11:26:11:588]: Doing action: AI_XmlRemove
Action 11:26:11: AI_XmlRemove. Executing XML file configurations
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 4292 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 1468 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 6496 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 476 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 6744 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 1872 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 7556 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 2472 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 6012 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 9152 could not be cancelled. Error: 1168
MSI (s) (F8:40) [11:29:34:385]: I/O on thread 1440 could not be cancelled. Error: 1168
CustomAction AI_XmlUninstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 11:29:34: AI_XmlUninstall. Return value 3.
MSI (s) (F8:50) [11:29:34:390]: Machine policy value 'DisableRollback' is 0
MSI (s) (F8:50) [11:29:34:390]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (F8:50) [11:29:34:391]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (F8:50) [11:29:34:392]: No System Restore sequence number for this installation.
MSI (s) (F8:50) [11:29:34:392]: Unlocking Server
Action ended 11:29:34: INSTALL. Return value 3.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: The issue with canceling installation.

Hello,

Please keep in mind that this is the default behavior. When the installation process is canceled during a Windows Installer standard action (e.g. InstallFiles) the installation will be rolled back and you will be prompted with "UserExit" dialog. Also, our XML editor feature is a custom Advanced Installer feature which is handled by Advanced Installer custom actions. So, if you will cancel the installation during the execution of an AI custom action, then the custom action will fail (return value 3), the installation will be rolled back and you will be prompted with "FatalError" dialog.

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

Return to “Common Problems”