Launch program before distribution kit installation

When creating a distribution kit, there is an option to launch an application
after installation.
I would like to launch an application BEFORE installation.
Is this possible with the installer?
Specifically, I would like to run a program to save the configuration
files from the previous installation (which may have been modified
by the user) before allowing the installation of the new software to proceed.
Thanks in advance,
     Marty O.
Solved!
Go to Solution.

Marty,
I'm not sure you applied exactly what Mert described.
You shouldn't have put a file into the distribution kit.
That file, I guess, is what you referred as "old config file" in your message. That file, being a part of the installation, is subject to removal by the uninstaller. This is expected behavior.
Instead, you should be creating the file in your executable (using a function like fopen, OpenFile, etc.) upon its first run on that computer.
Of course you need to check first if the file exists.
Hope this helps, 
Message Edited by ebalci on 18-01-2010 08:45 AM
S. Eren BALCI
www.aselsan.com.tr

Similar Messages

  • Hello, I have created a distribution kit for my program.The problem is that the when the program is installed onto another computer, it fails to communicate with field point (Using FP-AO-200 and FP-AO-1000). Help is greatly appreciated, Thanks faen9901

    Hi Everyone,
    I have a program that sends information(analog output) to lab windows cvi in the form of a text file or user input.
    The program runs on the computers that I have the field point explorer and lab windows cvi installed on. In order to run the program without always installing labwindows/cvi and field point; I wanted to create an executable file that could be load on another computer.
    I used the create distribution kit part of labwindows/cvi to do this.After creating the distribution kit, I then installed it
    to another computer.
    My user interface appears on the screen, when the user clicks on the exe. file, but no data is sent to the field point module. I know that the data is being read from the user and textfile because in it appears in the uir.
    The following are some details about the problem:
    1. On another computer without labwindows/cvi and field point explorer not installed - no data is sent to field point module
    I know this because a current is being read on the current meter connected to field point module.
    My questions are the following:
    1. What are the possible reasons for the data not being sent to the field point module?
    2. Do I still need to create an iak. (Installing Field point Explorer) file stored on any new computer that I install my created distribution kit file too?
    Thankyou very much for any help that you can provide. I greatly appreciate it.
    Faen9901

    Re: Hello, I have created a distribution kit for my program.The problem is that the when the program is installed onto another computer, it fails to communicate with field point (Using FP-AO-200 and FP-AO-1000). Help is greatly appreciated, Thanks faen9901Faen9901,
    1) If you do not install FieldPoint Explorer, the FieldPoint Server is not installed so there is nothing on the target computer that knows how to talk to the FieldPoint system.
    2) Yes, you need an IAK file on the target computer. Assuming the settings (i.e. com port#) are identical you can simply include the iak file as part of the distribution.
    3) You also need to include as part of your installer the file "fplwmgr.dll". If this file is not installed, your program will not be able to access the FieldPoint Server. Alternatively, this file is installed automatically if FieldPoint Explorer detects LabWindows/CVI or Measurement Studio Development versions on the target computer or if you choose to do a custom FieldPoint Explorer installation and
    choose to provide LabWindows/CVI support.
    Regards,
    Aaron

  • CVI 2009 Very slow installation of distribution kits

    I'm having an issue with distribution kits built with CVI 2009 taking a long time to install on some PCs.  In the installer, the progress bars will both be completely full, with the top one displaying "Overall Progress" "Currently Installing [application name].  Part 1 of 1."  The bottom bar displays nothing.  During this time, there is usually a few instances of msiexec.exe sucking up considerable CPU time according to Task Manager, and the disk does not appear busy.  If I wait several minutes (sometimes 10 minutes or more), it will eventually move on, with the next step displaying "Validating Install..." on the bottom progress bar.  This only happens on some PCs, other ones install in a reasonable amount of time (less than a minute).  Once the installation is complete, everything appears to have worked and the installed software runs fine.  The only pattern I've noticed that the PCs that show this problem tend to be older models.  One is a P4 3.2Ghz desktop with 1.5GB of ram, and the other is a Core Duo (not sure about speed at the moment) Dell laptop with 2GB of ram.  Both are running Windows XP SP3.  
    Any insight into this would be appreciated, as some of the PCs that show this are ones used for testing software packages and often having things installed onto them.  Thanks.

    Hi tstanley,
    I was wondering what you were running distribution kits from - hard drive, CD, network or USB stick?
    Charlie Rodway
    Test Design Engineer
    Rolls-Royce Controls and Data Services Ltd

  • Error During Installation of a Distribution Kit

    While the distribution kit that I have developed will install successfully on Win XP machines,  the kit installer produces the same error message on Win 7-32x machines.  The installer 's error message, occuring the beginning of the load process, is that it "cannot find the file specified", yet it does not display the file's name - space is blank.   Furthemore, as I attempt to install older version distribution kits that were formerly successful, I get the same installation error message on  WIn 7 machines.   I would appreciate any clues.  Are there any event logs that are produced during kit installation that will help identifiy this missing specified file?
    The distribution kit was generated with CVI 2009 using a Win 7 -32 bit machine.
    Thanks,

    Adding more mystery to the distribution kit error discussed above.  I have found that the kit installs successfully on Win 7 x64 machines as well as WinXp x32  machines.  However, the installation error message still exists on Win 7 x32 machines.  On one of these Win 7 x32 machines the error message infers that there is a .dll file  that cannot be found, with no mention or hint as to the file's name.   Again, any tips would be appreciated.

  • Distribution Kit and Installation Question

    I have an app that I built with LabWindows/CVI 2009.  I also built a distribution kit for it.
    How can I indicate in my distribution kit that I want to be able to install the same version or an earlier version over an existing version?  My customers in the field may need to "repair" a corrupt file by reinstalling a version "over itself".
    Thank you.

    I would not recommend the "side-by-side" option in this case. 
    I think that the simplest solution is to tell them to uninstall and then reinstall in the rare cases where a corrupt file needs to be fixed, but that is probably how the issue is addressed now.
    Based on my experiences here  (last half of that thread was hijacked for a separate topic) I doubt you will be able to change a setting to do a "repair" installation, but NI staff should be able to provide a solid answer.
    --Ian

  • Upgrade to Acrobat Pro XI on Window 8.1 downloads, installs and configures. Then pressing the launch button in the dialog box doesn't launch program.

    Upgrade to Acrobat Pro XI on Window 8.1 downloads, installs and configures. Then pressing the launch button in the dialog box doesn't launch program.

    Using the start button, Acrobat Pro should appear. But it might not, being Windows 8. Maybe it puts an icon on your desktop, maybe not.
    How about checking c:\program files (X86)\adobe\acrobat 11.0\acrobat. If you have this folder, look for Acrobat.exe.

  • How do I create CVI 2010 distribution kits silent installation

    I need to build CVI/Labwindows distribution kits that will install silently.  Options that would be helpful would be things line 'run silent', 'create log file', 'redirect destination target',  etc.   Is this possible?

    This KB article is targeted toward installers for NI products, but also applies to distributions built with NI Development Environments.
    http://digital.ni.com/public.nsf/allkb/878FC4C374013ADF8625733D00688F67?OpenDocument
    Also try running setup.exe /h for more help.
    National Instruments
    Product Support Engineer

  • Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • The Distribution Kit Builder is Looking for the NI Variable Engine in an old distribution, cant find it and fails to build

     I am unable to build a distribution kit because the builder appears to have saved a path to the NI Variable Engine which is not valid.  I appear to have the NI Variable Engine installed.   There are NI Variable Engine 2.5.0 .xml files loaded in on my computer (See attached for listing of drivers loaded).  I do not seem to be able to break CVI's Link to my past installers for getting drivers.  I've tried creating a new installer but had the same trouble. 
    I am running a 64 bit Laptop with Windows 7, building a 32 bit application, running CVI 2010.
    Solved!
    Go to Solution.
    Attachments:
    ATAHM Outline.ppt ‏61 KB

    The default path is the path to whatever distribution installed NI Variable Engine on your machine. For example, if it was installed from a Driver Disk, the path would probably be D:\. However, from the images you originally posted, I can see that you were being prompted to provide the path to one of your earlier ATAHM distributions. It was looking for it at this path:
    c:\Users\chill\Documents\Development\AATAS\ATAHM\distributions_ATAHM\ATAHM Oct 24 2011\
    Do you still have that distribution? If you can point it to that distribuiton, you should be good.
    Now back to the error you were seeing... Your version of that .NET manifest file matches (except for the version number) Revision A from the Knowledge Base, so you should try replacing it with Revision B (and rename it to NI .NET Framework 2.0 Language Pack x86 Installer {F8ECD2D6-659C-49EB-8454-5F8F7B526FCF}.xml). Make sure you restart CVI after swapping the file. I would expect that to solve your problem. If it doesn't, you'll have to let me know what the new issue is, or if you're somehow still seeing the same error message.
    Mert A.
    National Instruments

  • Launch programs with User defined Keys?

    Im using 10.6.4 on a Macbook Pro and on the 1 screen im using 3 different programs at once (2 music programs and Parallels / Windows Program)
    Is there a quick way to flip between the 3 very quickly as I like to view all 3 very quickly and chop and change between them on the Macbook Pro screen
    I use Apple + Tab but this gets tedious trying to flip around between them going left and right
    Does 10.6.4 allow you to user define keys to certain programs so you can launch and they become active?
    ie: F1 - launch program 1, F2 - Launch Program 2 etc
    So 1 button push makes a certain program active?
    I was used to Windows, whereby everything stayed in a dock at the bottom and you could just launch any program at any time
    I love Mac OS X but the only way I can find is either the Apple+Tab which gets tedious, or a Hot corner which i have set up and "spreads out" the programs : then again with hot corners your still having to chase around all your open windows!
    Is there a quick easy solution for having up to 3 programs at once and instant access that I don't know about? With audio editing, i chop and change edits to see how they fit between programs so this would be invaluable
    I'm pretty sure OSX would have something under the bonnet to do this?
    Thanks

    pitchfork wrote:
    I was used to Windows, whereby everything stayed in a dock at the bottom and you could just launch any program at any time
    Hi,
    Um, so far as I'm aware this is the same behaviour in OS X. Launched programs that are not added to the Dock are appended to the right of the Dock, but applications in the dock do not move randomly - unless you count the fact that the Dock expands to include newly-added or -launched applications. To achieve what I think you're referring to, simply add the applications you use frequently to the Dock permanently, and use the same behaviour you were accustomed to in Windows to switch applications.
    However, if you want to create a simple keystroke to switch to another application (whether open already or not), then try creating a new Automator Service to activate a given application, and assigning a keystroke to it. I've never actually created a working Automator action before, but I believe the following should work:
    1) Launch Automator
    2) Select "Library" in the left-hand column, and type "Applescript" in the search box.
    3) There will be only one result, "Run Applescript." Drag this into the right-hand column.
    4) Copy and paste the following script to replace the words "(* Your script goes here *)":
    tell application "Amadeus Pro"
    activate # switch to your application, launch if necessary
    end tell
    5) Replace "Amadeus Pro" with the name of the application you want to switch to. KEEP the inverted commas.
    6) Make sure the drop-down menu in the top-right is set to "any application."
    7) Choose "Save" from the File menu, and assign an appropriate name; this is how your Service will appear in the Services menu. You can now close Automator.
    8) Finally, assign a shortcut in System Preferences » Keyboard » Keyboard Shortcuts » Services.
    Give that a shot and see whether you're happy with it. Rinse and repeat with the names of the other applications if satisfied
    Hope that helps,
    S.

  • Desktop Icon does not launch program on Mac after download

    Purchased from Adobe via internet.  Akamai interface downloaded and then Photoshop Elements 11.  Both icons on Mac desktop.  Double clicking on PE 11 does not launch program.  Is it fully downloaded?  I get Read Me file in four languages as well as a PE 11 icon after double clicking the desktop icon.
    Thanks

    Thank you.  The download directions did not include the part about double clicking the desktop Elements icon, double clicking the elements icon within the box that opened and then clicking on "install."  Okay, so i am not computer savvy, but the directions gave the impression that the download was complete after following the supplied instructions.  Who knew?  I did not want to duplicate a download, so was apprehensive to take this action.  Did it anyway out of frustration and it worked.  Obviously, the application was not entirely downloaded.   Now, i get to learn a whole new application as IPhoto bites!  I spent hours and hours, days upon days scanning and editing old family photos in IPhoto only to learn that the program re-sorted my photo order when i tried to make copies for family.  I lost my edits, lost my photo notes and had to retrieve my entire library before presenting several hundred multi generational family photos to everyone in my extended family!  Hopefully, this application will be an improvement!
    Thanks again for taking the time to respond!

  • Distribution kit licenses

    Today I created my first CVI2013 distribution and was surprised with the large number of License Agreement files found in the folder Volume\license.
    First, I feel that there are too many files... Why do I need to redistribute all these license files to a user of my software? The user is not going to use the C compiler, so why is there a strod license, or a LibPNG license, etc. etc.?
    Second, I am confused by the content of the file NI Released License Agreement which says: In consideration of, and conditioned upon, your payment of the applicable fees to NI, NI hereby grants you a limited, non-exclusive right to use ...
    Note that this file is in the distribution folder of my software... I could understand that this license is meant for me, as a user of CVI, but why should a user of my little program care about payments of fees to NI?
    Asking for a explanations... thanks!
    Solved!
    Go to Solution.

    RomBe wrote:
    The automated output of these files is there to help you fulfill the license requirements of potentially used components.
    CVI copies all the files that you potentially might need, so the files you find are pretty general.
    So, in other words, it helps you to comply to license requirements. If you are sure that certain licenses do not apply or you want to distribute under your own license you may change the licensing structure under your own responsibility and in compliance with the NI EULA. 
    Hello Roman,
    yes, it was my impression that CVI copies all files....
    So let me rephrase the issue:
    How can I setup my distribution kit to distribute only the files I need to distribute with my 'Authorized Application'? My idea of an automated generation of a distribution kit is not having to go through the distribution and manually delete some 15 files on an educated guess... Most users including me are not lawyers...
    What license files am I required to distribute with my software for the above displayed components, i.e. CVIRTE and AAL? According to this list no license is needed... so why should I distribute e.g the file NI Released License Agreement in eight languages that will only confuse users of my software because they have no idea about NI-VLM, scripting, academic / enterprise licenses etc.?
    Thanks!

  • Distribution kit run time engine

    Hi is it possible to create a distribution kit with a higher version RunTimeEngine than the one being used to create it? I would like to include cvi2009 rte with my distribution kit built using labwindows cvi 9.0..
    Thanks!!

    I'm not sure if the runtime engine installer by itself will install the merge modules.  You can install CVI 2009's evaluation version, which will install the merge modules, but I don't know if that will work correctly in terms of creating a functional distribution from CVI 9.0.  Perhaps someone from NI can comment?

  • Is there a way to not include the 64-bit NI drivers in the distribution kit?

    Hi,
    I have an application I distribute that depends on a third party 32-bit only drivers.  Or in other words, the application is not going to be installed on a 64-bit system.  Is there a way, when including the NI drivers in the distribution kit, to only include the 32-bit versions of the drivers?  Doing so should reduce the overly bloated size of the installer by eliminating a large number of files that are not going to be needed.  I'm running CVI 2010.
    Thanks.

    Hi tstanley,
    I've checked into this and I'm afraid that the when you build a distribution, you can only choose different parts of the driver that are installed, not whether 32 or 64 bit driver versions are installed.  For example, the entire NI-DAQmx driver is composed from NI-DAQmx Application Development Support 9.2.3, NI-DAQmx Core Runtime 9.2.3, and NI-DAQmx MAX Configuration Support 9.2.3.  If you are using the NI-DAQmx driver to talk to your hardware, you must include the NI-DAQmx Core Runtime 9.2.3, but the other two parts are optional (as you may not need to use MAX for your application or some of the LabVIEW VIs in the Application Development Support).  You can choose each of these parts of the driver in the Drivers & Components tab of the Edit Installer window.
    Regards,
    Shawn S. | NIC
    Instrument Driver/IVI PSE
    National Instruments

  • Error Building LW 2010 Distribution Kit

    I get the following error when trying to build my distribution kit on a factory test set PC.  The same kit will build on my work laptop.
    I have found various posts of similar problems building distributions with LW, LV, Test Stand, etc. but none are exactly like this and none of the other solutions has worked.
    Ray

    Hi rayt52,
    Looking at a similar report of this error, found here
    http://digital.ni.com/public.nsf/allkb/460D3470477CD3A486256D7100744A4B?OpenDocument
    I am wondering if there is a difference in software installed on your machine from your laptop to your test machine. Specifically it looks like the NI Security Update has not been included. There were a couple of knowledgebase articles specific to this particular update indicating its importance, especially for pre CVI 2010 SP1 runtimes.
    I am guessing this update is missing on your factory test machine. You can find more information on the mentioned update with these two articles:
    http://digital.ni.com/public.nsf/allkb/E42DE5929616F5A08625792100766272?OpenDocument
    http://digital.ni.com/public.nsf/allkb/C8EFBD23AFEA96F9862579210077D784
    Hopefully that may help get things moving along for you
    Regards,
    James W.
    Applications Engineer
    National Instruments

Maybe you are looking for