返回列表 回复 发帖

安装类型”以前安装的组件”(Previous)应如何编程

用过foobar2000 官方原版的人可能会发现它的安装程序中设置了安装类型
    InstType "Previous"      ;以前安装的组件

该指令可自动侦测foobar2000安装目录文件夹中已安装的组件。请问这个安装类型该如何编写呢?
检测呗。
是用
!insertmacro CheckSection
指令吗?
有没有简短的范例?
InstType "$(LNG_Normal)"                    
InstType "$(LNG_Full)"                          
InstType "$(LNG_Minimum)"
InstType "$(LNG_Previous)"      
............................
Function .onInit
;查找以前安装的组件
!insertmacro CheckSection ${SEC_foo_cdda} InstalledComponents foo_cdda
!insertmacro CheckSection ${SEC_foo_albumlist} InstalledComponents foo_albumlist
!insertmacro CheckSection ${SEC_foo_dsp_std} InstalledComponents foo_dsp_std
!insertmacro CheckSection ${SEC_foo_rgscan} InstalledComponents foo_rgscan
!insertmacro CheckSection ${SEC_foo_converter} InstalledComponents foo_converter
!insertmacro CheckSection ${SEC_foo_fileops} InstalledComponents foo_fileops
!insertmacro CheckSection ${SEC_foo_unpack} InstalledComponents foo_unpack
!insertmacro CheckSection ${SEC_foo_abx} InstalledComponents foo_abx
!insertmacro CheckSection ${SEC_foo_freedb2} InstalledComponents foo_freedb2
FunctionEnd
有没有人对这一主题比较熟悉的,最好能附带写一个简短而又完整的案例。
呵呵
1

评分次数

蓝色网际foobar.nsi
http://www.dreams8.com/thread-5880-1-1.html

蓝色网际的东东好好研究一下
你会对NSIS有更多认识
感谢Baidu,Google,Dreams8给我这次机会!
还要感谢我的爸爸妈妈!
HOHO
返回列表