LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Uninstall leaves folders and files

I'm developing in LabWindows/CVI 2013. On Windows 7.

I build a distribution and install the application.
My CVI application generates a few files while it runs.


For example SavePanelState (panPrgOps, "panelstates.bin", PAN_ST_INDEX_PROGRAM_OPTIONS);
This creates the panelstates.bin file.

 

When I uninstall the program it leaves a folder:
C:\Program Files (x86)\MyApplication

In this folder is the panelstates.bin file.

 

Is there any way to configure the build-distribution settings to force the uninstall to completely remove the C:\Program Files (x86)\MyApplication folder?

 

Thanks,
Kirk

 

0 Kudos
Message 1 of 3
(3,907 Views)

So, from my understanding of uninstallers, there is an install log which documents all the files that was installed.  When the uninstaller runs, it removes all of these files and then deletes the folder.  However, in this case, it does not remove the bin file and so does not remove it, and then when it checks the folder it sees there is a file still located in it so it does not remove the folder.

 

I was unable to locate a way to change this in the LabWindows/CVI distribution.  An option might be to include the bin file in the installer.  However, I'm not sure exactly what this bin file does and if this would cause any future issues.  Another option would create a bat file that is distributed with the uninstaller that uninstalls the program and then deletes the folder.

Jesse S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,803 Views)

Another alternative is to install a single script file (.bat, .exe, etc...) which you can run during uninstallation. Your script file could then ensure that all the files that you create at run-time are explicitly deleted.

 

To do this, first make sure that your script file is installed, by including it in the bottom right pane of the Files tab. Then, right-click on this file, select Options, and then select the "Launch during Uninstallation" check box:

 

uninstall.png

Message 3 of 3
(3,712 Views)