Using the ThinApp SDK of PowerShell

For PowerShell fans out there, you can use the ThinApp SDK of PowerShell.

See my post using the ThinApp SDK of PowerShell .

____________

Blog: LucD notes

Twitter: lucd22

Exciting to you see pick up the ThinApp SDK so fast!

The target audience is not limited to people of Visual Studio, we want to make the SDK easily accessible from environments as much as possible, it is certainly PowerShell. If there is anything we can do to make life easier in your environment, let know us and we will try to accommodate you (the example is the apparent lack you mentioned).

To prepare the environment, all you need to do is copy ThinAppSDK.dll and ThinAppSDKSrvr.exe in the same directory and run "regsvr32 ThinAppSDK.dll" (from the elevated command prompt). There is no need to manually start ThinAppSDKSrvr.exe. ThinAppSDKSrvr.exe is used when you access the ThinApp SDK from a 64-bit application and is automatically started by Windows when necessary.

Maybe a little technical background: ThinAppSDK.dll is the DLL that implements the ThinApp SDK as ThinApp.Management objects. It is a 32-bit DLL, if you create an object ThinApp.Management to a 32-bit process Windows will load ThinAppSDK.dll into this process (if the DLL has been registered properly with regsvr32). However, it is not possible to load a 32-bit DLL into a 64-bit process. So if you try to create an ThinApp.Management object from a 64-bit process, ThinAppSDK.dll cannot be loaded directly in this process.

This is where ThinAppSDKSrvr.exe comes. Windows will detect this situation and will automatically launch ThinAppSDKSrvr.exe. Given that ThinAppSDKSrvr.exe is a 32-bit application, it can load ThinAppSDK.dll very well. Windows then 'send' ThinApp SDK calls (for example, the GetThinAppType method call) process 64-bit ThinAppSDKSrvr.exe, who will forward in turn to ThinAppSDK.dll. The result will be reflected back from ThinAppSDK.dll to ThinAppSDKSrvr.exe via Windows 64-bit application. This may seem complicated, but everything happens behind the scenes, you should not have to worry about this.

Therefore, the ThinApp SDK actually does support 64-bit applications. I just tried and launched a PowerShell 64 bit on Win7 x 64. I have had no problems running your samples. Not sure why it did not work for you.

Tags: VMware

Similar Questions

  • Compare 2 PDF of the file through the command line using the Acrobat SDK

    Hello

    I want to compare 2 by command line of the PDF using the Acrobat SDK, is it possible?

    My needis to create Automation for comparison in .net, c# technology to compare files of 100.

    Could you be it someone at - it one please let me if the Acrobat SDK kit supports integration with .NET and is it possible to call the term comapere.

    OK, Acrobat is not suitable. It is not technically suitable for the server; also no license. It doesn't have a command line, only OLE user interface.

    There are Acrobat PDF library, allowing development in C/C++. But I think that there is no function to compare. You will need to implement one yourself, which is a probably a lot of work. What kind of comparison do you want? If you just want to know if the files have changed at all you can use all the checksums without any API. Or are you looking for any Visual change? Or text change...?

  • Workflow of vCO of query using the REST API in PowerShell

    Hello

    I am interrogating a workflow vCO by name using the REST API of PowerShell based on this article:

    http://www.vcoteam.info/articles/learn-VCO/268-how-to-use-the-rest-API-to-start-a-workflow.html

    $username = "XXXXXX".

    $upassword = "XXXXXX".

    $auth = $username + ':' + $upassword

    $Encoded = [System.Text.Encoding]: UTF8. GetBytes ($auth)

    $EncodedPassword = [System.Convert]: ToBase64String ($Encoded)

    $headers = @{' authorization '=' basic $($EncodedPassword) ' ;}}

    $body = "<-xmlns = execution context" ". ' http://www.VMware.com/VCO ' > < / execution context > '

    #query for workflow named "donothing".

    Invoke-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donothing -Headers $headers - body $body - ContentType "application/xml" - Get method

    Invoke RestMethod: failed to send a content-body with this type of verb.

    On line: 1 char: 1

    + Call-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donoth ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [invoking-RestMethod], ProtocolViolationException)

    + FullyQualifiedErrorId: System.Net.ProtocolViolationException, Microsoft.PowerShell.Commands.InvokeRestMethodCommand

    The request succeeds by using the customer REMAINS on Firefox, but I can't make it work on PowerShell. (NOTE: PowerShell workflow execution works very well)

    Any help is appreciated.

    Thank you

    Juan.

    OK, I managed to do work by removing

    [System.Net.ServicePointManager]: ServerCertificateValidationCallback = {$true}

    And add this at the beginning of the script

    "Add-type @ '.

    using System.Net;

    using System.Security.Cryptography.X509Certificates;

    public class TrustAllCertsPolicy: {ICertificatePolicy

    public bool CheckValidationResult)

    ServicePoint srvPoint, X509Certificate certificate,

    WebRequest request, int certificateProblem) {}

    Returns true;

    }

    }

    "@

    [System.Net.ServicePointManager]: CertificatePolicy = New-Object TrustAllCertsPolicy

    Now I can use the GET method:

    $ret = Invoke-WebRequest - uri $URL - Headers $headers - ContentType "application/xml" - Get method

    I spent to Invoke-WebRequest so I can get the return of application Web.

    Juan.

  • How can I know the size of the screen of the moniter of users using the Acrobat SDK?

    How can I know the size of the screen of the moniter of users using the Acrobat SDK? I need to know how much real estate sreen which is available on the moniter to users. Is there some call I can do the SDK to find out the maximum X and is coordinated?

    Thank you

    Gregory

    Just responded to your other thread:

    AVWindowGetDesktopBounds()

    Even takes into account the task bar on Windows, the menu bar on Mac, etc.

  • using the AIR SDK Beta 10 camera

    Hello

    I try to transfer my playbook to the BB10 sdk air application. It seems rather easy. But I have a problem of access to the camera. I wonder if it's a bug or a feature missing from the current beta.

    The way I access the camera is quite standard:

    : camera var = Camera.getCamera ();

    ...

    camera.setMode (800, 400, 15, true);

    Video: video of var = new Video (camera.width, camera.height);

    video.attachCamera (camera);

    addChild (video);

    When debugging I get the object camera but it not to broadcast anything (fps = 0).

    Thank you for your help,

    Toby

    I fixed it! In fact, I used

    camera.setMode (1024,600,15)

    When you switch to a different mode the camera image is displayed correctly.

  • New files created when to split a PDF file using the Adobe SDK are much higher than expected

    Hello. I use the kit Adobe SDK to split large PDF into a set of small PDF files, using a set of page ranges. I created 2 PDDocs.  One is for the original PDF, which I open it.  In the other, I insert a range of pages of the original.  I'm doing this for each set of pages.

    objPDDocNew.InsertPages (-1, objPDDoc, startPage - 1, lngPageCount, 0)

    It works fine, except that the combined size of the smaller PDF files is 10 or more times the size of the original PDF file! Y at - it an explanation for that? Y at - it a setting that I can put to reduce the size of the output files? I run my program of my Windows 7 desktop that has Adobe Acrobat XI. Thanks for any help you can provide.

    You can get an idea on what elements are the use of how much space in the PDF file by opening the various Acrobat Pro files, and then select file > save as other > optimized PDF - then click on the "Use of space Audit" button in the upper right corner of the dialog box that opens. When you compare the use of the space of your source files with the file target that you can discover what is causing the increase in the size.

  • Using the ThinApp sandbox and Remote Desktop Services drive

    Hi, we test how thinapp works on our server terminal server with a few thousand users. There seems to be an option for save the disc space in the .ini file, but still the sandbox would use lot of disk space, when there are many thinapped programs? Is it possible to use the sandbox shared on a network drive, or what is the best option to save precious space on the server?

    Thank you!

    Having the sandbox located on a network share will save everything you do Sandbox at this place and so not to save what anyone in the user profile... But again, everything depends on methods of insulation...

  • Changing the order of the drives using the VI SDK

    Hello

    I'm changing the order of the discs using the VI API SDK. Can anyone help me in doing this. Currently I have remove all the diskdevices and make a ReconfigureVM_Tak followed by adding disk devices in the order of the prefeered and new call to the ReconfigureVM_Task.

    On this I finish by adding records in the same order, which has been defined as a prerequisite for these operations.

    Any kind of help in this is apprciated.

    THX,

    Germain

    So my question is why exactly are you doing this? If the disks are empty, then simply put any drive you want to be the first and foremost.

    The label "Hard disk X" is just to let you know how many disks is attached and which adapter/SCSI bus is on. If you have added disk0-2 and you remove and you add back them in reverse order, then disk2 will now label 'disk 1' since this is the first record added. What really matters is the map/bus it's on, because the OS will see the readers in a certain order, which is what I think that where it counts.

    At this point, you will never get the labels to be "inverted" because the labels are generated to ensure uniqueness through the number of disks.

    I hope this makes sense, so the recommendation is to order the disks in the order in which you want the OS to see it, that will be by selecting the map/bus

    for example SCSI0:0, SCSI0:1, SCSI0:2...

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    If you find this information useful, please give points to "correct" or "useful".

  • Use the AIR sdk in a Panel

    Hello

    I'd love to be able to access the file with an expert system. I read that after cs5 panels using the infrastructure of the AIR, but I'm not entirely sure how to use it. I am currently using the sdk flex 3.4.0 that was required for CS4. How can I do to upgrade to the AIR sdk?

    Thank you

    Cameron

    I just converted one of mine. The magic is in .actionScriptProperties. Change this:

    useApolloConfig = 'true '.

    with a text editor. I leave Flex * before editing it. My icon in Flex it still shows that Fx instead of the icon of AIR but the AIR feature works.

  • How to use the InDesign SDK on Visual Studio 2013 for C++ project?

    I had a stuck on my research on 'use InDesign SDK to develop a plugin for InDesign'. Through my research, I tried to launch a sample project comes with the SDK in Visual Studio 2013 (note that all the examples of projects are using C++). Also, I have many questions about InDesign to apply for assistance, but long unanswered forum post. And this final change that I need your help to continue my research on this issue. The issue is described as follows:

    • Document involved: plugin_sdk_CC2015_072_20150618.zip (year SDK InDesign-downloaded from the Adobe site - http://www.adobe.com/devnet/indesign/sdk.html)
    • Development environment: Visual Studio 2013 (C++)
    • I followed the guideline in the folder "plugin\docs\html\index.html".
    • I opened a sample project in the folder "plugin\build\win\prj" Visual Studio 2013.
    • In the Visual Studio 2013 window, I click on "Local Windows Debuggeer" to run the project. But after compiling the project, it generated an error message and the project cannot run more.

    Note: All draft documents and sample are belong to InDesign SDK.

    I stuck there and could not find a solution for this problem yet, I followed the document of InDesing SDK strictly. Finally, the purpose of this research is to create a sample for InDesign plugin.

    Kind regards

    Hello

    Set your path of debugging in visual studio 2013.

    If you find any problem you can contact me please on my mail ID

    [email protected]

    Thank you

    Philippe joshi

    + 91-8860697370

  • Cannot use the creative SDK in wordpress!

    Hello

    I bought adobe creative SDK for high resolution. I followed the instructions in Adobe Creative SDK. The platform that I use wordpress, I have the plate ready boiler with replaced key destinations and image of the API. When I run the web page then I get just a button change does not work/call sdk adobe creative, but the same code and the boiler plate try on a local host, all of the api works very well. Can someone guide me how impliment this on a wordpress.

    PS: Tried Google but have not found anything. No tutorial help me! Would be really helpful

    Invite you to submit your concerns about Adobe Creative SDK

  • How to get information from the owners of devices (NMP and Powerpath) using the VI SDK

    Hello

    I just started to work with VI SDK in C++ using gsoap. I am

    facing a problem. Using VI SDK, where can I get more information

    regarding who manages the paths. Inside of the VI GUI client we can

    see that in the owner field. The GUI shows if the owner is NMP

    or powerpath. Can I get the same information by using VI SDK API? I'm not

    able to conclude within ScsiLun HostMultipathInfoLogicalUnit or

    HostMultipathInfoPath Dataobjects.

    Kindly help me.

    Thank you

    Gesner

    Ah good to know it is where it is located.

    national immunization days , you can find more info here: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.PlugStoreTopology.html#path

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • How to determine the size the virtual machine using the VI SDK files

    VirtualMachineFileLayout a lot of files like snapshots, configuration files, log files. I have not found any object determine the size of them, but the VI Client GUI shows the sizes of them.

    Is there a VI SDK objects that provide the size of every file?

    Thank you

    RAM

    The virtual machine, you can find warehouses of data associated with (ownership of the data store). Each data store, you can find the HostDatastoreBrowser corresponding (the property browser). HostDatastoreBrowser object, you can call SearchDatastore_Task() or SearchDatastoreSubFolders_Task.

    When you call one of the methods, a task object is returned. To the success of the task, check the property info.result of the task, the object of HostDatastoreBrowserSearchResults actual result is there. Discover the FileInfo objects - they include sizes and lately of the modified files.

    Good luck.

    Steve JIN, VMware engineering

    Creator of VI Java API: http://vijava.sf.net/

  • How to get the version using the Acrobat SDK

    I have a plug-in for Adobe Reader and Adobe Acrobat.
    Depending on the product and the version, the plug-in should perform few features.
    I use ASGetConfiguration() to get the name of the product.

    Is there an API to get the version of Reader and Acrobat?

    Thanks in advance,
    Vatsapal

    AVAppGetVersion()

  • How to remove the file/path name using the SDK

    I have a program that uses the Acrobat SDK from Adobe kit. It creates the aPDF file from a HTML file that is created after the jugs of program data. It can create PDF very well, but how can he do with on the file name and path in the lower left corner. Insert us the PDF file created in another document and that you do not want to display the data on these pages created.

    Sought through this site and can not see mentioned.   Help!

    How do you convert from HTML to PDF format?

Maybe you are looking for