Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

ThinApp SDK to force appsync with primary data container (.dat)

$
0
0

I am trying to use the SDK to get a forced appsync update. I used for that the script posted on this forum :

 

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

TAOldPackage = "C:\Temp\AppSync\Mozilla Firefox.exe"
TANewPackageURL = "file:///C:/temp/appsync/304.exe"

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.


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

 

Can anyone help about it?


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>