LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Distribution Kit error for Program Files directory

I have created an install setup for my program with CVI 6.0 Distribution Kit. When I installed my program, the setup created the folder E:\ProgramFilesFolder\ instead of using D:\Program Files which already exists. The behavior is the same when creating a shortcut on the desktop. How can I install my program in the correct directory ?

Several things I have done with no success :
1 - Copy my project to 😧 and rebuild distribution kit
2 - Check Windows registry for ProgramFilesDir

Thanks in advance.

Bertrand
0 Kudos
Message 1 of 2
(2,463 Views)
Hello

This is probably happening because CVI uses the default MSI ( Microsoft Installer) logic, which is to select the root drive as the drive with the most space. Im assuming in your case you have multiple drives and that E: probably has more space. You can work around this by forcing the install to the correct folder by using the msi command line parameters, as follows

setup.exe INSTALLDIR=C:\MyDir\foo

Let me know if I missed anything.

Bilal Durrani
NI
Bilal Durrani
NI
Message 2 of 2
(2,463 Views)