Results 1 to 10 of 16

Thread: Weird registry Setting Behaviour

Threaded View

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

    Default Re: Weird registry Setting Behaviour

    Hi Andre,

    > I took the registry setting command out of the script and it trashed a
    > per-user setting. I crapped the project and rebuilt it with the exact
    > same settings and it did not trash the settings. The only difference is
    > the new project is a .sbp project and the old one is a version 7
    > project. I will send you the old one.

    See attached screenshot. You have added the "Create/update Registry Key and
    Value" script command in Line 2. You can do this, sure. But you set the
    real value for %_SB_INSTALLDIR% later in Line 30. So your write action in
    Line 2 makes use of an empty %_SB_INSTALLDIR% value.

    And another quick note: you are writing a "per-user" setting from an
    elevated "per-machine" running application (the installer). Per-user
    settings should never be done from an elevated running app!

    Does this help?

    Friedrich
    Attached Images Attached Images  

Thread Information

Users Browsing this Thread

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

Posting Permissions

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