2016年7月21日 星期四

Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.

When upgrade windows application. Windows Installer shows error, "Another version of this product is already installed...."















First, check the application version which installed to PC:

Programs and the Features: Version 1.00.0000 is application version in InstallShield.










Project Assistant.
























InstallSample's PRODUCTVERSION is default 1.0.0.1























Install Sample application which show default About Dialog.










Second, modify the application and upgrade it.

Set about's caption to be 1.1.










Set PRODUCTVERSION to be 1.0.0.2























Set Application version to be 1.00.0001.
























Find General Information of InstallShield and generate a new GUID.











New Upgrade Path: Right click Upgrade Paths and new upgrade path.
Open InstallSample.msi


Keep setting and modify Max Version to be 1.00.0003















Rebuild InstallShield and setup application again.
The application was upgraded!


2016年1月8日 星期五

How to check storage size

For android phone, you can find storage size from Settings > Storage


But for developer, this information (16G) is not enough.

Just like we right-click the removable disk and then select "Properties". We can also check the total byte information of android phone storage.

First, enable USB debugging and use adb tool to check emmc size.
$ cd sys/block/mmcblk0
$ cat size
cat size
30785536


The number 30785536 is block number.
Total size is 30785536*512 =  15762194432 bytes