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!

psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: Patch authoring

Hi Bogdan,

Thanks for the reply, i got the dll working but the scripts are still running when not required.

Attached is the latest aip and the patch log i am getting a duplicate key error because 0.9.11.0.sql is running. I will changed to Not Installed now (it takes about an hour to build).

Please advise and let me know yours thoughts

Thanks
Rudy

PS is there any way to output property values to the log file at specific point in the install?
Attachments
iAssist 1.0.2.0.aip
(244.96 KiB) Downloaded 622 times
Patch.zip
Log file
(129.19 KiB) Downloaded 576 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Patch authoring

Hi Rudy,

I see that you set the property DISPLAY_VERSION using a search, not from your custom action. However the search does not set a value in the property because the
property OLDPRPODUCTS is not set at the moment the search is executed.

If you set the property OLDPRODUCTS from your custom action, please move it under Begin standard action, so it is executed before "AppSearch" standard action, i.e. when the search is executed.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: Patch authoring

Thanks will try it now

Thanks
Rudy
psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: Patch authoring

Hi Bogdan,

It didnt work unfortunately same error as before, the script is running when it should not be, here is the log and aip.

I would also like to be able to output a property via a custom action to the log, or to file.

Thanks for your help
Rudy
Attachments
patch.zip
(129.13 KiB) Downloaded 668 times
iAssist 1.0.2.0.aip
(244.96 KiB) Downloaded 881 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Patch authoring

Hi Rudy,

It seems the search is still not finding anything in the registry, the log mentions it, but it does not mention the property DISPLAY_VERSION as being set.
This can happen if the search finds nothing.
I would also like to be able to output a property via a custom action to the log, or to file.
Usually, when a property changes its value, from a custom action or in some other way, the operation is automatically logged. So, if the property DISPLAY_VERSION were to be set from your
custom action, an entrance in the log for this action should be found.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: Patch authoring

Hi Bogdan,

I have attched my log and the DISPLAY_VERSION is outputed, but the scripts are still running when they should not be. Attached is my log and aip can you take a look please

Thanks
Rudy
Attachments
iAssist 1.0.2.0.aip
(244.96 KiB) Downloaded 549 times
patch.zip
(135.86 KiB) Downloaded 478 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch authoring

Hello Rudy,

I have looked into your aip and log file and it seems you have the 0.9.10.0 version installed which is correctly placed inside the DISPLAY_VERSION public property. This being the case all the scripts should run when applying the 1.0.2 patch as you wrote yourself, because their versions are higher than the installed 0.9.10.0 one.

Please give us more details and perhaps exemplify the problem.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psaunders
Posts: 30
Joined: Fri Oct 29, 2010 3:08 pm

Re: Patch authoring

Hi,

This is the situation.

I extracted the patch.msp file which i have attached as a zip file. I can see the script files which are in iAssist_xToiAssist script files and have noticed that the ones, where x is 4, 5, 6, has 4 scripts in it which should not be there. Eg iAssist_6ToiAssist has 4 AI_SQLScript files where iAssist_6 is version 1.0.2.0 and i expect only AI_SQLScript.1.0.3x and AI_SQLScript.1.0.3x.PatchOnly scripts to be part of that patch (if that is how the patch is organised)

Hope this helps
Rudy
Attachments
patch.zip
(131.85 KiB) Downloaded 463 times
iAssist Update 1.0.3.0.zip
(171.09 KiB) Downloaded 447 times
iAssist 1.0.3.0.aip
(245.8 KiB) Downloaded 477 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch authoring

Hi Rudy,

Unfortunately there is no way to prevent your SQL Scripts from being included in certain version patches when you are building a multi-target patch. We decided that your detection criteria for running SQL Scripts will depend on the DISPLAY_VERSION public property value which is resolved to the version installed on the user's machine. There is no way to know this at the patch's build time so that the diff will ensure your SQL Script files don't end up in certain patches versions included in the MSP.
This being the premise case you can still test the multi-target patch and see if its behavior is the intended one.

If you need your new SQL Script files to be included in each patch upgrade we recommend you use individual patches from one version to the next.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”