We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

deval
Posts: 4
Joined: Thu Jan 07, 2016 5:20 pm

Optional automatic updates

Hello,

I've got the automatic updater working pretty well but now the powers that be are requesting the ability to disable the automatic updater during the install process. So I followed the instructions here http://www.advancedinstaller.com/user-g ... ature.html

I now have a parameter AUTOUPDATE that is set to ON or OFF from a UI component. Easy enough.

To finish things I went and found the updater component under organization and set a condition on it. After building this I get an error that pops up during the install.
adv_error.png
adv_error.png (7.63 KiB) Viewed 2842 times
Clearly I'm missing something here but I can't see it. Attached is the MSI installer log as well.

The piece that seems to be where it goes sour is here:

Action start 9:03:15: AI_XmlUninstall.
MSI (s) (64:B4) [09:03:15:889]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI5F5F.tmp, Entrypoint: OnXmlUninstall
MSI (s) (64!30) [09:03:49:030]: PROPERTY CHANGE: Adding AI_XmlRemove property. Its value is 'ProductNameImagine LearningProductCode{DF157B06-0567-4AB5-9556-5D51CA11ABDF}REMOVEFeatureAI_TEST_XML_FILE_DIRECTORYAI_TEST_XML_FILE_NAMEAI_CA_MODULE_IDmconfigmconfig1030defaultmconfigdefault13014<configuration>
</configuration>oidEntry_1oidMapoidEntry1114map_3pubTokenMappingmap1714member_700membersmember170114nameassemblyname1014UnityEnginesection_50sectionGroup_2section11014httpRuntimesystem.webhttpRuntime11114oidEntryoidMapoidEntry1014member_4433membersmember1443414param_860member_1287param1114oidEntry_2oidMap_1oidEntry1014forms_1authentication_1forms1014member_4432membersmember1443314param_861member_1287param1214oidEntry_3oidMap_1oidEntry1114map_1pubTokenMappingmap1314httpRuntime_1system.web_3httpRuntime11214mappubTokenMappingmap1114add_126assemblies_1add1814assemblymembersassembly1014map_2pubTokenMappingmap1514member_9
MSI (s) (64!30) [09:03:49:030]: Doing action: AI_XmlRemove
Action 9:03:49: AI_XmlRemove. Executing XML file configurations
Action start 9:03:49: AI_XmlRemove.
AI_XmlRemove: Configuring XML file: "Executing XML file configurations"
Action ended 9:03:49: AI_XmlRemove. Return value 1.
MSI (s) (64!30) [09:03:49:046]: PROPERTY CHANGE: Deleting AI_XmlRemove property. Its current value is 'ProductNameImagine LearningProductCode{DF157B06-0567-4AB5-9556-5D51CA11ABDF}REMOVEFeatureAI_TEST_XML_FILE_DIRECTORYAI_TEST_XML_FILE_NAMEAI_CA_MODULE_IDmconfigmconfig1030defaultmconfigdefault13014<configuration>
</configuration>oidEntry_1oidMapoidEntry1114map_3pubTokenMappingmap1714member_700membersmember170114nameassemblyname1014UnityEnginesection_50sectionGroup_2section11014httpRuntimesystem.webhttpRuntime11114oidEntryoidMapoidEntry1014member_4433membersmember1443414param_860member_1287param1114oidEntry_2oidMap_1oidEntry1014forms_1authentication_1forms1014member_4432membersmember1443314param_861member_1287param1214oidEntry_3oidMap_1oidEntry1114map_1pubTokenMappingmap1314httpRuntime_1system.web_3httpRuntime11214mappubTokenMappingmap1114add_126assemblies_1add1814assemblymembersassembly1014map_2pubTokenMappingmap1514
Action ended 9:03:49: AI_XmlUninstall. Return value 1.


Any help or pointers would be greatly appreciated. Maybe I'm going about this all wrong.
Attachments
adv_log.txt
(173.05 KiB) Downloaded 258 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Optional automatic updates

Hello,

I think this happens because you forgot to condition the installation of the scheduled task you configured for the updater. Just go to "Updater" page -> "Updater Execution" section and click on Configure Task hyperlink. Then in the "Install Condition" field add a condition like this:

Code: Select all

$ILUpdater.exe = 3
where ILUpdater.exe is the component of your updater file.

Let us know if this helped, otherwise please send us the .AIP (project file) and a full verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
deval
Posts: 4
Joined: Thu Jan 07, 2016 5:20 pm

Re: Optional automatic updates

Yep that was it. Not sure how I missed that field, thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Optional automatic updates

You're always welcome.

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

Return to “Building Installers”