Answered by:
App-V Sequencer - Visual Studio Code

Question
-
Has anyone tried to sequence Visual Studio Code, which was just released last week? It seems like a pretty simple app, however, it install to the user's AppdataLocal location. I'm getting an error from the sequencer when it tries to save the package.Tuesday, May 5, 2015 11:57 AM
Answers
-
Success!
Command line used: VSCodeSetup-1.7.2.exe /SILENT /DIR="C:\VSCode" /mergetasks=!runcode
Sequenced on: 64bit Windows 7
Tested on: Windows 7 (persistent), Windows Server 2008 (non-persistent)
Notes:
- All Advanced Options checked in Sequencer
- No need to modify any exclusions in Sequencer
- Pre-created C:\VSCode directory prior to sequencing (not sure if this was required or not)
- Did not launch VSCode during or after sequencing (the /mergetasks=!runcode stops it from auto launch)
- Proposed as answer by CodyLambertModerator Wednesday, November 30, 2016 5:39 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee, Owner Tuesday, December 13, 2016 8:14 AM
Wednesday, November 30, 2016 5:32 PMModerator
All replies
-
What error are you getting? I assume you have configured your exclusions to allow you to capture the required directories?
PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog: rorymon.com Twitter: @Rorymon
Tuesday, May 5, 2015 3:20 PM -
Is it possible to set an other installdir? Did you use SP2 or SP3? Did you install to PVAD or not?
But most important, what's the error you are getting.Tuesday, May 5, 2015 4:00 PM -
OK so I downloaded VSCodeSetup.exe, removed appdatalocal from the exclusion list and created a default package (with dummy pvad). Setup also starts code.exe, so I closed it, next, next, did not start it for configuration, did not create a featureblock, and was able so save the package.... so what's you error?
Using SP2hotfix4.Wednesday, May 6, 2015 8:54 AM -
Ok, i'm going to run through it again. I'll report back shortly. Thanks.Wednesday, May 6, 2015 10:23 AM
-
I got the following events: AppV 5 SP2 HF4
Log Name: Microsoft-AppV-Sequencer/Admin
Source: Microsoft-AppV-Sequencer
Date: 5/6/2015 6:50:08 AM
Event ID: 404
Task Category: None
Level: Warning
Keywords:
User: domain\svc.domain.changebase
Computer: DCBW7C01
Description:
The file 'C:\Users\svc.domain.changebase\AppData\Local\Code\..\Code\app-0.1.0\Code.exe' could not be added to the package (The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)).
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-AppV-Sequencer" Guid="{0D21725F-A0BD-4D1D-AE8E-6910F1093419}" />
<EventID>404</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2015-05-06T10:50:08.118676200Z" />
<EventRecordID>20</EventRecordID>
<Correlation />
<Execution ProcessID="2836" ThreadID="1916" />
<Channel>Microsoft-AppV-Sequencer/Admin</Channel>
<Computer>DCBW7C01</Computer>
<Security UserID="S-1-5-21-1292428093-1303643608-725345543-308549" />
</System>
<EventData>
<Data Name="Path">C:\Users\svc.domain.changebase\AppData\Local\Code\..\Code\app-0.1.0\Code.exe</Data>
<Data Name="Message">The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)</Data>
</EventData>
</Event>Log Name: Microsoft-AppV-Sequencer/Admin
Source: Microsoft-AppV-Sequencer
Date: 5/6/2015 6:50:08 AM
Event ID: 5007
Task Category: None
Level: Error
Keywords:
User: domain\svc.domain.changebase
Computer: DCBW7C01
Description:
An attempt to finalize the package failed (The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)).
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-AppV-Sequencer" Guid="{0D21725F-A0BD-4D1D-AE8E-6910F1093419}" />
<EventID>5007</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2015-05-06T10:50:08.196677700Z" />
<EventRecordID>21</EventRecordID>
<Correlation />
<Execution ProcessID="2836" ThreadID="1916" />
<Channel>Microsoft-AppV-Sequencer/Admin</Channel>
<Computer>DCBW7C01</Computer>
<Security UserID="S-1-5-21-1292428093-1303643608-725345543-308549" />
</System>
<EventData>
<Data Name="Message">The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)</Data>
</EventData>
</Event>- Edited by Hitman31ActualMVP Wednesday, May 6, 2015 11:21 AM
Wednesday, May 6, 2015 11:08 AM -
Hmzz, he's properbly having an issue with your useraccount (svc.domain.changebase). Try to resequence on a machine which is not domain joined, and/or with a local account.Wednesday, May 6, 2015 12:22 PM
-
Tiberivs,
I'm getting the same results on a non domain joined account and Sequencer VM.
Wednesday, May 6, 2015 9:42 PM -
Has anyone else had any success with this app? ThanksThursday, May 7, 2015 8:08 PM
-
Hello,
Spinup another VM, not built like the one you had and retry the process. Remove anything that could potentially lock any files
Nicke Källén | The Knack| Twitter: @Znackattack
- Marked as answer by Brandon RecordsModerator Tuesday, May 26, 2015 5:00 PM
- Unmarked as answer by CodyLambertModerator Tuesday, June 2, 2015 7:42 PM
Saturday, May 9, 2015 9:00 AM -
If the primary EXE is in an excluded location - that could be problematic. What if you remove all LocalSettings and %LocalAppData% exclusions and then enable VFSWriteMode?
Steve Thomas, Senior Consultant, Microsoft
App-V/MED-V/SCVMM/Server App-V/MDOP/AppCompat
http://blogs.technet.com/gladiatormsft/
The App-V Team blog: http://blogs.technet.com/appv/
The MED-V Team Blog: http://blogs.technet.com/medv
The SCVMM Team blog: http://blogs.technet.com/scvmm/
“This posting is provided "AS IS" with no warranties, and confers no rights. User assumes all risks.”Thursday, May 28, 2015 7:27 PM -
I am getting the same error. I'll be messing around with it today though to see what I can come up with.Friday, May 29, 2015 6:57 PMModerator
-
The issue is the \..\
Once you remove the existence of \..\ from the following places in the package, you can actually create it:
Open up the properties of the shortcut
- Start in - remove "\..\Code"
- Click Change Icon, then browse to %USERPROFILE%\AppData\Local\Code\app.ico and select that as the Icon
Additionally, GLADIATORS suggestion of removing the LocalSettings and %LocalAppData% exclusions were necessary.
Update: The application errors when you first launch it, but the second launch works.
- Edited by CodyLambertModerator Friday, May 29, 2015 9:44 PM
Friday, May 29, 2015 9:00 PMModerator -
Cody,
I'm getting the following error when launching the application. I did everything that you listed above.
Monday, June 1, 2015 11:38 PM -
If you click Ok and then launch it again, does it open from that point forward? If so, we need to figure out what we are missing. A procmon should tell us.
Tuesday, June 2, 2015 2:00 PMModerator -
Cody,
In a standalone client, non domain joined. I get the same results that you got where the above error showed up on 1st launch but it worked on second launch. But in my production environment it continues to fail with that error. In production, these are non-persistent VDI and we are using shared content store.
Tuesday, June 2, 2015 7:39 PM -
I’ll try that same config and see if I have the same results.
Tuesday, June 2, 2015 7:42 PMModerator -
I am seeing the same results in my non-persistent VDI environment. Now I just need to free up some time to spend on figuring out whats up. Let me know if you are able to capture what happens during the error.Tuesday, June 2, 2015 7:59 PMModerator
-
Hey Cody,
Did you have a chance to take another look at this?
Kevin
Thursday, June 18, 2015 1:04 PM -
I messed with it for a while more with no success yet. I'll try to free up some time to dedicate to this for you.Friday, June 19, 2015 6:32 PMModerator
-
I am going to try to sequence this again with the latest stable release (currently 1.7.2). I'll let you know what I find.Wednesday, November 30, 2016 5:01 PMModerator
-
Success!
Command line used: VSCodeSetup-1.7.2.exe /SILENT /DIR="C:\VSCode" /mergetasks=!runcode
Sequenced on: 64bit Windows 7
Tested on: Windows 7 (persistent), Windows Server 2008 (non-persistent)
Notes:
- All Advanced Options checked in Sequencer
- No need to modify any exclusions in Sequencer
- Pre-created C:\VSCode directory prior to sequencing (not sure if this was required or not)
- Did not launch VSCode during or after sequencing (the /mergetasks=!runcode stops it from auto launch)
- Proposed as answer by CodyLambertModerator Wednesday, November 30, 2016 5:39 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee, Owner Tuesday, December 13, 2016 8:14 AM
Wednesday, November 30, 2016 5:32 PMModerator