/* ThreadTimer是NSIS创建多线程定时器的插件 ThreadTimer创建的定时器作用于整个应用程序的生命周期,你可以在其中处理任何操作都不会与nsDialogs相冲突. */ !ifdef NSIS_UNICODE !AddPluginDir .ReleaseU !else !AddPluginDir .ReleaseA !endif Name "ThreadTimer" OutFile "ThreadTimer.exe" Page instfiles XPStyle on ShowInstDetails show Section Install GetFunctionAddress $0 FuncTimer ThreadTimer::Start 1000 10 $0 SectionEnd Function FuncTimer IntOp $R0 $R0 + 1 DetailPrint "FuncTimer has been called for $R0 time(s)!" FunctionEnd