LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application Builder: autorun an executable from the Install CD after installation is complete.

I want to built an application installer (using Application Builder) that, after installation is complete, lunch an executable file from the same directory of setup.exe (or its subdirectory).
With Application Builder (Installer Settings Tab->Advanced) I can only lunch exe files located in the installation directory of the application. So, I can make a VI that lunch my file (using "System Exec.vi") and place it in the installation directory, but to lunch the file I need its complete path and I don't find a way to get the CDRom drive letter (that depend from the machine configuration) where the exe file and setup.exe are located.

What can I do?
0 Kudos
Message 1 of 2
(2,724 Views)
If the computer has a single CD rom, you can use windows API "GetDriveTypeA" to obtain the drive type. If it is the CDROM, and you know the folder structure on the CD, it is easy to launch an appllication.

If there are multiple CD roms on a single computer, you might need to search for the files.

If the executable is small, why not just included it in your labview installer?

Joe
0 Kudos
Message 2 of 2
(2,724 Views)