LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installer add/remove program

Hi,

 

Previously I had build a installer, called it version 1.0. It will include many folders & files use by the program in the C drive.

 

But recently I have build another installer version 2.0, which is meant for the upgrade from the previous installer.

 

The new installer works great, it overwritten & include the folders that were not existed in the previous installer. Files were still intact.

 

However, when I uninstalled the program from add/remove program, I still see the folders in C drive. It did not remove the entired folder.

 

How to completely remove the entired folder when I uninstall the program?

0 Kudos
Message 1 of 7
(2,820 Views)

I've seen this issue for most applications. Most of these were NOT written in LV. So it seems to be an issue from MSI (Microsoft Installer).

 

My assumption is that folders are not deleted if files in these folders (including subfolders!) are created by the application which are not part of the initial installation.

A good guess might be a missing <EXE-name>.ini file in the installer which is then created by the LV RTE once you start the EXE for the first time.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 7
(2,796 Views)

Hi,

 

yes it is true that files generated by application are not removed after uninstallation.

 

After I installed, the folders were created. Then I uninstalled it without running the application. All the folders were completely removed.

 

How to overcome this?

0 Kudos
Message 3 of 7
(2,782 Views)

Sorry, i am no MSI expert so i don't know if there is a 'solution' at all....

 

That being said, the best way would be to have the application stick to files/folders it initially gets by the installer. This will ensure deletion of folders at least in the <program files> directory.

 

What about "dynamic" files/folders?

Please follow Microsofts recommendation to create these items in the <user> folder instead of <program files>.....

 

Maybe someone here has knowledge about MSI and can tell you how to modify "uninstall" to even delete "dynamic" stuff, but if i were you, i would also try other forums or even Microsoft support directly (if its urgent).

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 7
(2,775 Views)

If you have specific installer requirements, you might want to look at using a 3rd party installer and packaging the application yourself. The Deploy toolkit for LabVIEW (which replaces the LV installer creation) uses Inno Setup and it allows you to create extra configuration options that can delete/remove additional files/folders when uninstalling.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 5 of 7
(2,761 Views)

Hi, I have never used any 3rd party installer before.

 

Any information that I can refer to?

0 Kudos
Message 6 of 7
(2,724 Views)

Deploy is a LabVIEW toolkit that does it for you - replaces/compliments the NI Installer builder.

 

It uses Inno Setup, which you can learn about here: http://www.jrsoftware.org/isinfo.php


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 7 of 7
(2,704 Views)