LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

save as project deletes distribution folders

When I create a new version of my app, and try to install it on a machine that has an old version, the installer says that it is trying to install the old version again and that it needs to uninstall the old version before it can install. Tech support said that this can only be circumvented by using "save as" to create a new project name, as this is used to create the GUID used by the installer. The only problem is that when I do this, any folders that are included in the distribution kit (and do not have direct use by the project) are removed from the distribution folder list. For example, if I create a new distribution folder called "dll" with a .dll file from windows\system, and "save as" a new project, the "dll" folder is g
one.
0 Kudos
Message 1 of 3
(2,969 Views)
Greetings,

There might be another workaround, though you have to do a manual edit of your project file. Try the following:

1. In LabWindows/CVI, exit out of the project in question.
2. In a text editor (like Windows notepad), open up the .PRJ file for your project.
3. In this file, find a key named "Distribution Kit GUID".
4. On this key, delete all of the text on the line after the "=" sign.
5. Reopen your project in CVI, and rebuild your distribution kit. Windows will now think that your installer is "new".

Be aware that this workaround, as well as the one mentioned by tech supoort - has the side effect that the old project still stays installed, so you will have two entries in your Windows Add/Remove control panel. Running uninstall on either entry from A
dd/Remove will uninstall all of the files.

Best Regards,
- WesW / NI
0 Kudos
Message 2 of 3
(2,969 Views)
I am using another workaround, suggested by tech support. Copy the project file using windows. Rename the copied file. Edit the project file and change the line that has the path to the project file. This seems to work, but I still think that this is a bug in CVI that should be addressed by NI.
0 Kudos
Message 3 of 3
(2,969 Views)