LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Dist.Kit "uninstall/install"

Hi everyone,
As of the distribution kit created with CVI6, when I install a new
release it first uninstall the previous one.
After the uninstall process, it stops and one must launch again the
setup wizard to finally install the required release.
That sounds quite good but as I am in test, I do this several times a
day.
Is there any simple way to merge the uninstall/install processes in a
single one step?
Thanks for any help,
--
Fred
0 Kudos
Message 1 of 3
(3,027 Views)
Greetings,

Strictly from within CVI, there isn't a way to do this. However, a simple batch file might be useful.

Create a batch file that looks like this:
msiexec.exe /qn /x your_msi_name.msi
msiexec.exe /qb /i your_msi_name.msi

Put this batch file in the same directory as the rest of the files in your distribution kit, and substitute the name of your generated MSI for the last parameter.

The first line in the batch file silently uninstalls the MSI, whether or not it is already installed. The second line installs the MSI without any user intervention. Note that this will only work on a system that has MSI already installed.

Thanks,
- WesW / NI
0 Kudos
Message 2 of 3
(3,027 Views)
Your trick is perfect. Works great.
Thanks!

WesW a ecrit :

> Greetings,
>
> Strictly from within CVI, there isn't a way to do this. However, a
> simple batch file might be useful.
>
> Create a batch file that looks like this:
> msiexec.exe /qn /x your_msi_name.msi
> msiexec.exe /qb /i your_msi_name.msi
>
> Put this batch file in the same directory as the rest of the files in
> your distribution kit, and substitute the name of your generated MSI
> for the last parameter.
>
> The first line in the batch file silently uninstalls the MSI, whether
> or not it is already installed. The second line installs the MSI
> without any user intervention. Note that this will only work on a
> system that has MSI already installed.
>
> Thanks,
> - Wes
W / NI

--
F. Maillet - Sodatec Toulouse
Responsable Qualite Projets
0 Kudos
Message 3 of 3
(3,027 Views)