Is there a token for AppVClientConnectionGroup / AppVClientPackage GUID?

Hi,
maybe a simple question but I can't figure it out. I have a few applications I need to copy a specific INI file to using StartProcess and copy it back afterwards with ExitProcess. It works fine but in the script I manually have to get the localtion of the
VFS for that specific application. An example is '%LOCALAPPDATA%\Microsoft\AppV\Client\VFS\3ACF30AF-12F8-41B5-9637-D66700DF111A\ProgramFilesX86\<name of the application>. Ofcourse with every application the GUID changes. As I always create a new package,
even for an update, these GUIDS change a lot.
Now I know know I can get PowerShell to retrieve that GUID for me, although I dislike PowerShell for it's execution slowness compared to vbscript for example (and I don't want to discuss that :)). I wonder if there is a token I can use to get the GUID of
package and / or connectiongroup? I currently have the token-list as below, but maybe there are additional tokens?
Known Folder Token
Known Folder Path
AccountPictures
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\AccountPictures
Administrative Tools
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
AppData
C:\Users\<username>\AppData\Roaming
Application Shortcuts
C:\Users\<username>\AppData\Local\Microsoft\Windows\Application Shortcuts
Cache
C:\Users\<username>\AppData\Local\Microsoft\Windows\Temporary Internet Files
CD Burning
C:\Users\<username>\AppData\Local\Microsoft\Windows\Burn\Burn
Common Administrative Tools
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
Common AppData
C:\ProgramData
Common Desktop
C:\Users\Public\Desktop
Common Documents
C:\Users\Public\Documents
Common Programs
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
Common Start Menu
C:\ProgramData\Microsoft\Windows\Start Menu
Common Startup
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
Common Templates
C:\ProgramData\Microsoft\Windows\Templates
CommonDownloads
C:\Users\Public\Downloads
CommonMusic
C:\Users\Public\Music
CommonPictures
C:\Users\Public\Pictures
CommonRingtones
C:\ProgramData\Microsoft\Windows\Ringtones
CommonVideo
C:\Users\Public\Videos
Contacts
C:\Users\<username>\Contacts
Cookies
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Cookies
CredentialManager
C:\Users\<username>\AppData\Roaming\Microsoft\Credentials
CryptoKeys
C:\Users\<username>\AppData\Roaming\Microsoft\Crypto
Desktop
C:\Users\<username>\Desktop
Device Metadata Store
C:\ProgramData\Microsoft\Windows\DeviceMetadataStore
DocumentsLibrary
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Libraries\Documents.library-ms
Downloads
C:\Users\<username>\Downloads
DpapiKeys
C:\Users\<username>\AppData\Roaming\Microsoft\Protect
Favorites
C:\Users\<username>\Favorites
Fonts
C:\windows\Fonts
GameTasks
C:\Users\<username>\AppData\Local\Microsoft\Windows\GameExplorer
History
C:\Users\<username>\AppData\Local\Microsoft\Windows\History
ImplicitAppShortcuts
C:\Users\<username>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts
Libraries
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Libraries
Links
C:\Users\<username>\Links
Local AppData
C:\Users\<username>\AppData\Local
LocalAppDataLow
C:\Users\<username>\AppData\LocalLow
MusicLibrary
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Libraries\Music.library-ms
My Music
C:\Users\<username>\Music
My Pictures
C:\Users\<username>\Pictures
My Video
C:\Users\<username>\Videos
NetHood
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Network Shortcuts
Personal
C:\Users\<username>\Documents
PicturesLibrary
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Libraries\Pictures.library-ms
Podcast Library
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Libraries\Podcasts.library-ms
Podcasts
C:\Users\<username>\Podcasts
PrintHood
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
Profile
C:\Users\<username>
ProgramFiles
C:\Program Files
ProgramFilesCommon
C:\Program Files\Common Files
ProgramFilesCommonX64
C:\Program Files\Common Files
ProgramFilesCommonX86
C:\Program Files (x86)\Common Files
ProgramFilesX64
C:\Program Files
ProgramFilesX86
C:\Program Files (x86)
Programs
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
Public
C:\Users\Public
PublicAccountPictures
C:\Users\Public\AccountPictures
PublicGameTasks
C:\ProgramData\Microsoft\Windows\GameExplorer
PublicLibraries
C:\Users\Public\Libraries
Quick Launch
C:\Users\<username>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch
Recent
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Recent
RecordedTVLibrary
C:\Users\Public\Libraries\RecordedTV.library-ms
ResourceDir
C:\windows\resources
Ringtones
C:\Users\<username>\AppData\Local\Microsoft\Windows\Ringtones
Roamed Tile Images
C:\Users\<username>\AppData\Local\Microsoft\Windows\RoamedTileImages
Roaming Tiles
C:\Users\<username>\AppData\Local\Microsoft\Windows\RoamingTiles
SavedGames
C:\Users\<username>\Saved Games
Searches
C:\Users\<username>\Searches
SendTo
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\SendTo
Start Menu
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu
Startup
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
System
C:\windows\system32
SystemCertificates
C:\Users\<username>\AppData\Roaming\Microsoft\SystemCertificates
SystemX86
C:\windows\SysWOW64
Templates
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Templates
User Pinned
C:\Users\<username>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned
UserProfiles
C:\Users
VideosLibrary
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Libraries\Videos.library-ms
Windows
C:\windows
Custom Token
Custom Token Expansion
AppVAllUsersDir
C:\Users\All Users
AppVComputerName
<USERNAME>-LT02
AppVCurrentUserSID
S-1-5-21-124525095-708259637-1543119021-705252
AppVEnvironmentVariableCommonProgramFiles
%commonprogramfiles%
AppVEnvironmentVariableProgramFiles
%ProgramFiles%
AppVPackageDrive
C:
AppVPackageRoot
C:\AppInstallFolder
AppVSystem32Catroot
C:\windows\system32\catroot
AppVSystem32Catroot2
C:\windows\system32\catroot2
AppVSystem32DriversEtc
C:\windows\system32\drivers\etc
AppVSystem32Driverstore
C:\windows\system32\driverstore
AppVSystem32Logfiles
C:\windows\system32\logfiles
AppVSystem32Spool
C:\windows\system32\spool

OK I hear you.
What might be the easiest way is to create a wrapper for the program that you execute instead of the actual exe.  So when you launch the wrapper, it edits the ini, then runs (with wait) the actual exe, then after the exe exits it revers the ini back.
This is a good use case for exit scripts should be able to run inside the VE.  You should create a suggestion, or if you want to add on I created a post for beefed up scripting (shameless plug found here:
http://appv.uservoice.com/forums/280448-microsoft-application-virtualization/suggestions/7240266-improve-scripting-options)
When you pass the token to the VBS, does it evaluate as inside path (C:\Program Files) or outside path ('%LOCALAPPDATA%\Microsoft\AppV\Client\VFS\etc....)?  Just curious, I have only done that once or twice.  I REALLY wish those properties could
be evaluated by some generic API call, or were env variables like 4.6.  
Even if you use powershell you can't evaluate the tokens correct?  You just have access to the cmdlets and can 'build' the value of the tokens yourself right?
I want to make sure I'm not doing things the hard way.
mwa.. that's even using more ducttape than just hardcoding the GUID :) Thanks for the suggestion though. I think I'll make a little sub that finds out the actual VFS path. But until then I'll wait for someone to give the hole-grail answer :)

Similar Messages

  • Is there a token for arrived mails?

    Hello,
    is it possible to be informed (for example via a token) if a new mail
    arrives in the mailbox? I've searched the whole token list but I did not
    find anything useful (perhaps I'm just blind :-)
    If anyone knows an answer, I would be very thankful.
    Best regards, Dirk

    Actually there is, and it's exposed via Object API and SOAP. But only for Gw
    7. The new events interface. You can subscribe to Folder/New Item. This
    won't prove it's a new mail (though checking it's opened status might), but
    it kind of works.
    "Roger Thomas, DevNet SysOp 22" <[email protected]> wrote in message
    news:1Dc5f.2878$[email protected]..
    > I'm not sure that there is a system wide event to indicate a new
    > message. One reason for this is that 'new' messages/objects can
    > appear across a number of different folders - new messages, shared folders
    > and document areas.
    >
    > Via the Object API you can select a folder and then monitor it for
    > changes.
    >
    > Roger Thomas, DevNet SysOp 22
    >
    > "dijebing" <[email protected]> wrote in message
    > news:qu65f.2378$[email protected]..
    >> Hello,
    >>
    >> is it possible to be informed (for example via a token) if a new mail
    >> arrives in the mailbox? I've searched the whole token list but I did not
    >> find anything useful (perhaps I'm just blind :-)
    >> If anyone knows an answer, I would be very thankful.
    >>
    >> Best regards, Dirk
    >>
    >
    >

  • Hyper-V 2012 R2 USB Token for guest

    I have a piece of software that uses a USB token for licensing purposes. I'm attempting to virtualize the server with the software, but I can't get the USB token over to the VM. I've seen guides about mounting USB drives to VMs, but the token doesn't present itself as a drive. When plugged in, Windows goes through the normal procedure for recognizing a new device and then places it under "other devices" in the device manager. Is there a way I can make this device available to the VM Guest?
    This topic first appeared in the Spiceworks Community

    Hi Andre,
    I would suggest you to install the supported Linux guest OS on hyper-v , please refer to following link:
    http://technet.microsoft.com/en-US/library/dn531030.aspx
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Since updating my iPhone 4 to ios6 I can no longer access itunes through the itunes app.  I just get a blank white screen.  Is there a fix for this yet?

    Since upgrading my iPhone 4 to the new ios6 software I can no longer access itunes through the itunes app.  I there a fix for this yet?

    Scalesy05 wrote:
    I there a fix for this yet?
    Why would there be a fix?  YOU are having the problem.  I'm not, no one I know is having the problem.  No fix is needed.
    Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as new.  Have you been through any, if not all of these troubleshooting steps yet?

  • Is there a fix for modal dialogs opening behind palettes -cs6 -osx 10.6.8

    Is there a fix for modal dialogs open behind palettes in
    Photoshop cs6 13.0 (createive cloud update) + OSX 10.6.8 Snow Leopard on MacBook Pro? 
    ( I am using 2 monitors where the second monitor is set to be the menu display.  cs4 does not exhibit this bug. )
    Toggling the Application Frame off improves the hiding 'feature' but this does not include the desired continuous floating in front of palettes in all circumstances.
    An example is Blending Options, then chose Stroke, then chose the Color Picker.  After clicking OK, the Blending Options dialog now sits behind the palettes.  One trick is to click on another app, then back to cs6 to force a window redraw.
    It sure would help me if this could be solved.  I am preparing educational videos and this display bug makes things very troublesome.
    Thanks for any help.  If I find a solution, I will post to this thread so everyone can benefit.

    The setting for the graphics check box Does Not make a difference.  If I have a new document window open, then add a layer, then open the blending options > drop shadow > edit the color > the chooser dialog opens, and immediately both dialog windows drop behind the palettes AND any document windows.
    The same behavior for the Preferences dialog > guides > color.
    The quick workaround is to click another app, then back to CS6.  A real pain, of course.
    It is only a factor when opening a second (child) dialog box.
    Other CS6 apps do work correctly (eg. FW AE)
    I have yet to get a handle on this.  Mac OSX 10.6.8    CS6 13.0  x64
    Thanks for your replies, and the long reply time for me was a vaction away from the office.

  • Is there a program to get the GUID of a Mozzilla application or Mozilla fork such as K-Meleon or Waterfox or is there a respository that contains these GUIDs?

    We have several plugins that in the past successfully ran in other Mozilla based browsers such as K-Meleon, Sea-Monkey, Netscape, etc.
    In the past the plugin needed to be manually installed or required a special downloadable installer to get the plugin installed/ working with browsers like these.
    Recent work on many of these projects now allow you to install plugins directly through the web or though about:addons and then restart the browser to complete the installation, just like in Firefox.
    We have the list of the most popular GUIDs from the Mozilla documentation listed below, however we do not have the GUIDs for the more obscure Mozilla based forks or projects.
    - Firefox, Thunderbird, Nvu, Mozilla Suite or Mozilla Browser 1.x, SeaMonkey, Sunbird, Netscape, Flock, and Mobile.
    Is there a way to find the GUIDs for these other browsers: K-Meleon, Waterfox, Firefox Nightly (we are guessing the Nightly builds use the same GUID as Firefox) so that we can add the appropriate information to our install.rdf and update.rdf files or does one need to get in contact with the respective projects to determine these?
    For our use either an application that does this, or even a small script that could be run to determine the GUID of these other Mozilla based browsers would be great. If these don't exist, is there a public document or repository that can be accessed to get these GUIDs?
    Additionally, is it possible that some of the obscure Mozilla based forks do not contain or utilize GUIDs that are used by the install.rdf and update.rdf manifests? If so, what can we do so that our plugins can be installed automatically for these browsers through the web or about:addons?
    Is there a way to tell an install manifest that a particular browser is supported even though no GUID exists for that browser so that the installation can proceed as normal for that browser?
    My apologies for the lengthy details and for so many questions. I have searched around and have not been able to find answers to these questions so I figure what better place than directly from Mozilla.
    Thanks again for so many great products over the years and for the continued development of most of them. :-)
    Kevin

    Kevin, there are a few questions I can answer, but if you have irc you can also reach out to the #addons channel. I will also try to get in touch.
    As far as I know:
    * Starting point: [https://developer.mozilla.org/en-US/docs/Developing_add-ons Developing Add Ons: MDN]
    * [https://developer.mozilla.org/en-US/docs/addons.mozilla.org_%28AMO%29_API_Developers%27_Guide/The_generic_AMO_API AMO API ]
    * [https://developer.mozilla.org/en-US/Add-ons/Plugins/Gecko_Plugin_API_Reference/Plug-in_Development_Overview Registering Plugins and Developement Overview]
    *[https://developer.mozilla.org/en-US/Add-ons/Overlay_Extensions/XUL_School/The_Essentials_of_an_Extension Install.rdf file info for extensions]
    ''Is there a way to find the GUIDs for these other browsers: K-Meleon, Waterfox, Firefox Nightly (we are guessing the Nightly builds use the same GUID as Firefox) so that we can add the appropriate information to our install.rdf and update.rdf files or does one need to get in contact with the respective projects to determine these?''
    I do not know. There are generating GUIDS [https://developer.mozilla.org/en-US/docs/Generating_GUIDs]
    Be right back. I will try asking for backup.

  • When will there be fix for AirPrint in Yosemite? I cannot use my HP printer. I have uninstalled/resinstalled everything you can think of. I have deleted and added my printer more time than I can count. I have checked for updates. Nothing has worked.

    When will there be fix for AirPrint? Since upgrading to Yosemite I cannot print from my MacBook Air which I use mostly. (I can print from the my old 2005 G5 desktop and iPad2 just fine on the same network.) I could print just fine when I had Mavericks. I have tried EVERYTHING under the sun: resetting print system, deleting and adding the printer, checking for updates, uninstalling and reinstalling printer software and folders, turning off modem, router etc. NOTHING works.
    The laptop shows that it is printing but nothing happens. Then it says it cannot locate the printer or there is a broken pipe. But it does tell me that I have a low level in one of the ink cartridges (which is true.)
    Help! I have warned everyone I know not to upgrade. Is there a way to go back to Mavericks?
    MacBook Air (mid 2012), OS 10.10,  HP Officejet 7500a

    This is what appeared on Console:
    11/12/14 12:42:32.558 PM com.apple.preference.printfax.remoteservice[3099]: <NSViewServiceMarshal: 0x7fa398514bd0> failed to complete rights grant 6B212CA9-7872-4726-BA05-68BD5C994479 due to 3
    timestamp: 12:42:32.557 Wednesday 12 November 2014
    process/thread/queue: com.apple.preference.printfax.remoteservice (3099) / 0x7fff78cb4300 / com.apple.main-thread
    code: line 834 of /SourceCache/ViewBridge/ViewBridge-99/NSViewServiceMarshal.m in -[NSViewServiceMarshal invalidateWindowRights]
    #exceptions
    11/12/14 12:42:32.598 PM com.apple.xpc.launchd[1]: (com.apple.preference.printfax.remoteservice[3099]) Service exited due to signal: Killed: 9
    11/12/14 12:42:37.845 PM com.apple.appkit.xpc.openAndSavePanelService[3298]: assertion failed: 14A389: libxpc.dylib + 97940 [9437C02E-A07B-38C8-91CB-299FAA63083D]: 0x89
    11/12/14 12:42:37.879 PM sandboxd[246]: ([3295]) Pages(3295) deny file-read-data /Users/Mom/Downloads/CONM 136 - Study Guide Test 3 (2014).docx
    11/12/14 12:42:37.971 PM sandboxd[246]: ([3295]) Pages(3295) deny file-read-data /Users/Mom/Downloads/12%20angry%20men.docx
    11/12/14 12:42:38.033 PM sandboxd[246]: ([3295]) Pages(3295) deny file-read-data /Users/Mom/Downloads/Quiz%20#2.docx
    11/12/14 12:42:39.712 PM sandboxd[246]: ([3295]) Pages(3295) deny file-read-data /Users/Mom/Downloads/12%20angry%20men.docx
    11/12/14 12:42:39.000 PM kernel[0]: Sandbox: Pages(3295) deny file-read-data /Users/Mom/Downloads/Quiz%20#2.docx
    11/12/14 12:42:39.748 PM sandboxd[246]: ([3295]) Pages(3295) deny file-read-data /Users/Mom/Downloads/12%20angry%20men.docx
    11/12/14 12:42:39.850 PM sandboxd[246]: ([3295]) Pages(3295) deny file-read-data /Users/Mom/Downloads/12%20angry%20men.docx
    11/12/14 12:42:39.874 PM sandboxd[246]: ([3295]) Pages(3295) deny file-read-data /Users/Mom/Downloads/Quiz%20#2.docx
    11/12/14 12:42:39.945 PM sandboxd[246]: ([3295]) Pages(3295) deny file-read-data /Users/Mom/Downloads/Quiz%20#2.docx
    11/12/14 12:42:41.000 PM kernel[0]: Sandbox: storeuid(3051) deny mach-lookup com.apple.dock.server
    11/12/14 12:42:48.968 PM WindowServer[132]: WSGetSurfaceInWindow : Invalid surface 702894100 for window 1378
    11/12/14 12:42:48.968 PM WindowServer[132]: WSGetSurfaceInWindow : Invalid surface 702894100 for window 1378
    11/12/14 12:43:17.000 PM kernel[0]: Sandbox: storeuid(3051) deny mach-lookup com.apple.dock.server
    11/12/14 12:43:23.225 PM com.apple.xpc.launchd[1]: (com.apple.quicklook[3316]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
    11/12/14 12:43:24.355 PM WindowServer[132]: disable_update_timeout: UI updates were forcibly disabled by application "PrinterProxy" for over 1.00 seconds. Server has re-enabled them.
    11/12/14 12:43:24.946 PM WindowServer[132]: common_reenable_update: UI updates were finally reenabled by application "PrinterProxy" after 1.59 seconds (server forcibly re-enabled them after 1.00 seconds)
    11/12/14 12:43:34.503 PM mdworker[3319]: code validation failed in the process of getting signing information: Error Domain=NSOSStatusErrorDomain Code=-67062 "The operation couldn’t be completed. (OSStatus error -67062.)"
    11/12/14 12:43:34.514 PM mdworker[3320]: code validation failed in the process of getting signing information: Error Domain=NSOSStatusErrorDomain Code=-67062 "The operation couldn’t be completed. (OSStatus error -67062.)"
    11/12/14 12:43:34.604 PM mdworker[3318]: code validation failed in the process of getting signing information: Error Domain=NSOSStatusErrorDomain Code=-67062 "The operation couldn’t be completed. (OSStatus error -67062.)"
    11/12/14 12:44:38.628 PM sandboxd[246]: ([3051]) storeuid(3051) deny mach-lookup com.apple.dock.server
    11/12/14 12:44:41.384 PM locationd[63]: Location icon should now be in state 'Active'
    11/12/14 12:44:44.653 PM sandboxd[246]: ([375]) com.apple.metada(375) deny mach-lookup com.apple.cfnetwork.cfnetworkagent
    11/12/14 12:44:44.793 PM sandboxd[246]: ([375]) com.apple.metada(375) deny mach-lookup com.apple.cfnetwork.cfnetworkagent
    11/12/14 12:44:45.149 PM sandboxd[246]: ([375]) com.apple.metada(375) deny mach-lookup com.apple.cfnetwork.cfnetworkagent
    11/12/14 12:44:56.515 PM Console[3327]: Failed to connect (_consoleX) outlet from (NSApplication) to (ConsoleX): missing setter or instance variable
    11/12/14 12:44:56.641 PM locationd[63]: Location icon should now be in state 'Inactive'
    11/12/14 12:44:56.834 PM sandboxd[246]: ([3051]) storeuid(3051) deny mach-lookup com.apple.dock.server
    Not sure what any of this means.

  • Is there a script to convert all guides to paths?

    Hello
    I need access to AI guides in AfterEffects
    shift+alt+ctrl double click doesn't always work.
    Is there a script to convert all guides to paths?\
    Have I asked this before?!
    Tristan

    Don't you just want…?
    #target illustrator
    var doc = app.activeDocument;
    var paths = doc.pathItems;
    for ( var i = 0; i < paths.length; i++ ) {
        if ( paths[i].guides ) { paths[i].guides = false; }

  • Is there a method for counting words?

    Hi!
    Is there a method for counting words?
    How do I read specific data ( row, column ) out of an array?
    Thx
    Lebite

    There's could be a better way, but this is how I would do it:
            String[][] myArray = { {"Blah Blah Blah"},
                                   {"Blah Blah Blah"},
                                   {"Blah Blah Blah"} };
            int tokens = 0;
            for(int i = 0; i < myArray.length; i++)
                for(int j = 0; j < myArray.length; j++)
    StringTokenizer st = new StringTokenizer(myArray[i][j]);
    tokens += st.countTokens();
    System.out.println(tokens);

  • Generating token for javacard framework?

    Hi,
    I am implementing JCRE and it needs to support all APIs that are specified by Oracle JCRE.
    It means that beside the coding/ implementation of each class and method, My framework needs to have tokens of each class, method and field as same as tokens of corresponding Oracle API classes, methods and fields.
    I don't know if there is a special rule to set token for each framework related item? Or Tokens will be changed if there are changes in framework?
    thanks,

    Stratos,
      Thanks for your inputs,
      I changed the code as you suggested , now my whole code looks like :
    <%@ page import="com.crystaldecisions.sdk.framework.*" %>
    <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
    <%@ page import="com.crystaldecisions.sdk.occa.security.*" %>
    <%
    boolean loginSuccessful = false;
    IEnterpriseSession boEnterpriseSession = null;
    String username = "user";
    String password = "Password";
    String cmsname  = "Server";
    String authenticationType = "secEnterprise";
    try {
       //Log in.
       boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsname, authenticationType);
       if (boEnterpriseSession == null) {
          out.print("<FONT COLOR=RED><B>Unable to login.</B></FONT>");
       } else {
          loginSuccessful = true;
    } catch (SDKException sdkEx) {
       out.print("<FONT COLOR=RED><B>ERROR ENCOUNTERED</B><BR>" + sdkEx + "</FONT>");
    if (loginSuccessful) {
       ILogonTokenMgr boLogonTokenMgr = boEnterpriseSession.getLogonTokenMgr();
         String logonToken = boLogonTokenMgr.createLogonToken("", 60, 1);
         //String logonToken = boLogonTokenMgr.getDefaultToken();
       String infoViewURL = null;
       String tokenParam = null;
       String redirectURL = null;
       infoViewURL = "http://Server:8080/InfoViewApp/logon.jsp";
       tokenParam = "ivsLogonToken=" + logonToken;
       redirectURL = infoViewURL + "&" + tokenParam;
       pageContext.forward( "openDocument.jsp?iDocID=" + 4668 + "&token=" + tokenParam);
    %>
    But I am still getting the Infoview Login Page . The url on the login page is
    http://server:8080/OpenDocument/opendoc/logonTrustedAuth.do?appKind=InfoView&iDocID=4668&isApplication=true&token=ivsLogonToken%server%3A6400%4021181JIipxt70VM0kd90v21179JFd4dHn7kW2FKSBi
    We can see that a token is being generated and appended to this url but it is not passing the user name and password.
    Please let me know what you think about this.

  • HT3939 is there an update for iPhone 4 A1332?

    is there an update for iPhone 4 A1332? It seems lately every ap I try to load requires a different system.

    The iPhone 4 can be upgraded to iOS 7.0.4.
    If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
    http://support.apple.com/kb/HT4972
    Also read the instructions from the section entitled "Update your device using iTunes" at the link below.
    http://support.apple.com/kb/HT4623
    Information regarding transferring purchases from your iDevice to iTunes on your syncing computer can be found at the link below.
    http://support.apple.com/kb/ht1848

  • Is there any app for phone auto start after swithced off??

    Is there any app for phone auto start after swithced off??

    Are you looking for an app which will startup the Z10 at a specified time?
    I don't know of one. I have a feeling once OS 10.2 is available you'll see apps such as this.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Is there an app for BC sage line 50 integration

    Is there an app for BC sage line 50 integration so visitors can draw down invoices and elivery notes onto theire web area

    I am really confused, not at this stuff but at what your saying and not reading.
    I am not sure why your not reading things:
    You seem to think I am disagreeing with you on some things where I am not. your glossing over the things I am saying and I think you do not realise a number of things about open platform.
    In terms of SOAP TheBCMan, your actually incorrect on the authentication and just doing an app using username and password creates a big problem in the scope of an app.
    In terms of email and password - This has to be a user. So what your saying in terms of an app that may be on the app store etc - Someone has to create a user access or configure the app with their details before it will work. This is only viable for a one off app and custom solution for 1 site and either requiring a user slot for an app or needing one created.
    This option is not really viable if your creating a true open platform app and has those problems and overkill in terms of your code access.
    Developer reference
    "To use a site token instead of username/password, send an empty username field and the site token as the password. See example below."
    This works great, and you can see it is right there in the documentation. So there is a token.
    What this means for your app, and the reason this is here is that you can create an app through SOAP (and again, we got apps out there doing this! lol) and NOT require a username and password. You do not have to request it in your app, no manual setup, no need to have a user or ensure a user exists in an app, works with any user, changes to users in the admin etc.
    This means that the app can be sold viable to multiple people as a proper product, its less code and no use requirements.
    - Liam is confusing a REST API with the SOAP XML API.
    No, I know what is REST and what is SOAP, I also have been talking BC about open platform testing it etc, and for some time. Also helped with feedback on what is more important to turn into REST. BC plan to do so as I mentioned with those conversations.
    What you are not reading and understanding is what works in terms of open platform and between and app and 3rd party server data which is what I mentioned.
    - Even if you needed an authentication token (which you do not) it still would be possible to use Javascript with said token.
    Yep, as I mentioned, and Yes, in terms of viable apps on sale you need to use the authentication token, not username and password option - Thats a bad idea and not a viable selling app. And it is more straight forward with the authentication token, so your also over complicating things.
    - YOU CAN with Javascript in a BC app (admin area) access the full SOAP XML API. NOTE: You need to put usernames and passwords in the JavaScript so there is that security consideration.
    No need for username and password, and as I keep saying which your ignoring, I am 1. not talking about this in most of the bits I have said and 2. WE DO THIS, we were the first having this working in open platform (Which has been available to us through alpha as partner advisory board partners)
    - YOU CAN access the API with plain old HTML and JS from the front end of the site (in this case ONLY a 3rd party middle man server needed because I would never put login credentials client side).
    Of course, again Pretty offers things like email validation to more complex things, BUT to be secure this needs to be done properly with good authentication. Like any decent web application and their API access etc. Your handling personal data on BC sites in the CRM etc, not doing this properly would be lazy and stupid as I am sure you agree. But based on your comments you can give people the wrong idea about open platform and apps.
    - YOU ARE / I AM NOT breaking any rules or guidelines set out by BC or adobe because you are using plain old Javascript and HTML.
    Not true, I have done lots of things, and provided feedback on what I have done with BC, checked with them and been advised what is valid, what is not. When I was accessing lots of elements of the admin, as I mentioned already here along with other things.. this and other reasons were the reasons why BC introduced apps under a different domain and iframe so they could not access the parent frames dom objects etc.
    Because it is HTML and javascript it is also NOT true that you do not have to follow any guidelines or rules, yes you do. From HTML apps with other platforms like windows you can use javascript and HTML but there is authentication, methods etc. BC has already introduced this, apps are already sandboxed and the security features as I have already mentioned will be increased. Also, because these are built apps, you can not just go in and rip peoples code. Unlike a web app where the source is available, while you may view an app, if BC or the BC app store file code ripped from other apps, this breaks that apps copyright and you will be liable.
    It is early days for open platform but from ownership to security and data access they are very much in the scope of app and are/will and continue to be in that scope. Like I said, if your hacking Webapp API now outside of an app - BC do not want you to do it and will close the loop holes.
    Addition: As another note, You of course, can not just make an app and it will work. You have to register the app with BC, You have to declare your development site, note when the app is live so it can be deployed. Apps as well fall under security access limitations. You can not just deploy an app on a site run by another partner, neither you or the site owner can validate the app, only the other partner. This is to ensure that it is not dodgy.
    The BCappstore has spent a lot of time and money and have access API's via BC to authenticate and deploy apps properly as well. If nothing of what I was saying was correct, none of this would be in place.
    - Security is my number 1 focus on any project every time, I would not compromise security of any development work I did for easy of use or a cool idea. I would turn away work before compromising yours or my security on a project.
    That is great to here, I do not expect or consider any different from someone with the experience you have. You should fully well understand that despite it being Javascript and HTML or because of It as well in other regards, BC are working to introduce increased security to open platform as they already have from the first iterations. I am not sure why your arguing me on this if this is how you feel?
    I am still not sure what your having ago at me for.

  • Unable to add security token for identity

    Hi all,
    I am trying to implement a web service with username token authentication. I have defined the ws -policies in the wsdl, and checked the Process Security Header checkbox in the proxy configuration. But when I invoke the proxy through test console and pass the full soap envelope , I am getting an "Unable to add security token for identity" error
    This is how the soap header looks from the request document part of the test console:
         <soap:Header>
         <wsse:Security>
         <wsse:UsernameToken>
         <wsse:Username>xxxxx</wsse:Username>
         <wsse:Password      Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">yyyyyy</wsse:Password>
         </wsse:UsernameToken>
         </wsse:Security>
         </soap:Header>
         <soap:Body>
    I have configured the user at alsb security configuration and added an acces policy stating that the proxy can be accessed only by user "xxxx"
    Please help
    -Atheek

    Mostafa ,
    This points to a misconfiguration of your security. Possible causes are:
    * There is not a valid RSA key to sign the SAML token with.
    * The SAML CredentialMapper is missing
    * There is no Relying Party (rp) configured for SAML Credential Mapper that matches your producer
    * The producer is using User Name Token and you have no configured the DefaultCredentialMapper to allow for UserNameToken.
    Good Luck,
    Nate
    Edited by: user650654 on Sep 9, 2008 4:31 AM

  • Is there a fix for the connectivity problems with iPhone 5S and ISO 7.0.2?

    Is there a fix for the bluetooth connectivity problems with iPhone 5S and ISO 7.0.4?
    I am having problems connecting the BT Audio and the handsfree phone connectyion is unreliable in 2012 Mitsubishi Lancer XL.
    All worked OK with ISO 6.

    Hello CraigNicholson
    You would need to sync with iTunes to get that process to work for you. Check out the article below for more information on how to resolve that issue to get the proper token to use Push Notifications again.
    iPad and iPod touch: Unable to use YouTube or Push notifications
    http://support.apple.com/kb/ts3305
    Regards,
    -Norm G.

Maybe you are looking for

  • Can you edit layers separately on a sphere in After Effects?

    I'm working on a history documentary about World War II and I have a map of the world divided into colonial empires. Each empire is a separate layer. If you apply the map to a sphere in Photoshop and then bring it into After Effects, can you animate

  • Saving the password of a user in active directory using java

    Hello, i am trying to use java to build a class that creates a user in Active directory 2012.But the problem is that when the user is created the password is not being saved. Can anybody help on this knowing that i tried to save in the fields userPas

  • Extract the new , changed , deleted  vendor  master data -urgent pls

    Hi all, I have require ment like i need to extract all new, changed and deleted data from SAP TO MAXIMO i need to send to a windows environment which both systems share, i am using LFA1 ,CDHDR , CDPOS Tables , i will get the reuired information , can

  • Play...Stop...Play .....Stop

    Occasionally my iphone 3G stops a song while in play when using earbuds or portable speaker ... sometimes it will occur once during the song...other times it can happen up to 10 times. So aggrevating! Does anyone have this problem? If so.... any reme

  • Bex broadcaster in bex analyzer

    Dear all, I have created a report in bex analyzer. I want to add this report to portal, therefore  i need to select bex broadcasting from excel bex analyzer menu. My questions are as follows: 1) As i read in document, i can put analyzer reports in po