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!

LaytonTechAD
Posts: 4
Joined: Wed Apr 19, 2017 9:23 am

New File is not Getting Update after Patch is created

hi

I have created a Patch using Advanced Installer in this Patch as you know for the patch we need old version of msi and also new version of msi in my new version i am having a .sql which i have added newly but it is not getting added after patch but it is working fine with the installation

can you Please help me


Thanks
madhav
LaytonTechAD
Posts: 4
Joined: Wed Apr 19, 2017 9:23 am

Re: New File is not Getting Update after Patch is created

Place Find the Build log as attachment

i have added a new file that is Patch_Updates.sql

But is is not shown
Attachments
PatchBuildLog.txt
(108.45 KiB) Downloaded 244 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: New File is not Getting Update after Patch is created

Hello and welcome to Advanced Installer forums Madhav,
but it is working fine with the installation
I'm not sure I fully understand your scenario. Do you mean to say that the sql script is executed properly during the installation of the upgraded version but the script is not executed during the patch installation?

Please keep in mind that in order to run a custom action or a sql script during installation you need to add the PATCH string in the Condition field. For details, please see the How to create a patch that runs a custom action article.

In order to have a better view about this, can you please send us the .AIP(project file) of target, .AIP(project file) of upgraded and the .AIP(project file) of patch project to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

When a patch is installed, the base MSI will run in Repair mode. That means you need to select the During maintenance (repair or modify) option for the sql script execution. Use the below image for your reference:
Script Patch.png
Script Patch.png (29.93 KiB) Viewed 3854 times
Also, I observed several WARNINGs in the build log with the file sequence changed. Usually, these warnings are displayed when you removed some files or if you are using the Synchronize Folder feature. When creating patches you should make sure they don't break the patch rules.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
LaytonTechAD
Posts: 4
Joined: Wed Apr 19, 2017 9:23 am

Re: New File is not Getting Update after Patch is created

HI Dan

Thanks for the Replay but i am not talking about running the sql script but i have added a sql script in one of the folders which is not getting installer in the client system
i.e i have a msi old version Without a sql file and another msi new version with sql file when i create a Patch using this i am not getting the sql file when i install the patch
please find the msi files in the link below for download
https://wetransfer.com/downloads/67ef17 ... 452/ef4a7c
i hope this will help you

Thanks
Madhav
LaytonTechAD
Posts: 4
Joined: Wed Apr 19, 2017 9:23 am

Re: New File is not Getting Update after Patch is created

Dan wrote:Hello and welcome to Advanced Installer forums Madhav,
but it is working fine with the installation
I'm not sure I fully understand your scenario. Do you mean to say that the sql script is executed properly during the installation of the upgraded version but the script is not executed during the patch installation?

Please keep in mind that in order to run a custom action or a sql script during installation you need to add the PATCH string in the Condition field. For details, please see the How to create a patch that runs a custom action article.

In order to have a better view about this, can you please send us the .AIP(project file) of target, .AIP(project file) of upgraded and the .AIP(project file) of patch project to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

When a patch is installed, the base MSI will run in Repair mode. That means you need to select the During maintenance (repair or modify) option for the sql script execution. Use the below image for your reference:
Script Patch.png
Also, I observed several WARNINGs in the build log with the file sequence changed. Usually, these warnings are displayed when you removed some files or if you are using the Synchronize Folder feature. When creating patches you should make sure they don't break the patch rules.

Best regards,
Dan

Hi Dan,

can you Please help me with the issue
did you find any thing

Thanks
Madhav
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: New File is not Getting Update after Patch is created

Hi Madhav,
i have added a sql script in one of the folders which is not getting installer in the client system
The encountered behaviour is caused because you are breaking the patch rules. You cannot manually remove a file (i.e. go to "Files and Folders" page and delete a file from your setup) from your upgraded version of your product when creating patches.

However, you shouldn't encounter any problem when adding a file removal operation in the upgraded version of your project. This workaround should allow you to create a patch which will remove a file installed by the target version of your setup. Please take a look on our "Remove some files using patch" thread which debates this workaround.

You can also take a look on the Removing files during minor upgrades thread which may be useful to you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”