Patch not patching - Advanced Installer Community

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!

Hooch
Posts: 4
Joined: Wed Nov 24, 2010 8:16 am

Patch not patching

Hello.
I have problem.

I had two situations. One was working another was not working.

So this is what I did.
  1. I made my application in VisualStudio and set is't assemby version to 1.0.0.0
  2. I made msi package ("app_installer.msi") version 1.0.0
  3. Application installs with no problem.
  4. I changed my application's ssemby version to 1.1.0.0 in VisualStudio.
  5. I made msi package ("app_installer_v1.msi") version 1.1.0 (I clicked YES on this popup about code)
  6. Application ("app_installer_v1.msi") installs with no problem.
  7. I make new patch project.
  8. Upgraded -> "app_installer_v1.msi"
  9. Target -> "app_installer.msi"
  10. Compile my patch to "patchv1".
  11. I install old verson of app (1.0.0)("app_installer.msi")
  12. When I try to apply patch:
  13. It says "installing <app name>" It shoud be "Installing <Patch name>"
  14. It asks me where I want to install patch. It should ask for insstallaton dir.
  15. It installs with no error.
  16. My application file is still the same as it was. Nothing is changed after patch.

Notes:
When dialog appears about that code I'm pressing yes because It worked that way when I was doing tests the day before on different app.
When I press NO on this dialog my patch is working
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch not patching

Hello and welcome to Advanced Installer Forums,
(I clicked YES on this popup about code)
Please note that changing the product code also prevents any patch creation.
Before working on your project please follow our tutorial for creating a patch and also keep in mind the patch rules when creating your projects.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hooch
Posts: 4
Joined: Wed Nov 24, 2010 8:16 am

Re: Patch not patching

Ok.
Thank you very much.
I hove one more problem.

How can I release version 1.1.0 as standalone installer that will install over version 1.0.0?
How can I include my patch into 1.0.0 installer to be installed with 1.0.0?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch not patching

Hello,
How can I release version 1.1.0 as standalone installer that will install over version 1.0.0?
This is default behavior of an update. Please follow our user guide article on the basics of your first update project.
How can I include my patch into 1.0.0 installer to be installed with 1.0.0?
You can run the MSP with a custom action that executes at the end of the main installation. This is not recommended though. A recommended approach would be to give out the 1.1.0 package version directly.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hooch
Posts: 4
Joined: Wed Nov 24, 2010 8:16 am

Re: Patch not patching

[quote="mihai.petcu"] A recommended approach would be to give out the 1.1.0 package version directly.

Ok.
But if user has version 1.0.0 installed he will get error when installing 1.1.0 (full install).
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch not patching

Hello,

In your previous post you said that you want version 1.0.0 to automatically include the patch, so I assumed that the user would not have any version installed on the machine and you want him automatically to install 1.1.0.
Isn't this what you wanted to accomplish?

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hooch
Posts: 4
Joined: Wed Nov 24, 2010 8:16 am

Re: Patch not patching

Ok.

I mean this scenario.

User installs version 1.0.0
User has no connection to internet so he can't auto update using patch.
User gets from other computer 1.1.0 Full install package.
When user tries to install 1.1.0 full he gets error.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch not patching

Hello,
User has no connection to internet so he can't auto update using patch.
Please note that the user doesn't necessarily need an internet connection to apply a patch to an existing installation. A patch is a MSP file and has the same UI behavior as a MSI. You can copy the MSP from one machine to another and launch it just like you would with a MSI file.
When user tries to install 1.1.0 full he gets error.
This could happen only if the update version 1.1.0 has the same product code as 1.0.0. Meaning, after changing the version in the "Product Details" page and prompted to change the product code, you clicked the "No" button. When creating a patch you must click "No" but when creating a major update you have to click "Yes".

Please note that you shouldn't distribute the 1.1.0 version you used to create a patch. You must change its Product Code first to allow a major upgrade.

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

Return to “Common Problems”