Showing posts with label Sequencer. Show all posts
Showing posts with label Sequencer. Show all posts

Tuesday, June 20, 2017

App-V Sequencer 5.x cannot sequence apps with filenames "CO_x" (Error 0x8007139F). But it is possible !!

Recently I came across the App-V technical document stating that

"The App-V 5.x Sequencer cannot sequence applications with filenames matching "CO_<x>" where x is any numeral. Error 0x8007139F will be generated."

https://docs.microsoft.com/en-us/microsoft-desktop-optimization-pack/appv-v5/creating-and-managing-app-v-51-virtualized-applications



https://github.com/Microsoft/windows-itpro-docs/blob/master/windows/application-management/app-v/appv-release-notes-for-appv-for-windows.md















So I ran a quick test to confirm on the same.I used App-V 5.1 sequencer and App-V 5.1.86 client for testing.

During monitoring phase, I created a New folder in desktop for convenience.I then created 3 new files with different extensions (CO_123, CO_456.txt, CO_897.dll) and then proceeded stopping the monitoring phase. I was expecting that sequencer will throw an error or fail as mentioned in the Microsoft technical document. To my surprise sequencer completed without any issues. I was able to see the files in Package Files tab in the sequencer package editor.











To confirm, I also published the test package in a standalone machine and saw those files getting reflected.

UPDATE 6/22/2017: One of my friend Roy Essers had a query asking whether this happens when sequenced to PVAD. Since I didn't test this scenario in PVAD, I quickly ran a test by enabling the sequencer with -EnablePVADControl and gave c:\program files\CO as PVAD folder.



















In that folder I then created the below files.













After creating I stopped the monitoring and sequencer didn't show any error even this time. It successfully created the package. Even in client testing it got succeeded.


So to finalize, App-V 5.1 Sequencer can sequence apps with filenames having "CO_<x>" without any issues. This is just a experimental test scenario and if anyone have faced the issue having CO_<x> in their package while sequencing, kindly comment below about the application. I will be happy to validate it further and update this blog post.

Thursday, August 11, 2016

App-V 5.1 sequencer and earlier doesn't work on windows 10 version 1607

When trying to install App-V 5.1 and earlier version of sequencer in windows 10 version 1607, it fails with the below error.




Solution: You would need to download the latest SDK for windows 10 version 1607 which has sequencer along with it. Using this sequencer you can proceed virtualizing apps.


https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit

Tuesday, March 8, 2016

App-V 5.1 sequencer fails to install with fatal error

Lat week I was asked by one of my friend to troubleshoot an issue which he was facing earlier.

Question: When Installing App-V 5.1 sequencer, it fails to install with the below error.

 

Solution: When Installing the sequencer, it places log files in %temp% location. We can analyze the possible reason by looking into it.


When opened the appv_sequencer_xxxxx_0_CoreX64 log file (which is the actual MSI install log), and Ctrl+F search and giving Return value 3 we see that there is a pending restart needed before installing the sequencer. The sequencer msi has a Launch condition to check for any pending restart.

We restarted the machine and again tried to install the App-V 5.1 sequencer setup. this time it got installed successfully.

Tuesday, January 12, 2016

Possible reasons for App-V 5.0 sequencer crash

Recently I came across a question in TechNet about App-V 5.0 Sequencer getting crashed when saving a package and its possible reasons. In this blog I am listing out the possible reasons for sequencer crash and its solutions provided from other App-V techies.


First and foremost it's always  a good start to check in the event log when ever there is an issue. Check the screenshot as where to look for sequencer log entries. Always enable show analytic and debug logs from view menu.





1. rels files:


The App-V 5.0 sequencer fails to sequence if there is any .rels files present in the package.
You can identify a relationship part by the presence of a file with a ".rels" file extension in a folder named "_rels".
To know more check the link from Microsoft.
https://support.microsoft.com/en-us/kb/2843030


2. Invalid manifest detected:


Missing or invalid ProgId entries might also cause sequencer to crash with Invalid manifest detected error log.
Check the link from Dan Gough.
http://packageology.com/2014/08/sometimes-fix-crashing-sequencer-imgburn-recipe/


3.Backslash:

AppxManifest.xml schema does not allow backslashes in ProgId names. If found it leads to sequencer crash.


A manifest document failed validation against the schema(s).
 DOM Error: 0xC00CE169
 Reason: ‘Blackbaud.Ext\RE70\RE7’ violates pattern constraint of ‘[^\\]*’.
The element ‘{http://schemas.microsoft.com/appv/2014/manifest}ProgId’ with value ‘Blackbaud.Ext\RE70\RE7’ failed to parse.
Credit - Trentent & Dan Gough


4. Number of fonts:

There’s a limit of 700 fonts in a single AppV 5.0 SP3 package.
A manifest document failed validation against the schema(s).
 DOM Error: -1072898028
 Reason: Element ‘{http://schemas.microsoft.com/appv/2014/manifest}Font’ is unexpected according to content model of parent element ‘{http://schemas.microsoft.com/appv/2014/manifest}Fonts’.
Check Tim Mangan research paper for more details.
www.tmurgent.com/AppV/images/WhitePapers/Research_Fonts.pdf


5. Change from VFS to PVAD:


Try changing to PVAD during sequencing. This might some time resolve the issue.


6. Long paths:


Check for long paths in the package editor before saving.


7. Missing Language pack:


Sequencer might crash if there is any missing language pack. To know more check this link.
http://www.peppercrew.nl/index.php/2013/11/microsoft-app-v-5-0-sp1-sequencer-error-while-saving-package/

http://www.daniel85.ch/?p=1694

8. Shortcut names that end with a space:


Some times (not in all the cases) if there is a space in the shortcut at the end, it will lead to issues.


9.Manufacturer doesn't support App-V:

Some applications do not support App-V sequencing and causes sequencer to crash. In this case, there is no way to sequence it as manufacturer doesn't support App-V. It always a good approach to check with the manufacture in this scenario.


If you are not able to find any possible reason,then it is always recommended to raise a support ticket with Microsoft App-V team.

Tuesday, October 20, 2015

Can we sequence application entries installing to both C:\ Drive and E:\ Drive - App-V 5.0

Question : Consider application entries are going to both C:\ Drive and E:\ Drive ..
In this case whether we can go ahead with sequencing this application? as these both locations entries will be reflecting in VFS.

Answer : App-V 5.0 won't support multiple drive entries. Below you can find an example.

start the sequencing steps using App-V sequencer 5.0 SP3.

1. Select create a new virtual package.


2. Select create package.


3. Select standard package.


4. Select custom installation.


5. Enter the virtual package name as test. Click next. In the monitoring phase, Go to c:\programfiles (x86), create a folder named test1 and add a file. eg:1.jpg.

Go to E:\ drive, create a folder named Test2 and place a text file test2.txt.

6. Click "I am finished monitoring"

                                     

7.Select continue to modify the package option and click next.

8. In the package editor select Package Files tab to see the files that were captured during monitoring phase.


Here you can see that only the file that was kept in c:\programfiles (x86)\test1 has been captured in the VFS. 

Conclusion : App-V 5.0 or App-V 5.1 doesn't support file entries installing to multi drive( c:\ and D:\ ) using the sequencer.

Note: However if your application explicitly needs files to be in D:\ or E:\ drive. Simply extract the files from the package and place it in the SCRIPTS section in the package editor. Write a script to copy them to respective D:\ or E:\ drive in the Add/Publish scripts trigger in Deploymentconfig.xml file.Thanks to troubleshooting enthusiastic Vinod Reddy for pointing out this workaround.

Wednesday, September 30, 2015

How to edit the Shortcut name in App-V 5.0

Ques: I have sequenced an application and have succesfully tested it. Now I need to change the shortcut name as there is already another package with the same shortcut name in the same start menu location that exists on the client machine.When I opened the .appv file for editing using the App-V sequencer, I am not able to see the Shortcuts and FTA tab visible in the package editor. How can I edit the shortcut name now. Do I need to re-sequence again?

Ans: No need to re-sequence the application again.Open the .appv file using Microsoft Virtualization Sequencer 5.0 SP3 and select the Update Application in Existing Package option instead of Edit package.In the select Installer phase, select perform a custom installation option.Do not install anything, Just select I am finished Installing and proceed by clicking next-next.Select modify package using package editor. Now you will be prompted with Shortcut and FTA tab where you can edit the shortcut name.










  

Another easy way is to edit the shortcut tag in the  _DeploymentConfig.xml file .

Before:




After:
                      
<Shortcuts Enabled="true">
        <Extensions>
          <Extension Category="AppV.Shortcut">
            <Shortcut>
              <File>[{Common Programs}]\Mozilla Firefox 41.0.lnk</File>
              <Target>[{ProgramFilesX86}]\Mozilla Firefox\firefox.exe</Target>

NOTE: While testing using powershell, the deployment config file needs to be added using the -DynamicDeploymentConfiguration parameter.If not added then the change made to the shortcut name will not reflect.

Add-AppvClientPackage "path to .appv" -DynamicDeploymentConfiguration "path to deploymentcofig.xml" | Publish -AppvClientPackage -global