Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Updating Registry

  1. #1

    Default Updating Registry

    SB7.2.2903 - I have an install that creates a new registry key, value and
    data value where the data value is
    %_SB_INSTALLDIR%\UPDATE. %_SB_INSTALLDIR% is correct in the 'Install Files'
    section, the 'Create Shortcuts' section but when I get to the 'Edit
    Registry' section, %_SB_INSTALLDIR% suddenly now has a trailing '\' which
    messes the registry value. All of my files are being copied to the right
    folder. The shortcut's start in is correct. My SetupBuilder Edit Registry
    command is attached. Help!

    Dee Witham
    Attached Images Attached Images  

  2. #2

    Default Re: Updating Registry

    Maybe post a shot of what's in your script between the first wizard loop and
    where you're editing the registry?

    I just tried a simple vanilla install (attached), and the correct registry
    key and value seem to be created ??

    Jane
    Attached Images Attached Images  
    Attached Files Attached Files

  3. #3

    Default Re: Updating Registry

    I have attached the script code. Dialog #3 (List Box) does not appear as
    %TTG_FOLDERS% equals a 1. This script was working last week - all I did was
    change a registry key name from PDSMED to PDSMED_BETA. Like I said in first
    post averything is getting copied correctly and built correctly. I even run
    programs after the registry is update using %_SB_INSTALLDIR% and they run.

    Dee

  4. #4

    Default Re: Updating Registry

    Can you save the script as a script rather than as a text file (remove any
    passwords first).
    It's too hard to recreate otherwise.

    Jane

  5. #5

    Default Re: Updating Registry

    Also - is the value being written with incorrect contents or to an incorrect
    key?

    If you display a message box just before writing the registry (as in my
    sample script), is the information correct?

    Jane Fleming

  6. #6

    Default Re: Updating Registry

    I have zipped my entire script but important part after loop wizard and
    before edit registry. Yes, the value being written is correct (never
    changed it) but I did change the key name. Yes, I did display a message box
    right before edit registry and the trailing '\' was there. I displayed a
    message box before create shortcuts and there was no trailing '\'.

    Dee

  7. #7

    Default Re: Updating Registry

    Jane - I put a Handle String Function - RIGHT and then a message box with
    the Destination Variable 1 and it is blank??? See attached screen shots.

    Dee
    Attached Images Attached Images   

  8. #8

    Default Re: Updating Registry

    Dee,
    You need to specify how many characters you want that function to return
    (pic)

    Jane
    Attached Images Attached Images  

  9. #9

    Default Re: Updating Registry

    Oops

    Dee Witham

  10. #10

    Default Re: Updating Registry

    Well, obviously to get the script to compile I had to strip out the files
    and just throw a few things from my machine into your structure.

    But my message box before and after the shortcut creation does not have a
    backslash.
    But I still think I'm not understanding... you wrote "the value being
    written is correct (never changed it"

    Please spell out for an olde blonde exactly the name of the key and the
    expected contents, and then what's actually being written / created instead.

    Also... on a different matter... <<<<----
    You are writing a bunch of Pervasive stuff to the registry.

    I haven't worked with Pervasive... so maybe they have some tricks.
    But normally, such writes will not work.
    I can't create a new folder within HKLM when I use Regedit.
    I can only create one within an existing folder, such as HKLM\SOFTWARE.

    Try putting a message box to return %_SB_ERRORCODE% after one of those
    registry writes you're attempting to HKLM\Pervasive Software. Is it, in
    fact, being written?

    Jane

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
  •