Index: outlook-client-forge.nsi =================================================================== --- outlook-client-forge.nsi (revision 137) +++ outlook-client-forge.nsi (working copy) @@ -38,6 +38,7 @@ !define PRODUCT_NAME_EXE "OutlookPlugin.exe" !define PRODUCT_PUBLISHER "Funambol" !define PRODUCT_WEB_SITE "http://www.funambol.com" +!define PRODUCT_VERSION "7.1.8" !define STARTMENU_CONTEXT "Funambol\Outlook Sync Client" !define INSTALLDIR_CONTEXT "Funambol\Outlook Client" !define DATAFILES_CONTEXT "Funambol\OutlookClient" @@ -458,9 +459,13 @@ done: FunctionEnd - - ; +; Install VC90 runtime +; +Function installVCRT +ExecWait '"$INSTDIR/vcredist_x86.exe" /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qb!"" "' +FunctionEnd +; ; Install DLL into System. ; Function installDll @@ -551,6 +556,8 @@ File /r "fileset\redist\*.*" + Call installVCRT + ; --- Register dll --- ; If registration errors, installation fails Call installDll @@ -609,13 +616,7 @@ UnRegDLL "$INSTDIR\Redemption.dll" UnRegDLL "$INSTDIR\FunambolAddin.dll" - ; Copy Addin to WinDir and register it. - ; (MUST keep it after uninstall, to be loaded at next Outlook startup - ; and clean up buttons/bars - then it will unregister itself). - CopyFiles /SILENT "$INSTDIR\FunambolAddin.dll" "$WINDIR\FunambolAddin.dll" - ; MUST copy also ATL library to WINDIR! (could not be installed). - CopyFiles /SILENT "$INSTDIR\Microsoft.VC80.ATL" "$WINDIR" - RegDLL "$WINDIR\FunambolAddin.dll" + UnRegDLL "$WINDIR\FunambolAddin.dll" ; Delete files from installDir.