PDA

View Full Version : Script editor delete problem 6.9.2309



NewsArchive
09-13-2008, 08:37 AM
Friedrich

I was building a sb6 project to gather some C6 development files together.

I started in the visualizer and then went to the script editor.

In there was a bunch of " :: Create Folder " ... commands, and a bunch of "Install
File " commands

I added an Install files command that uses a wildcard, and I commented out all the ::
Create Folder" commands and all the "Install file" commands generated within the
visualizer.

Next, I wanted to get rid of the commented lines, so I selected the 1st of the ::
Create lines , shift-key and selected the last of the :: Create lines and then hit
the Delete button at the bottom left of window.

Poof! All my ":: Create" lines were deleted as expected, as were all my "Install
File" lines, which was not expected.

Thinking I may have also highlighted the "Instal File" lines in error, I tested again
but each time they were all deleted even when not selected!

Do you need the script?

John Griffiths.

NewsArchive
09-13-2008, 08:38 AM
John,

I don't need the script because this is expected.

If you have created a folder in the Visualizer and you add files (and
sub-folders) to that folder, then (of course) all files (and sub-folders)
are removed if you delete that parent folder ;-)

The same is true for Features. If you create a Feature and add folders and
files, then all folders and files are removed if you delete the Feature.

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-15-2008, 01:50 AM
OK, but I was P*ssed when working in the script editor and it also deleted the
commands I had manually entered in the script.

JohnG

NewsArchive
09-15-2008, 01:51 AM
> OK, but I was P*ssed when working in the script editor and it also
> deleted the commands I had manually entered in the script.

I don't know what you mean, sorry. This can only happen if you add files
(and folders) that refer to a ::Create Folder or ::Define Feature. You see
those files and folders (added in the Script Editor) in the Visualizer.

What you have to do is, add the "Install File(s)..." command and then (in
the "Location") select "Insert Variable" instead of "Browse for Folder".
Browse for Folder makes use of the folders/features defined in the
Visualizer.

Hope this helps.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-16-2008, 01:46 AM
Hi Friedrich

Ah. I was using a copy of one of the Visualizer ""install File" comamnds, and had not
changed the variable to one of my own. Using my own %JG_INSTALLDIR% var fixes teh
problem :-)

Thanks.

JohnG