01-10-2013 05:07 PM
Hello All.
I have a requirement to silently (programmatically) install or update 2 different LabVIEW applications (LabVIEW 2011 SP1 f2 version) separately on Windows XP machine at anytime. I build separate installers (with the runtime engine) for these 2 applications as they run independently for different purposes. I want to know how to silently update these applications without affecting each other. When one application is getting updated/installed, the other one should still be running.
The problem is with the silent uninstall using the specific product name where it uninstalls everything (all the LabVIEW applications) installed on the machine including the runtime engine. This affects the other application. I am using the silent install/uninstall commands from NI website. If I don't uninstall, everytime when I update the same application (using the installer), there will be multiple entry in the Windows registry (Ref: Control Panel - add/remove Programs).
I am looking for a solution...
Thank You
01-11-2013 12:05 AM
1. Don't put the run-time engine with the installer for your app. Just have your installer install only your application. Put the run-time engine in its own installer. Or just install them manually from the NI website. That way if you uninstall, it will only uninstall your app, not the run-time.
2. Thereis a parameter in the application builder that stores an ID for your application. If you install an application with the same ID in its builder, then it will be treated as an update to an existing app and you won't have multiple versions in Add/Remove programs. If the ID is different, then it will treat the new installation as a completely different new app leaving the old one still installed as far as Add/Remove programs is concerned. It is called Upgrade Code under the Version Information section of the build properties for the installer.
01-11-2013 03:46 AM
Hi houston11,
When you install first time labview application toi any of the windows OS than it take longer than usual becasue it will install all the components to run the package or application. And when you uninstall the application, run time engine and VISA etc will be uninstalled untill you will unstall it manually. Please verify this.
In other words this is not possible. it wont uninstall all the components.\\
Ranjeet
01-11-2013 10:50 AM
@Ranjeet_Singh wrote:
Hi @houston11,
When you install first time labview application toi any of the windows OS than it take longer than usual becasue it will install all the components to run the package or application. And when you uninstall the application, run time engine and VISA etc will be uninstalled untill you will unstall it manually. Please verify this.
In other words this is not possible. it wont uninstall all the components.\\
Ranjeet
Not true Ranjeet.
When you install a LabVIEW application (and this means your own code that you have built into an .exe), the installer is only going to install whatever you have told it to install when you built the installer. So if you told it to only install your .exe, that is all it will do. It won't magically go out and also install the run-time or other components. You have to tell the Installer builder that you want to also include the other components such as the run-time, VISA, DAQ, or any other components.
01-11-2013 10:34 PM
Dear RavensFan,
May be my words were wrong. what i mean to say when installing the package(setup file), you are going to include all the additional installers, So first time when you install the application it will install all the application, when you un-install your application than these additional installer will be there in computer (Same computer ). Untill or unless you uninstall it seperately.
01-11-2013 11:13 PM
And the solution is not to put the additional components in the installer, with your application. But to create a separate installer just for the additional requirements. That way uninstalling the application doesn't force you to install the additional run-times.
01-12-2013 12:25 AM
Hi RavensFan,
For knowledge purpose i am asking that i always create single installer for all the components & my application and after uninstalling the application my components like VISA, run time engine all will not be uninstalled
but if i am installing the package to new computer all additional components will be installed. Why ?