Issue with setting the tag "Bld_localDestDir" in pre-build VI: Project gets saved to previous localDestDir.

Hey All,
I'm writing a pre-build VI that updates the build destination (and other items, but we're ignoring those for now). This pre-build vi, when run, grabs the Destination Directory from the tag "Bld_localDestDir" and modifies the directory by incrementing a version number.
The issue I'm having is that after the pre-build vi is run, the build continues and puts the executable in the *previous* Destination directory instead of the updated one.
Example:
Destination Dir = c:\temp\version1   -->   Choose to build the executable   -->   Pre-build VI runs and sets Destination Dir to c:\temp\version2   -->   Build finishes and says "You can locate the build at C:\temp\version1"   -->   Check the build properties, destination dir is C:\temp\version2   -->   build again   -->   Pre-build runs and updates destination to version3   -->   Build finishes and says "you can locate the build at C:\temp\version2"   -->   check build properties, destination dir is C:\temp\version3
And so on and so forth. As you can see, the tag setting is working (as witnessed by the Build Properties being updated). However, it looks like the destination directory for the build is determined and set *before* the pre-build VI is run. This is, in my opinion, not intended behavior.
Here's a snippet of a watered-down version of the code, which still has the issue. I've also attached the full VI, saved for LV2010.
The attached VI will grab the version number of the build, append it to the startup vi's title bar, update the build destinations with a new path that has the version number, and then save the project.
As a final note, I'd prefer to not use a post-build VI to rename the directory that the build is placed in.
Solved!
Go to Solution.
Attachments:
Pre-Build Action 2010.vi ‏25 KB

> Leah-L Said:
> We were able to replicate your problem here as well. We are also seeing that the destination directory for the build is determined and set *before* the pre-build VI is run. Just so I am aware, have you found any other documentation concerning Pre-Build VI's?
Cool, thanks for confirming that I'm not crazy.   And no, I haven't found any documentation concerning this phenomenon.
> gmart Said:
> it potentially processes the information and so simply updating values may not have the desired effect
Good to know. I think this should be in the documentation somewhere though, perhaps in the detailed help for the Get/Set Tag invoke nodes for a Build Spec reference.
To fix the issue, I've just made my own "Build Executable" vi that sets the tags before the build is started. It uses the same VI that I attached earlier (confirming that the VI works). Instead of starting the build from the project window and having a pre-build vi execute, I run this stand-alone VI and it builds the app.

Similar Messages

  • Having issues with setting the "Active Window"

    Hello List,
    I've got a LV installation that runs three LV created EXE's simultaneously. In the "top level" application, the user enters a product model number (by way of a PS2 barcode scanner) to be tested, and that application looks at our network to see if there is a test recipe for the product. If there is, it hides and moves itself to the bottom and maximizes and moves to the top EXE number two. On EXE number two, the user is supposed to scan the product serial number. But on occasion, EXE number two is not the active window, even though it is the frontmost and maximized, so the scan from the barcode reader doesn't go into the field. (Looking at the Taskbar at the bottom of the screen, the task for the frontmost & maximized EXE is not "depressed")  A simple mouse click anywhere on the window will make it active, but the users don't have a mouse (or keyboard) (I am able to "remote in" from another computer using a product line "PC Anywhere). I have tried using the "mouse_event" from user32.dll in a "Call Library Function Node", but that doesn't seam to work reliably.
    So my first question is, will the "mouse_event" from user32.dll even fire if my computer doesn't have a mouse plugged in?
    And, if not, does anyone have any better ideas?
    Thanks in advance,
    Mike

    wd8ivl wrote:
    So my first question is, will the "mouse_event" from user32.dll even fire if my computer doesn't have a mouse plugged in?
    I'm guessing that it would, because Windows has a cursor even if there's no mouse plugged in, but I haven't tried it.
    As for the second question, you could try what I posted here, although you'll probably want to clean up the code - http://lavag.org/topic/12751-how-do-you-make-your-​application-window-frontmost/?p=76308
    Try to take over the world!

  • Issue with Setting Application Item

    Hi All,
    I have an issue with setting the value of application item G_USER_ID as part of the login process.
    I use customized authentication for login. I have created an application item G_USER_ID, and in my CUSTOM_AUTH procedure, I am setting its value as APEX_UTIL.SET_SESSION_STATE('G_USER_ID', l_user_id);
    For some reason, the value is not set to G_USER_ID the first time I login. When I log out and login again without closing the browser, the value is set. Note that I even tested with a static value instead of l_user_id like APEX_UTIL.SET_SESSION_STATE('G_USER_ID', '5555555'); but still fails to set during the first login.
    I hope someone can guide me as to what I am doing wrong here.
    Thanks!
    JMcG

    What does this do?
    :SVR_FLAG := NVL(l_mult_svr,'N');
    Scott

  • Issue with Removing the Patch Set Software 9.2.0.8

    Hi experts,
    I have issue with removing the patch set software 9.2.0.8
    I'm working on solaris box recently ugraded to 9.2.0.8 from 9.2.0.7. however i want to downgrade now. I have followed the document 4547809 mentioned. Now the real issue is when i restored the oracle_home (9.2.0.7) and execute sqlplus /nolog here is error message shown
    bash-2.05$ sqlplus /nolog
    bash: /oracle/test/920_64/bin/sqlplus: No such file or directory
    bash-2.05$ lsnrctl
    bash: /oracle/test/920_64/bin/lsnrctl: No such file or directory
    Please help
    thanks in advance

    Hi,
    Thanks for reply you are right
    ls -l /oracle/test/920_64/bin/sqlplus was not exist. However i copied everything from the backup.
    I'm trying again
    cp -r bk_test_home/* /oracle/test/920_64/*
    still i couldn't the file however it exist in bk_test_home. please suggest
    Thanks and regards

  • Issue with setting dynamic destinations on (Flex) RemoteObject

    When setting the AMFChannel on a RemoteObject I am seeing the following behavior using builds 3.2.0.3978 and 3.0.1.1755:
    faultCode:Client.Error.DeliveryInDoubt faultString:'error' faultDetail:'Invalid URL url: 'http://mymachine:8080/myService/messagebroker/amf''
    The same client code works without incident running against 3.0.0.544.
           private function invokeGetCompoundName():void
                var remoteObj:RemoteObject = new RemoteObject();
                remoteObj.addEventListener(ResultEvent.RESULT, resultHandler);
                remoteObj.addEventListener(FaultEvent.FAULT, faultHandler);
                remoteObj.destination = "myServiceDestination";
                var channelSet:ChannelSet = new ChannelSet();
                var channel:AMFChannel = new AMFChannel("my-amf", "http://mymachine:8080/myService/messagebroker/amf");
                channel.pollingEnabled = true;
                channel.pollingInterval = 2500;
                channelSet.addChannel(channel);
                remoteObj.channelSet = channelSet;
                remoteObj.getCompoundName();   
    What I've observed is that in the more recent builds the BlazeDS server is outputting header information with mustUnderstand=true versus mustUnderstand=false when using 3.0.0.544.
    (myService does use objects with session scope)
    Version: 3
    (Header #0 name=AppendToGatewayUrl, mustUnderstand=true)
        ";jsessionid=CD046D04F6D5B4D96112319D70A511AE"
      (Message #0 targetURI=/1/onResult, responseURI=)
        (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
          destination = null
          headers = (Object #1)
          correlationId = "588D4A0D-55E3-9EAB-395D-976720ECE4D6"
          messageId = "91A2CA0E-350B-879D-BDD6-AA2B04895C6C"
          timestamp = 1.239490699781E12
          clientId = "91A2C99B-761E-44F7-B8B3-4AA861B3148B"
          timeToLive = 0.0
          body = (Typed Object #2 'com.mypackage.CompoundName')
            objectName = "SomeObject"
            fieldName = "SomeField"
    I would appreciate any insight into this issue.  Might this be a bug, or is there something I'm doing incorrectly but getting away with in 3.0.0.544?
    Is there a way to configure the newer server versions to produce the same header output as before, if that is in fact the issue?
    Thank you,
    David

    > Leah-L Said:
    > We were able to replicate your problem here as well. We are also seeing that the destination directory for the build is determined and set *before* the pre-build VI is run. Just so I am aware, have you found any other documentation concerning Pre-Build VI's?
    Cool, thanks for confirming that I'm not crazy.   And no, I haven't found any documentation concerning this phenomenon.
    > gmart Said:
    > it potentially processes the information and so simply updating values may not have the desired effect
    Good to know. I think this should be in the documentation somewhere though, perhaps in the detailed help for the Get/Set Tag invoke nodes for a Build Spec reference.
    To fix the issue, I've just made my own "Build Executable" vi that sets the tags before the build is started. It uses the same VI that I attached earlier (confirming that the VI works). Instead of starting the build from the project window and having a pre-build vi execute, I run this stand-alone VI and it builds the app.

  • Having an issue with passing the text of a link to a session variable.

    I am having an issue with passing the text from a link to a session variable. I am adding this html as a literal for each item in the list that i have populated with a query.
    List<Literal> lit = new List<Literal>();
    for (int i = 0; i < posts.Count; i+=4)
    Literal someLit = new Literal();
    someLit.Text=
    @"<div class='row'>" +
    "<div class='col-md-12'>" +
    "<div class='panel'>" +
    " <div class='panel-body'>" +
    " <!--/stories-->" +
    " <div class='row'> " +
    " <br>" +
    "<div class='col-md-2 col-sm-3 text-center' id='javascript'> <h3>" +
    " <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>" +
    "</h3>" +
    " </div>" +
    " <div class='col-md-10 col-sm-9'>" +
    "<h3><a href='Thread.aspx' runat='server' onserverclick='MyFuncion_Click'> " + posts[i] + " </a></h3>" +
    " <div class='row'>" +
    " <div class='col-xs-9'> " +
    posts[i + 1] +
    " </div>" +
    "<div class='col-xs-3'></div>" +
    posts[i + 2] +
    " </div>" +
    "<br><br>" +
    " </div>" +
    " </div>" +
    " <!--/stories-->" +
    " </div>" +
    " </div>" +
    " </div><!--/col-12-->" +
    " </div>" +
    "</div>";
    lit.Add(someLit);
    for(int i=0; i<lit.Count; i++)
    this.Controls.Add(lit[i]);
    I use one of the list positions as the text for a link in two different spots. For now, lets only talk about the line:
    <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>
    Since I am generating these controls at pageLoad, I can't make them <asp:Linkbutton>s. And since they are anchor elements, I don't have access to an onCommand attribute or onservercommand attribute.
    All I want to do is access the content from inside the specific link tags that I generate on link click and set it as a session variable. That's what I would like my UserProfile_Click function to do. I cant commandargs it in like i can with a linkbutton's
    OnCommnad attribute, however.
    My fear is that the onserverclick attribute resolves so something else on pageLoad normally and since I am generating it the way I am similar to the way a <asp:linkButton> resolves to a generated JavaScript.
    Any help?

    @Brunellus
    For questions related to ASP.NET use the ASP.NET forum http://forums.asp.net     
    You should get more, better and faster answers on the other forum.  Thanks, ahead of time.
    Best Regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have noticed an issue with utilizing the "stream" function on iOS 7. If you choose to just stream the movie by hitting the play button it seems to actually start downloading (which is fine) but if you are say halfway thru the movie and stop you can clea

    I have noticed an issue with utilizing the “stream” function on iOS 7. If you choose to just stream the movie by hitting the play button it seems to actually start downloading (which is fine) but if you are say halfway thru the movie and stop you can clearly see that storage has been reduced under the usage, yet under the “videos” tab it still states “No Data” the only way to delete what you have partially downloaded is to fully download the video, which is fine but there is no way to tell what videos have been partially downloaded (I.e which occurs a lot when your child switches between movies using the so called “stream” function). This becomes troublesome once the capacity of the ipad is almost met and you have no way to delete this data since you may have several videos that have started to be viewed (hence partially downloaded). Apple needs to somehow make it truly streaming or provide an update so the storage can be managed. The only way I have been able to remove partially downloaded videos is by doing a total software restore. (The video data that is in question when connected to my MacBook shows up in iTunes as “other”) if you have any insight into this issue it would be greatly appreciated. Thanks.

    Here are the screenshots for what it's worth.
    Not sure why I can't post them in the original post.<br>
    <sub><b>Mod edit: See [https://bugzilla.mozilla.org/show_bug.cgi?id=718813 bug 718813]</b></sub>
    '''Again, when I set my DNS server to automatically detect the servers both problems disappear and I have no issues at all.'''
    IMO opendns is either doing this on purpose (unlikely) or they're under some sort of attack/being used to attack the specific torrent sites although I'm open to other explanations. I believe using the automatic setting for DNS is using my own ISP's DNS servers (which again, work fine... but still...)
    I'd rather not use Google's public DNS servers as Google is to commercial these days and I think there's potential privacy issues.
    '''Again I have changed the setting for DNS servers back and forth several times to duplicate/verify the issue(s)... and the issues only happen with the opendns servers.'''

  • Issue with setting ratings and labels

    Greetings all. I am having an issue with setting ratings AND labels on image files at the same time. If the script sets the label first then the rating, the label doesn't show in Bridge. If the script sets the rating first then the label, the rating doesn't show in Bridge.
    Is there a workaround for this? Here is my script function for doing this. file=filename minus extension. Rating is a number for the desired rating. lab is a number for the level of Label I wish to set. Everything works great except that I can't set both Rating and Label with the script as shown. In this instance, only the Ratings will show up in Bridge after running the script. If I move the x.label=Label line under the x.rating=Rating line, then the ratings only show for those images with no label (lab=0). Any image that gets a label receives no rating.
    If you're going to test this, you may want to comment out the Collections part. That's the part within the "switch(Number(Rating))" block.
    function setRating(file,Rating,lab) {
        try{
            cr=File(file+"CR2");
            psd=File(file+"psd");
            jpg=File(file+"jpg");
            tif=File(file+"tif");
            switch(lab) {
                case 0: Label = ""; break;
                case 1: Label = "Select"; break;
                case 2: Label = "Second"; break;
                case 3: Label = "Approved"; break;
            if (cr.created) {
                var c=new Thumbnail(cr);
                c.label=Label;
                c.rating=Rating;
                if (psd.created) {
                    p=new Thumbnail(psd);
                    p.label=Label;
                    p.rating=Rating;
                    if (jpg.created) {
                        var j=new Thumbnail(jpg);
                        j.label=Label;
                        j.rating=Rating;
                        Rating=0;
                    else addFile=psd;
                else addFile=cr;
            switch(Number(Rating)){
                case 0 : break; /* No Rating */
                case 1 : if(!app.isCollectionMember(OneStar,new Thumbnail(addFile))) app.addCollectionMember(OneStar,new Thumbnail(addFile)); break;
                case 2 : if(!app.isCollectionMember(TwoStars,new Thumbnail(addFile))) app.addCollectionMember(TwoStars,new Thumbnail(addFile)); break;
                case 3 : if(!app.isCollectionMember(ThreeStars,new Thumbnail(addFile))) app.addCollectionMember(ThreeStars,new Thumbnail(addFile)); break;
                case 4 : if(!app.isCollectionMember(FourStars,new Thumbnail(addFile))) app.addCollectionMember(FourStars,new Thumbnail(addFile)); break;
                case 5 : if(!app.isCollectionMember(FiveStars,new Thumbnail(addFile))) app.addCollectionMember(FiveStars,new Thumbnail(addFile)); break;
                default : break;
        }catch(e){
              alert(e);
              return -1;

    Afew errors to start with, you were not creating a proper file as there wasn't a fullstop in the filename.
    If a CR2 file didn't exist no other file was looked for, you were using "created" and should have been "exists"
    This now labels and rates....
    setRating("/C/Test Area/NEF/z",2,1);
    function setRating(file,Rating,lab) {
        try{
            cr=File(file+".CR2");
            psd=File(file+".psd");
            jpg=File(file+".jpg");
            tif=File(file+".tif");
            switch(Number(lab)) {
                case 0: Label = ""; break;
                case 1: Label = "Select"; break;
                case 2: Label = "Second"; break;
                case 3: Label = "Approved"; break;
            if (cr.exists) {
                var c=new Thumbnail(cr);
                c.label=Label;
                c.rating=Rating;
                if (psd.exists) {
                    p=new Thumbnail(psd);
                    p.label=Label;
                    p.rating=Rating;
                    if (jpg.exists) {
                        var j=new Thumbnail(jpg);
                        j.label=Label;
                        j.rating=Rating;
                        Rating=0;
            switch(Number(Rating)){
                case 0 : break;
                case 1 : if(!app.isCollectionMember(OneStar,new Thumbnail(addFile))) app.addCollectionMember(OneStar,new Thumbnail(addFile)); break;
                case 2 : if(!app.isCollectionMember(TwoStars,new Thumbnail(addFile))) app.addCollectionMember(TwoStars,new Thumbnail(addFile)); break;
                case 3 : if(!app.isCollectionMember(ThreeStars,new Thumbnail(addFile))) app.addCollectionMember(ThreeStars,new Thumbnail(addFile)); break;
                case 4 : if(!app.isCollectionMember(FourStars,new Thumbnail(addFile))) app.addCollectionMember(FourStars,new Thumbnail(addFile)); break;
                case 5 : if(!app.isCollectionMember(FiveStars,new Thumbnail(addFile))) app.addCollectionMember(FiveStars,new Thumbnail(addFile)); break;
                default : break;
        }catch(e){
              alert(e);
              return -1;

  • Issue with setting Planning Data Source

    I keep getting error when I try to set up the data source
    the Oracle database  = orcl
    The data base schema EPMAPLAN
    Password = EPMAPLAN
    when i log on i  to Oracle Database
    Sys as SYSDBA
    Password = Password01
    so what what should be the Database Source Name  = ORCL Correct ????
    Server = win-392h1l307n1 or localhost
    Databse = ORCL
    User Name  = ????????????
    Password  = ?????????
    I try all the  combinations
    Please advise

    Duplicate post - Issue with setting up planning data source
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Issues with using the output redirection character with newer NXOS versions?

    Has anyone seen any issues with using the output redirection character with newer NXOS versions?
    Am receiving "Error 0x40870004 while copying."
    Simply copying a file from bootflash to tftp is ok.
    This occurs for both 3CDaemon and Tftpd32 softwares.
    Have tried it on multiple switches - same issue.
    Any known bugs?
    thanks!
    The following is an example of bad (NXOS4.1.1b) and good (SANOS3.2.1a)
    MDS2# sho ver | inc system
      system:    version 4.1(1b)
      system image file is:    bootflash:///m9200-s2ek9-mz.4.1.1b.bin
      system compile time:     10/7/2008 13:00:00 [10/11/2008 09:52:55]
    MDS2# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    TFTP put operation failed:Access violation
    Error 0x40870004 while copying tftp://10.73.54.194/
    MDS2# copy bootflash:cpu_logfile tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    |
    TFTP put operation was successful
    MDS2#
    ck-ci9216-001# sho ver | inc system
      system:    version 3.2(1a)
      system image file is:    bootflash:/m9200-ek9-mz.3.2.1a.bin
      system compile time:     9/25/2007 18:00:00 [10/06/2007 06:46:51]
    ck-ci9216-001# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    |
    TFTP put operation was successful

    Please check with new version of TFTPD 32 server. The error may be due to older version of TFPT server, the new version available solved this error. Files are getting uploaded with no issues.
    1. Download tftpd32b.zip from:
    http://tftpd32.jounin.net/tftpd32_download.html
    2. Copy the tftpd32b.zip file into an empty directory and extract it.
    3. Copy the file you want to transver into the directory containing tftpd32.exe.
    4. Run tftpd32.exe from that directory. The "Base Directory" field should show the path to the directory containing the file you want to transfer.
    At this point, the tftpserver is ready to begin serving files. As devices request files, the main tftpd32 window will log the requests.
    Best Regards...

  • Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

    Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

    Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

  • I have bought a used macbook, to bad i do not have the admin password. is there any way to bypass this issue with out the Mac OS X disk? (without loosing my obtained files?)

    i have bought a used macbook, to bad i do not have the admin password. is there any way to bypass this issue with out the Mac OS X disk? (without loosing my obtained files?)   I NEED HELP BADLY PLEASE....

    What version of the Mac OS X are you running. Go to the Apple in the upper left corner and select About This Mac and post the version.

  • I am having issues with adjusting the duration of time for each still frame and transition in imovie 11.  Each time that I adjust these times, the app does not accept the change, and automatically enters its own time. Am I doing something wrong?

    I am having issues with adjusting the duration of time for each still frame and transition in imovie 11.  Each time that I adjust these times, the application does not accept the change, and instead automatically enters its own time. Is there a work around this? Or am I doing something wrong? Please Help!
    Thank you,
    lagrl

    Have you tried turning off automatic transitions ? Choose file - project properties and follow the dialogue box to change duration with a slider.  iMovie also doesn't allow a transition to be more than 50% duration of the clip its attached to. In other words if the clip is 4 seconds the transition cannot be more than 2 seconds and remember that relates to the first clip as the following clip (right side) is pulled back to overlay it.
    Does this help.  Perhaps you already know this ?

  • I use an older Macbook Pro  from 2007 with OS X 10.7 – had issues with Mavericks, so I uninstalled it. I want to get a trial version of AE CS6 but I need to know the specs for it.

    I use an older Macbook Pro  from 2007 with OS X 10.7 – had issues with Mavericks, so I uninstalled it. I want to get a trial version of AE CS6 but I need to know the specs for it.

    System requirements | After Effects

  • Has anyone else had issues with dropping the wifi connections since upgrading to Yosemite

    has anyone else had issues with dropping the wifi connections since upgrading to Yosemite

    Looking at the Yosemite forum, it is obvious that this is a very common issue.  You might want to post in that forum for help and advice.
    OS X Yosemite

Maybe you are looking for