Results 1 to 2 of 2

Thread: How does one add quotes to a value within a custom ADM?

  1. #1
    AndyKing is offline 10+ Helpful Posts Happy to be helping others
    Join Date
    Dec 1969
    Posts
    14

    Default

    I'm deploying an application - Primavera Claim Digger. The software only installs for a specific user. The vendor offered a work around, which was to export a registry key (with 4 settings) from the specific user, and have each user import those settings if they need to run the software. Instead, I [attempted to] created a custom ADM file to create the 4 settings for each user to which the policy is applied. The keys are created, but I'm haivng syntax trouble with one key, because the required value includes quotes.

    The snipit from the adm is below:

    VALUENAME "Parameters" VALUE "-Djava.ext.dirs=./lib -Dapi.schedulecomparison.brand=ECC -Duser.region=US -Duser.language="en" -jar ./mainlib/intgapp.jar "$User" "$Password" "$PROJECT_IDS""

    The question is how do I include/indicate quotes within the value string? The value string above fails. I removed the interior quotes it works fine... but the software (primavera) does not work. I have tried "" double quotes instead of single quotes, """ triple quotes, "'", single quote within quotes, chr(34) & instead of the quote as well as forward slashes - as are added when you export the key to a .reg file... and have failed repeatedly. The correct syntax for adding a " inside a value would be greatly appreciated.

  2. #2
    russosm is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    1

    Default

    Use the [strings] section if your variable has quotes.

    In the body of the adm file place a variable like so:

    VALUENAME "Parameters" VALUE !!myvariable

    and at the bottom of your adm file add a [strings] section like so:

    [strings]
    myvariable="-Djava.ext.dirs=./lib -Dapi.schedulecomparison.brand=ECC -Duser.region=US -Duser.language="en" -jar ./mainlib/intgapp.jar "$User" "$Password" "$PROJECT_IDS""

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Friendly URLs by vBSEO