Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-20-2005, 07:23 AM
u-winkelmann u-winkelmann is online now
Registered User
 
Join Date: 10-20-2005
Location: Germany
Posts: 5
Exclamation Version 6: User Actions imported from 5.7 not working in existing .bld scripts

I just installed Visual Build Pro 6 to check if its compatible with the 5.7 Version we're currently using. However it seems that the user actions are not working for existing builds anymore. It seems from looking at the source of the sample action that the "Name"-Attribute in the <action>-Tag was removed. However the name-tag was used in the Visual Build 5.7 .bld-Files to identify the action. In Visual Build 6 it seems the filename is used to identify the action, and thus if those two differ the action is not found. Since we're using a lot of custom actions, this is very annoying.
Is there a way to circumvent this problem, without having to rename all custom actions?

Cheers

Ulf
Reply With Quote
  #2  
Old 10-20-2005, 12:03 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,013
That was an intentional change; we were hoping nobody was actually using a name differing from the filename :^). And we neglected to mention this compatibility issue in the upgrade help topic. In prior versions, the .action filename (without extension) was used for the action name by default, but this could be overridden by adding a Name attribute to the action element of the .action file. In version 6, the Name attribute is ignored and the filename is always used for the action name.

Attached is a project you can use to convert existing projects for actions that have a Name attribute which differs from the filename. This project will process all .action files in the path where it is saved to identify actions whose Name does not match its filename. Then it will update all .bld files in the same directory from the old to the new action name. To process .action and/or .bld files elsewhere, change the %PROJDIR% value in the 'Process .action files' and 'Process .bld files' steps (and check the recurse flag to process subdirectories).

Hopefully this will be an adequate workaround, as it would be difficult to put that logic back in (significant functionality, such as changes to how actions can be registered/located and the GUI action designer, has been added since the change which depend on the new behavior).
Attached Files
File Type: bld convertactions.bld (5.0 KB, 907 views)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:32 PM.


Copyright © 1999-2023 Kinook Software, Inc.