Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

New files in patch will not be installed when under condition

Updated: 22 May 2010 | 7 comments
Walter vd Sloot's picture
0 0 Votes
Login to vote

In my WIS 7.3 setup i've installed some files directly in the feature 'Allways_installed' en some files in this feature with a condition for example '&FeatureOne= 3 OR &FeatureTwo = 3 OR &FeatureThree = 3''

And also some files directly in the features 'FeatureOne' etc.



No problem with the setup, but when i make a patch (MSP) with upgradesync and patchcreation, all files including the files i had under condition will be updates, but new files (under condition) will not be installed on the destination computer. New files without condition are installed !

Is this because of missing the feature setting for new files?

Is herefore a solution?



(when i put the new file directly in the feature 'FeatureOne', this file will be installed, but i must do that for 1 file in all the three features, for that reason i had made the condition)

Discussion Filed Under:

Comments

EdT's picture
03
Feb
2009
0 Votes 0
Login to vote

It looks as if your attempt to retrieve the previous feature conditions is not working, and therefore you wil have to determine which features are installed by using a custom action, for example, and then use this in your conditions.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Walter vd Sloot's picture
03
Feb
2009
0 Votes 0
Login to vote

I read in the manual at "Preparing for Software Updates" the section "About patches : you cannot change feature states, leave certain features installed, or perform custom actions based on the version of the installed application."



i don't think i can use a custom action in a MSP to determine whitch features are installed ?

EdT's picture
03
Feb
2009
0 Votes 0
Login to vote

Thinking about it, would it not be better for your patch to install all updated files? I assume you are using full files in your patch rather than file deltas.



Assuming that a user has not installed all features, but applies the patch and only patches the features that he has installed. What happens if the user then runs the install in maintenance mode and adds a feeature? That feature will then be at a different patch level to the other features. By installing the full files for all features in your patch, and making sure they have a higher file version or a newer date/time, then installing a new feature will not downgrade the patch files and your additional feature will then be at the current patch level.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Walter vd Sloot's picture
03
Feb
2009
0 Votes 0
Login to vote

Yes i install full files in the patch.



But when i add a new file in my script, its allways a full file.

The log says: "Patch API could not create a small patch; using whole upgraded file. Including entire file: [path-filename]"



This new file is just for users that have installed that feature so there is no maintenance mode.



i'll hope there comes a solutionn for this soon.



for now i've made a quick and dirty solution:

Under condition there are about 10 files installed. Now i want to add the 11th file but will not be installed because of the Wise-patch do not works with the previous condition. I have now put the new file in an existing Component/Files (one of the ten) and it works.

I know, this is not allowed en WIS generate an error when i start check tables (because of 2x dll in one component) but everything is working with this solution.



Can you tell me why WIS give this error and what goes wrong? (seem to be nothing goes wrong, everything is installed and finished as the way it should be)

EdT's picture
03
Feb
2009
0 Votes 0
Login to vote

Can you clarify which error Wise is generating? I've looked back through the thread but cannot figure it out.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Walter vd Sloot's picture
03
Feb
2009
0 Votes 0
Login to vote

The error when i have two dll's in one Component is:



"Contains 2 executable files. Microsoft's component guidelines allow only one executable, such as an .EXE, .DLL, .OCX, etc., per component.

Component: TextDisplay.dll1254"



The colour of the Component Icon in the Components-tab is now red (see the attachment)



(I have added the Siemens.dll in the Component of the TextDisplay.dll)

EdT's picture
03
Feb
2009
0 Votes 0
Login to vote

Wise reports errors where the project does not conform to Microsoft rules. However, if it works in your situation, and you have tested it carefully against all possible installation configurations, then your solution is good to use.

Bear in mind that the patch generation is actually handled by Microsoft patch DLLs which are included in the Wise product, hence the strict application of MS rules.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.