VMware Horizon Community
Laurent69
Contributor
Contributor

AppSync forced with a primary container package (SDK or Appsync.exe)

I have the following need: find a way to have a forced appsync update before an application is launched. The idea is to create an empty package then to do an appsync update to get the application streamed on the pc or laptop, then the application is launched. I had try several things. The best way I find was to use the SDK and to do a script to force an appsync update. Like I explain below on this post, it work perfectely for any entry point, but I never get it work for a dat file (primary container). What ever I do... its not working. Anyone can help about that?

Here is the script I found on the communites, that I use.

'=================================================
' Set Environment Variables
'=================================================
Set TAManagement = CreateObject("ThinApp.Management")
Dim AppSyncPkg

TAOldPackage = "C:\Temp\AppSync\Mozilla Firefox Primary container.dat"
TANewPackageURL = file:///C:/temp/appsync/Mozilla Firefox Primary container.dat

AppSyncUpdate TAOldPackage, TANewPackageURL

Function AppSyncUpdate (TAOldPackage, TANewPackageURL)
     On Error Resume Next
     '=================================================
     ' Declare the ThinApp Package/File and open
     '=================================================
     Set AppSyncPkg = TAManagement.OpenPackage (TAOldPackage)
     '=================================================
     ' Attach to the package and do an AppSync Update
     '=================================================
     Sync = AppSyncPkg.AppSync (True, LCase(TANewPackageURL))
End Function

It work perfectely for any package that dont have primary container. But I'm not able to make it work if my package contain one or more entry points and a .dat file containing the files and registry. If I try to do appsynch on Firefox.exe... its work. If I try on Firefox.... .dat nothing happend.


I have tries many many tings, but it never work. I should be wrong somewhere, but I cant find.

Can anyone help about it?

Reply
0 Kudos
2 Replies
Python201110141
Contributor
Contributor

Hi,

Please try this:

Before building the package, use the following parameters & value combination in the package.ini file.

AppSyncURL=file:///C:/temp/appsync/Mozilla Firefox Primary container.dat

AppSyncUpdateFrequency=0d
AppSyncExpirePeriod=0d
AppSyncWarningPeriod=0d
AppSyncWarningFrequency=0d

This will download the latest version if available and then launch the application.

Thanks.

Reply
0 Kudos
Laurent69
Contributor
Contributor

I just solve my problem. In fact you dont need to put anything in your package.ini. The issue was a webserver issue, because in fact I use a http:// path for my new package and .dat extention was not declared. All the history is on the following post.

Thank you for your time.

http://communities.vmware.com/message/1989267

Reply
0 Kudos