-
1 Attachment(s)
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
-
2 Attachment(s)
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
-
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
-
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
-
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
-
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
-
2 Attachment(s)
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
-
1 Attachment(s)
Re: Updating Registry
Dee,
You need to specify how many characters you want that function to return
(pic)
Jane
-
Re: Updating Registry
-
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