mjvitale
Posts: 20
Joined: Tue Apr 05, 2005 7:58 pm
Location: Falls Church, VA

patch problems

ERROR: TargetImages.Target string 'version1.1' is invalid; use 1 to 13 alphanumeric characters.

***** Log finishing: 2005-05-13 06:10:10 *****
error.
Exception - Reason: MsiMsp.exe failed to create the patch file.
Build finished because an error was encountered.



Here is what I am doing in trying to create a patch.

1. Create a simple package called version1.aip.
Used all defaults, only added files and built it. Now I have a version1.msi.

2. Create another simple package called version1.1.aip.
Used all defaults, but changed product code from 1.0.0 to 1.1.0. When prompted to generate a new product code I said No. Also added same files as before except one file was newer (therefore I am expecting to actually update 1 file in the patch later!)
Now I have another aip, version1.1.aip.

3. Now I create a patch. Save it as version1.0To1.1patch.aip.
Clicked on the New Upgraded button and pointed to version1.msi.
Clicked on the New Target button and pointed to version1.1.msi.
Attempted the build, and then I got the errors noted above.

Please advise.

Thanks,
Michael Vitale
mjvitale@aol.com
703-772-2450
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

From the quoted error, I suppose "." is not accepted in target names by the Patch Tool.

The solution would be to use only alphanumeric characters, as advised. Like "version11.aip".

Also, I noticed that you are switching the Target and Upgraded versions of the product. Please follow the Patches Authoring Tutorial:

http://www.advancedinstaller.com/user-g ... patch.html

Regards,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mjvitale
Posts: 20
Joined: Tue Apr 05, 2005 7:58 pm
Location: Falls Church, VA

patches continued...

OK, I'll try it without periods in the name, but I do not know what you meant by the following:

Also, I noticed that you are switching the Target and Upgraded versions of the product.

I am confused by the path tutorial. It refers to the original create MSI, which I also read, but Im not following...

I create an MSI, build it, and deploy it.
I then change the product code and say NO to "do you wanna generate another product code?".
Build it again, but I have the same output MSI! So what 2 MSIs am I supposed to be using when going through the patch example?
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Re: patches continued...

Hello,
mjvitale wrote: I create an MSI, build it, and deploy it.
And you also need to backup your MSI file before you continue. A deployed MSI is a released MSI and it must be always available to create patches against.
mjvitale wrote: I then change the product code and say NO to "do you wanna generate another product code?".
Build it again, but I have the same output MSI! So what 2 MSIs am I supposed to be using when going through the patch example?
The first MSI is the one generated by simply running the Simple Project tutorial, and the second one is the one generated after changing the version number.

You are right, this should be clarified.

Best
Mihai.
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”