|
From: Josh L. <ru...@us...> - 2003-10-14 00:38:55
|
Update of /cvsroot/acd/acd-1/windows/acd_installer In directory sc8-pr-cvs1:/tmp/cvs-serv14498/windows/acd_installer Added Files: acd.conf acd.nsi acd_client_windows_task.job Log Message: New checkin of tmd's windows stuff. --- NEW FILE: acd.conf --- acd_http_root=http://acd.cs.utk.edu/ acd_server_script=/acd/cgi-bin/acd_server.cgi acd_database=acd acd_local_dir=c:\acd_scripts FORCE_FQDN=TRUE; --- NEW FILE: acd.nsi --- ; Windows ACD installer script ; Based on NSIS Modern User Interface, Basic Example Script ; ; Trevor Dennison ; October 2, 2003 !define MUI_PRODUCT "Windows ACD" !define MUI_VERSION "1.0" !include "MUI.nsh" ;-------------------------------- ;Configuration ;General OutFile "windows_acd.exe" ;Remember install folder InstallDirRegKey HKCU "Software\${MUI_PRODUCT}" "" ;-------------------------------- ;Modern UI Configuration !define MUI_COMPONENTSPAGE !define MUI_UNINSTALLER !define MUI_UNCONFIRMPAGE ;-------------------------------- ;Languages !insertmacro MUI_LANGUAGE "English" ;-------------------------------- ;Language Strings ;Description LangString DESC_SecWindowsACD ${LANG_ENGLISH} "Copy the acd components to c:\acd, and set up a windows task scheduler job to run every night" LangString DESC_SecAdminMisc ${LANG_ENGLISH} "Install AdminMisc perl module" LangString DESC_SecPerl ${LANG_ENGLISH} "Install ActiveState Perl" ;-------------------------------- ;Data ; LicenseData "${NSISDIR}\Contrib\Modern UI\License.txt" ;-------------------------------- ;Installer Sections Section "ActivePerl 5.8.0.806" SecPerl SetOutPath "C:\temp" ;Decompress the perl install program into c:\temp File "ActivePerl-5.8.0.806-MSWin32-x86.msi" ;Run the perl install program ExecWait "msiexec /i C:\temp\ActivePerl-5.8.0.806-MSWin32-x86.msi" ;Get rid of the installer afterwards Delete "C:\temp\ActivePerl-5.8.0.806-MSWin32-x86.msi" SectionEnd Section "AdminMisc" SecAdminMisc SetOutPath "C:\Perl\lib\Win32" File "AdminMisc_5008\ADMINMISC.PM" File "AdminMisc_5008\Win32-AdminMisc.ppd" SetOutPath "C:\Perl\lib" File "AdminMisc_5008\bin\AdminMisc.DLL" ;install the msvcr70 dll file required for adminmisc SetOutPath "C:\Windows\System" File "AdminMisc_5008\msvcr70.dll" SectionEnd Section "Windows ACD" SecWindowsACD SetOutPath "C:\acd" File acd_client_windows.pl File acd.conf File acd_manual_info SetOutPath "C:\windows\tasks" File acd_client_windows_task.job ;Store install folder WriteRegStr HKCU "Software\${MUI_PRODUCT}" "" $INSTDIR ;Create uninstaller WriteUninstaller "C:\acd\Uninstall.exe" SectionEnd ;Display the Finish header ;Insert this macro after the sections if you are not using a finish page !insertmacro MUI_SECTIONS_FINISHHEADER ;-------------------------------- ;Descriptions !insertmacro MUI_FUNCTIONS_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SecWindowsACD} $(DESC_SecWindowsACD) !insertmacro MUI_DESCRIPTION_TEXT ${SecAdminMisc} $(DESC_SecAdminMisc) !insertmacro MUI_DESCRIPTION_TEXT ${SecPerl} $(DESC_SecPerl) !insertmacro MUI_FUNCTIONS_DESCRIPTION_END ;-------------------------------- ;Uninstaller Section Section "Uninstall" Delete "C:\acd\*" RMDir "C:\acd" Delete "C:\acd_scripts\*" RMDir "C:\acd_scripts" DeleteRegKey /ifempty HKCU "Software\${MUI_PRODUCT}" ;Display the Finish header !insertmacro MUI_UNFINISHHEADER SectionEnd --- NEW FILE: acd_client_windows_task.job --- ¯©F |