+ Reply to Thread
Results 1 to 2 of 2

Thread: Setting a registry key in SetupBuilder 8

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Setting a registry key in SetupBuilder 8

    I have a script which compiles fine in SB7 but gives me 'syntax error' in SB8.

    The offending line is generated using the Registry Visualiser. I want to set the default key within

    HKLM\SOFTWARE\Classes\quadvent.document\shell\open \command\

    to a value

    "%_SB_INSTALLDIR%\quadvent.exe" "%1"

    SB8 generates the lines to ensure that each key is present and then on compiling the final line which should set the value, I get "error GEN1077 : syntax error (3)"

    As I say, it works fine in sb7. Any ideas what's wrong?

    [Back story: I've been working part time from home for a government department, essentially as a consultant, for 17 years. This has included developing software and installers. This year the bureaucracy has demanded that I work on government in-house computer systems using their software. Therefore, anticipating that I would need it, earlier this year I persuaded them to buy SetupBuilder for my use, and now I have come to use it. The script I developed with my own copy of SetupBuilder 7 causes the above problem when I try to compile it with my employer's copy of SetupBuilder 8.]

    Dave

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Setting a registry key in SetupBuilder 8

    Dave,

    Because the percent sign (%) is used to signify the value of a variable, you need to use two percent signs next to each other (%%) if you want to use a percent sign in the script command.

    Does this help?

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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