home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 February / PCpro_2004_02.ISO / files / vollvers / clipinc / ClipInc.exe / Server / CISUnins.inf next >
Encoding:
INI File  |  2003-09-15  |  7.2 KB  |  244 lines

  1. [INIT]
  2.  
  3. #define __ASK_UNINST_PAGE__     TRUE
  4.  
  5. Version           = 2.05.00                           ; Script Version
  6. ProgShowName      = Tobit ClipInc.
  7. ProgShortName     = Tobit ClipInc.
  8. ;ProgramGroup      = Tobit Software\%P
  9. UninstallShowName = Tobit Uninstall
  10. HeadLine          = Uninstall
  11. FromYear          = 2003
  12. Uninstall         = TRUE
  13. UninstIcon        = 0
  14. Languages         = ger [Deutsch]
  15. DefaultLanguage   = ger
  16. ResPath           = 
  17. TobitCltPath      = %(windir)\
  18.  
  19.  
  20. ;; ----------------------------------------------------------------------------
  21.  
  22. #RegQueryValue ("HKEY_LOCAL_MACHINE", "Software\Tobit\Tobit ClipInc\Server",       "RootDirectory",    "RootDirectory");
  23. #RegQueryValue ("HKEY_LOCAL_MACHINE", "Software\Tobit\Tobit ClipInc\Server\Setup", "Language",      "CurrentLanguage");
  24. ;#RegQueryValue ("HKEY_LOCAL_MACHINE", "Software\Tobit\Tobit ClipInc\Server\Setup", "ProgramGroup",  "ProgGroup");
  25.  
  26. #RegQueryValue ("HKEY_LOCAL_MACHINE", "Software\Tobit\David",                      "RootDirectory",    "DavidRoot");
  27. #RegQueryValue ("HKEY_CURRENT_USER",  "Software\Tobit\Tobit InfoCenter\Settings",  "ProgramDirectory", "TICDir");
  28.  
  29. #ifdef RootDirectory
  30.    TargetDir = %(RootDirectory)\
  31.    #undef RootDirectory
  32. #else
  33.    #Exit   
  34. #endif
  35.  
  36. ;#ifdef CurrentLanguage
  37. ;   Languages = %(CurrentLanguage)
  38. ;   DefaultLanguage = %(CurrentLanguage)
  39. ;   #Undef CurrentLanguage
  40. ;#endif
  41.  
  42. ;#ifdef ProgGroup
  43. ;   ProgramGroup = "%(ProgGroup)"
  44. ;   #undef ProgGroup
  45. ;#endif
  46.  
  47. #RegQueryValue ( "HKEY_LOCAL_MACHINE", "Software\Microsoft\Windows\CurrentVersion", "ProgramFilesDir", "ProgramFilesDir" );
  48.  
  49. ;---- Client Uninstall -----------------------------
  50. #RegQueryValue ("HKEY_CURRENT_USER", "Software\Tobit\Tobit ClipInc\Client",       "RootDirectory", "ClientRootDir");
  51. #ifdef ClientRootDir
  52.    #define ClientInstalled TRUE
  53.    #define __ASK_UNINST_PLAYER__ TRUE   
  54. #endif
  55.    
  56. ;---------------------------------------------------
  57.  
  58. ;; ============================================================================
  59. ;; ============================================================================
  60.  
  61. [COPY]
  62.  
  63. ;---- Client Uninstall -----------------------------
  64. #ifndef __ASK_UNINST_PLAYER__
  65.    #undef ClientRootDir
  66. #else   
  67.    #CloseWnd ( "NULL", "Tobit ClipInc." );
  68.    #Sleep 2000
  69.  
  70.    #CheckRunning "%(ClientRootDir)\ClipInc-Player.exe"
  71.    #if !#Result
  72.       #MessageBox ("##[PLAYER_RUNNING_%l]", "", "MB_OK | MB_ICONERROR");
  73.    #endif
  74. #endif
  75. ;---------------------------------------------------
  76.  
  77. #SetDlgCheckBmpState1 = 1
  78.  
  79. #ServiceExec ("%t\ClipInc-Server.exe", "001 -u");
  80. #ServiceExec ("%t\ClipInc-Server.exe", "002 -u");
  81. #ServiceExec ("%t\ClipInc-Server.exe", "003 -u");
  82. #ServiceExec ("%t\ClipInc-Server.exe", "004 -u");
  83. #ServiceExec ("%t\ClipInc-Server.exe", "005 -u");
  84. #Sleep 100
  85.  
  86. #SetDlgCheckBmpState1 = 2
  87.  
  88. #SetDlgCheckBmpState2 = 1
  89. #Sleep = 2000
  90.  
  91.  
  92. #SetDlgCheckBmpState2 = 2
  93. #SetDlgCheckBmpState3 = 1
  94. #Sleep = 2000
  95.  
  96. #RootDel "%(TargetDir)"
  97. #RootDel "%(TargetDir)\..\Setup"
  98. #StrReplace( "%(TargetDir)", "\Server", "", "ClipIncRoot" );
  99. #ifdef ClipIncRoot
  100.    #EmptyDel "%(ClipIncRoot)"
  101. #endif
  102. #EmptyDel "%(ProgramFilesDir)\Tobit ClipInc"
  103.  
  104. ;---- Client Uninstall -----------------------------
  105. #ifdef ClientRootDir
  106.    #RootDel %(ClientRootDir)
  107.    #StrReplace( "%(ClientRootDir)", "\Player", "", "ClipIncRoot" );
  108.    #ifdef ClipIncRoot
  109.       #EmptyDel "%(ClipIncRoot)"
  110.    #endif
  111.    #EmptyDel "%(ProgramFilesDir)\Tobit ClipInc"
  112. #endif
  113. ;---------------------------------------------------
  114.  
  115.  
  116. #rootdir=
  117. #destpath=%(windir)\
  118. #ifndef DavidRoot
  119.    #ifndef TICDir
  120.       #if ( !defined( ClientInstalled ) || defined( ClientRootDir ) )
  121.          ;#Del Tobitclt.dll
  122.          #SharedFileRemove( "%(windir)\TOBITCLT.DLL", 4 );
  123.       #endif
  124.    #endif
  125. #endif
  126.  
  127.  
  128. #rootdir=
  129. #destpath=%(WinSysDir)\
  130. #ifndef DavidRoot
  131.    #Del davidlib.dll
  132.    #Del dvmsg.dll
  133.    #Del tobit32.dll
  134. #endif
  135.  
  136. #SetDlgCheckBmpState3 = 2
  137. #SetDlgCheckBmpState4 = 1
  138. #Sleep = 1000
  139.  
  140.  
  141. #rootdir=
  142. #destpath=
  143.  
  144. ;---- Client Uninstall -----------------------------
  145. #ifdef ClientRootDir
  146.    #RegQueryValue ("HKEY_CURRENT_USER", "Software\Tobit\Tobit ClipInc\Client\Setup", "ProgramGroup",  "ClientProgramGroup");
  147.    #ifdef ClientProgramGroup
  148.       #RootDel "%g\%(ClientProgramGroup)"
  149.       #Sleep=1000
  150.    #endif
  151.    #EmptyDel "%g\Tobit"
  152.    #EmptyDel "%g\Tobit Software"
  153. #endif
  154. ;---------------------------------------------------
  155.  
  156. ;#RootDel %g\%G
  157. ;#Sleep=1000
  158. ;#EmptyDel "%g\Tobit"
  159. ;#EmptyDel "%g\Tobit Software"
  160.  
  161. #SetDlgCheckBmpState4 = 2
  162. #SetDlgCheckBmpState5 = 1
  163. #Sleep = 1000
  164.  
  165. ;---- Client Uninstall -----------------------------
  166. #ifdef ClientRootDir
  167.    #GetProgGroupPath ( "DesktopDir", "DESKTOPDIR" );
  168.    #ifdef DesktopDir
  169.       #ShortCutDel ( "%(DesktopDir)", "Tobit ClipInc.." );
  170.       #undef DesktopDir
  171.    #endif
  172.    #GetProgGroupPath ( "AppData", "APPDATA" );
  173.    #ifdef AppData
  174.       #ShortCutDel ( "%(AppData)\Microsoft\Internet Explorer\Quick Launch", "Tobit ClipInc.." );
  175.       #undef AppData
  176.    #endif   
  177.    ;#GetProgGroupPath ( "StartupPath", "STARTUP" );
  178.    ;#ifdef StartupPath
  179.    ;   #ShortCutDel ( "%(StartupPath)", "Tobit ClipInc.." );
  180.    ;   #undef StartupPath
  181.    ;#endif   
  182. #endif
  183. ;---------------------------------------------------
  184.  
  185.  
  186. #SetDlgCheckBmpState5 = 2
  187. #SetDlgCheckBmpState6 = 1
  188. #Sleep = 1000
  189.  
  190.  
  191. #RegDeleteKey ("HKEY_LOCAL_MACHINE", "Software\Tobit", "Tobit ClipInc");
  192. #RegDeleteKey ("HKEY_LOCAL_MACHINE", "Software\Microsoft\Windows\CurrentVersion\Uninstall", "Tobit ClipInc Server");
  193.  
  194. ;---- Client Uninstall -----------------------------
  195. #ifdef ClientRootDir
  196.    #RegDeleteKey ("HKEY_CURRENT_USER",  "Software\Tobit", "Tobit ClipInc");      
  197.    #RegDeleteKey ("HKEY_LOCAL_MACHINE", "Software\Microsoft\Windows\CurrentVersion\Uninstall", "Tobit ClipInc Client");
  198. #endif
  199. ;---------------------------------------------------
  200.  
  201. #GetDOSPath ( "%(winsysdir)\Tobit ClipInc.scr", "ScrShortFN", 0 );   
  202. #RegQueryValue ( "HKEY_CURRENT_USER", "Control Panel\Desktop", "SCRNSAVE.EXE", "InstalledScrFN" );
  203. #ifdef InstalledScrFN   
  204.    #if stricmp( "%(ScrShortFN)", "%(InstalledScrFN)" )
  205.       #SCREENSAVER( "%(ScrShortFN)", 1 );
  206.       #rootdir=
  207.       #destpath=%(winsysdir)\
  208.       #del "Tobit ClipInc.scr"
  209.       #RegDeleteKey ("HKEY_CURRENT_USER",  "Software\Tobit\Tobit ClipInc", "Screen Saver Settings");      
  210.    #endif
  211. #endif
  212.  
  213. #rootdir=
  214. #destpath=%(windir)\
  215. #del CISUnins.exe
  216.  
  217. ;---- Client Uninstall -----------------------------
  218. #ifdef ClientRootDir
  219.    #del CICUnins.exe
  220. #endif
  221. ;---------------------------------------------------
  222.  
  223.  
  224. #SetDlgCheckBmpState6 = 2
  225. #Sleep = 2000
  226.  
  227. ;===================================================================================
  228. ;===================================================================================
  229. ;===================================================================================
  230.  
  231. [PLAYER_RUNNING_GER]
  232. <html><b>Achtung!</b>
  233.  
  234. Der Tobit ClipInc. Player ist noch gestartet!
  235. Beenden Sie zunΣchst den Tobit ClipInc. Player
  236. um mit der Deinstallation fortzufahren.
  237.  
  238. [PLAYER_RUNNING_ENG]
  239. <html><b>Achtung!</b>
  240.  
  241. Der Tobit ClipInc. Player ist noch gestartet!
  242. Beenden Sie zunΣchst den Tobit ClipInc. Player
  243. um mit der Deinstallation fortzufahren.
  244.