machyaer Posted February 24, 2007 Author Report Share Posted February 24, 2007 Hello to everybody. I use LV8.2. My problem is that once I created an installer and copied it to a CD I need that at the end of the installation the system launch another file (executable that I've added during the creation of the installer). This executable (created wih LV) must copy a file from the CD to the installation directory. Someone knows how to determine the CD drive letter? Or someone knows how and if it's possible to know the path from which I'm installing and the one in which I'm putting the files? Best wishes Max Quote Link to comment
machyaer Posted February 24, 2007 Report Share Posted February 24, 2007 Hello to everybody. I use LV8.2. My problem is that once I created an installer and copied it to a CD I need that at the end of the installation the system launch another file (executable that I've added during the creation of the installer). This executable (created wih LV) must copy a file from the CD to the installation directory. Someone knows how to determine the CD drive letter? Or someone knows how and if it's possible to know the path from which I'm installing and the one in which I'm putting the files? Best wishes Quote Link to comment
Chris Davis Posted February 24, 2007 Report Share Posted February 24, 2007 QUOTE Or someone knows how and if it's possible to know the path from which I'm installing and the one in which I'm putting the files? Try looking in the file io pallette for a Current VI's path primitive. This will give you an absolute path to the VI that is running, which will hold the drive letter from which you are installing. As for which path you are installing to, you could pass that as a command line argument to your labview program from your installer program. P.S. Don't double post, its bad form. Quote Link to comment
kennoncotton Posted February 27, 2007 Report Share Posted February 27, 2007 QUOTE(machyaer @ Feb 23 2007, 05:23 AM) Or someone knows how and if it's possible to know the path from which I'm installing and the one in which I'm putting the files? Max, There are a couple of command line arguements that you can pass, INSTALLDIR and DISTROOT, in the Run executable after installation portion of the Installer Properties that will give you the information you are looking for. Here is a link to the help topic for that dialog: http://zone.ni.com/reference/en-XX/help/371361B-01/lvdialog/adv_installer_settings_db/' target="_blank">http://zone.ni.com/reference/en-XX/help/37...er_settings_db/ Kennon Quote Link to comment
machyaer Posted February 28, 2007 Author Report Share Posted February 28, 2007 QUOTE(chrisdavis @ Feb 23 2007, 01:34 PM) Try looking in the file io pallette for a Current VI's path primitive. This will give you an absolute path to the VI that is running, which will hold the drive letter from which you are installing. As for which path you are installing to, you could pass that as a command line argument to your labview program from your installer program.P.S. Don't double post, its bad form. Sorry for the double post, my fault. For the VI path primitive the problem is that the executable that is running at the moment in which I would like to know the path is the installer, and I can't modify its behaviour (I suppose). I can use this to know the path in which I'm installing to. Max QUOTE(kennoncotton @ Feb 26 2007, 05:31 PM) Max, There are a couple of command line arguements that you can pass, INSTALLDIR and DISTROOT, in the Run executable after installation portion of the Installer Properties that will give you the information you are looking for. Here is a link to the help topic for that dialog: http://zone.ni.com/reference/en-XX/help/37...er_settings_db/ Kennon Thanks, I will try. Max Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.