Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Старожил


Сообщения: 176
Благодарности: 5

Профиль | Отправить PM | Цитировать


kotkovets, подскажите...
Код: Выделить весь код
${Switch} ${extenstion}
	${Case} "ASF"
			StrCpy $IconIndex 0
			${Break}

		${Case} "AVI"
			StrCpy $IconIndex 2
			${Break}

		${Case} "WMV"
			StrCpy $IconIndex 17
			${Break}

		${Case} "FLV"
			StrCpy $IconIndex 111
			${Break}

		${Case} "MKV"
			StrCpy $IconIndex 30
			${Break}

		${Case} "MOV"
			StrCpy $IconIndex 8
			${Break}

		${Case} "3GP"
			StrCpy $IconIndex 48
			${Break}

		${Case} "DIVX"
			StrCpy $IconIndex 56
			${Break}

		${Case} "MP4"
			StrCpy $IconIndex 43
			${Break}

		${Case} "MPG"
			StrCpy $IconIndex 12
			${Break}

		${Case} "MPEG"
			StrCpy $IconIndex 11
			${Break}

		${Case} "MPE"
			StrCpy $IconIndex 10
			${Break}

		${Case} "DAT"
			StrCpy $IconIndex 3
			${Break}

		${Case} "VOB"
			StrCpy $IconIndex 14
			${Break}

		${Case} "IFO"
			StrCpy $IconIndex 40
			${Break}

		${Case} "M1V"
			StrCpy $IconIndex 4
			${Break}

		${Case} "M2V"
			StrCpy $IconIndex 5
			${Break}

		${Case} "M4V"
			StrCpy $IconIndex 70
			${Break}

		${Case} "MMS"
			StrCpy $IconIndex 14
			${Break}

		${Case} "OGM"
			StrCpy $IconIndex 29
			${Break}

		${Case} "QT"
			StrCpy $IconIndex 13
			${Break}

		${Case} "TS"
			StrCpy $IconIndex 99
			${Break}

		${Case} "VP6"
			StrCpy $IconIndex 101
			${Break}

		${Case} "XVID"
			StrCpy $IconIndex 109
			${Break}

		${Case} "3G2"
			StrCpy $IconIndex 47
			${Break}

		${Case} "TP"
			StrCpy $IconIndex 97
			${Break}

		${Case} "AVI-Neo"
			StrCpy $IconIndex 39
			${Break}

		${Case} "BIK"
			StrCpy $IconIndex 52
			${Break}

		${Case} "D2V"
			StrCpy $IconIndex 55
			${Break}

		${Case} "DRC"
			StrCpy $IconIndex 57
			${Break}

		${Case} "IFV"
			StrCpy $IconIndex 66
			${Break}

		${Case} "MP2V"
			StrCpy $IconIndex 78
			${Break}

		${Case} "MPV2"
			StrCpy $IconIndex 81
			${Break}

		${Case} "MQV"
			StrCpy $IconIndex 82
			${Break}

		${Case} "PART"
			StrCpy $IconIndex 86
			${Break}

		${Case} "PSS"
			StrCpy $IconIndex 87
			${Break}

		${Case} "ROQ"
			StrCpy $IconIndex 90
			${Break}

		${Case} "SMK"
			StrCpy $IconIndex 94
			${Break}

		${Case} "TPR"
			StrCpy $IconIndex 98
			${Break}

		${Case} "TRP"
			StrCpy $IconIndex 110
			${Break}

		${Case} "DVR-MS"
			StrCpy $IconIndex 114
			${Break}

		${Case} "GVI"
			StrCpy $IconIndex 115
			${Break}

		${Case} "NSV"
			StrCpy $IconIndex 117
			${Break}

		${Case} "PMP"
			StrCpy $IconIndex 118
			${Break}

		${Case} "VP7"
			StrCpy $IconIndex 120
			${Break}

		${Case} "VC1"
			StrCpy $IconIndex 138
			${Break}

		${Case} "264"
			StrCpy $IconIndex 127
			${Break}

		${Case} "H264"
			StrCpy $IconIndex 131
			${Break}
;....................................................................................
	; audio
		${Case} "MP3"
			StrCpy $IconIndex 9
			${Break}

		${Case} "AAC"
			StrCpy $IconIndex 42
			${Break}

		${Case} "WMA"
			StrCpy $IconIndex 16
			${Break}

		${Case} "CDA"
			StrCpy $IconIndex 54
			${Break}

		${Case} "FLAC"
			StrCpy $IconIndex 41
			${Break}

		${Case} "M4A"
			StrCpy $IconIndex 69
			${Break}

		${Case} "MID"
			StrCpy $IconIndex 6
			${Break}

		${Case} "MKA"
			StrCpy $IconIndex 72
			${Break}

		${Case} "MP2"
			StrCpy $IconIndex 77
			${Break}

		${Case} "MPA"
			StrCpy $IconIndex 79
			${Break}

		${Case} "MPC"
			StrCpy $IconIndex 45
			${Break}

		${Case} "APE"
			StrCpy $IconIndex 44
			${Break}

		${Case} "OFR"
			StrCpy $IconIndex 85
			${Break}

		${Case} "OGG"
			StrCpy $IconIndex 28
			${Break}

		${Case} "WV"
			StrCpy $IconIndex 121
			${Break}

		${Case} "AC3"
			StrCpy $IconIndex 46
			${Break}

		${Case} "DTS"
			StrCpy $IconIndex 58
			${Break}

		${Case} "WAV"
			StrCpy $IconIndex 15
			${Break}

		${Case} "AIFF"
			StrCpy $IconIndex 50
			${Break}

		${Case} "AIFC"
			StrCpy $IconIndex 49
			${Break}

		${Case} "AU"
			StrCpy $IconIndex 51
			${Break}

		${Case} "AMR"
			StrCpy $IconIndex 123
			${Break}

		${Case} "IT"
			StrCpy $IconIndex 65
			${Break}

		${Case} "M2A"
			StrCpy $IconIndex 68
			${Break}

		${Case} "MO3"
			StrCpy $IconIndex 75
			${Break}

		${Case} "MTM"
			StrCpy $IconIndex 83
			${Break}

		${Case} "S3M"
			StrCpy $IconIndex 93
			${Break}

		${Case} "MIDI"
			StrCpy $IconIndex 71
			${Break}

		${Case} "M1A"
			StrCpy $IconIndex 67
			${Break}

		${Case} "MOD"
			StrCpy $IconIndex 76
			${Break}

		${Case} "RMI"
			StrCpy $IconIndex 89
			${Break}

		${Case} "SND"
			StrCpy $IconIndex 95
			${Break}

		${Case} "UMX"
			StrCpy $IconIndex 100
			${Break}

		${Case} "XM"
			StrCpy $IconIndex 108
			${Break}

		${Case} "ARM"
			StrCpy $IconIndex 112
			${Break}

		${Case} "AVC-TS"
			StrCpy $IconIndex 113
			${Break}

		${Case} "SHN"
			StrCpy $IconIndex 119
			${Break}

		${Case} "WV"
			StrCpy $IconIndex 121
			${Break}

		${Case} "EC3"
			StrCpy $IconIndex 129
			${Break}

		${Case} "EAC3"
			StrCpy $IconIndex 128
			${Break}

		${Case} "EVO"
			StrCpy $IconIndex 130
			${Break}

		${Case} "LPCM"
			StrCpy $IconIndex 132
			${Break}

		${Case} "MLP"
			StrCpy $IconIndex 133
			${Break}

		${Case} "MT9"
			StrCpy $IconIndex 134
			${Break}

		${Case} "PCM"
			StrCpy $IconIndex 135
			${Break}

		${Case} "THD"
			StrCpy $IconIndex 139
			${Break}
;....................................................................................
	; subtitles

		${Case} "SMI"
			StrCpy $IconIndex 18
			${Break}

		${Case} "RT"
			StrCpy $IconIndex 31
			${Break}

		${Case} "SUB"
			StrCpy $IconIndex 32
			${Break}

		${Case} "IDX"
			StrCpy $IconIndex 33
			${Break}

		${Case} "ASS"
			StrCpy $IconIndex 34
			${Break}

		${Case} "SSA"
			StrCpy $IconIndex 35
			${Break}

		${Case} "RSB"
			StrCpy $IconIndex 36
			${Break}

		${Case} "SRT"
			StrCpy $IconIndex 37
			${Break}

		${Case} "S2K"
			StrCpy $IconIndex 38
			${Break}

		${Case} "MKS"
			StrCpy $IconIndex 73
			${Break}
;....................................................................................
	; playlists
		${Case} "ASX"
			StrCpy $IconIndex 1
			${Break}

		${Case} "WAX"
			StrCpy $IconIndex 102
			${Break}

		${Case} "M3U"
			StrCpy $IconIndex 20
			${Break}

		${Case} "PLS"
			StrCpy $IconIndex 19
			${Break}

		${Case} "WMX"
			StrCpy $IconIndex 105
			${Break}

		${Case} "WPL"
			StrCpy $IconIndex 106
			${Break}

		${Case} "WVX"
			StrCpy $IconIndex 107
			${Break}

;....................................................................................
	; real media
		${Case} "RA"
			StrCpy $IconIndex 21
			${Break}

		${Case} "RM"
			StrCpy $IconIndex 22
			${Break}

		${Case} "RMJ"
			StrCpy $IconIndex 23
			${Break}

		${Case} "RMS"
			StrCpy $IconIndex 24
			${Break}

		${Case} "RAM"
			StrCpy $IconIndex 25
			${Break}

		${Case} "RMM"
			StrCpy $IconIndex 26
			${Break}

		${Case} "RMVB"
			StrCpy $IconIndex 27
			${Break}

		${Case} "RPM"
			StrCpy $IconIndex 91
			${Break}

		${Case} "RV"
			StrCpy $IconIndex 82
			${Break}

;....................................................................................
	; other
		${Case} "FLC"
			StrCpy $IconIndex 59
			${Break}

		${Case} "FLI"
			StrCpy $IconIndex 60
			${Break}

		${Case} "FLIC"
			StrCpy $IconIndex 61
			${Break}

		${Case} "PVA"
			StrCpy $IconIndex 88
			${Break}

		${Case} "SWF"
			StrCpy $IconIndex 96
			${Break}

		${Case} "WM"
			StrCpy $IconIndex 103
			${Break}

		${Case} "K3G"
			StrCpy $IconIndex 122
			${Break}

		${Case} "M2T"
			StrCpy $IconIndex 124
			${Break}

		${Case} "MTS"
			StrCpy $IconIndex 125
			${Break}

		${Case} "SKM"
			StrCpy $IconIndex 126
			${Break}

		${Case} "PMF"
			StrCpy $IconIndex 136
			${Break}

		${Case} "M2TS"
			StrCpy $IconIndex 116
			${Break}

		${Case} "KPL"
			StrCpy $IconIndex 0
			${Break}

		${Case} "KSF"
			StrCpy $IconIndex 0
			${Break}
При вставке такого кода компилятор выдает ошибку Out of memory скрипт загрузить весь не могу много символов в чем может быть проблему!

Вот как бы полная часть кода
Код: Выделить весь код
!macro RegisterExtension extenstion 
	;create a class for extesion
	StrCpy $ClassName "The KMPlayer.${extenstion}"
	WriteRegStr HKCR "${extenstion}" "" "$ClassName"
	DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\${extenstion}\UserChoice"
	WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\${extenstion}\UserChoice" "Progid" "$ClassName"
  noaudio:*/
	WriteRegStr HKCR ".${extenstion}" "" "$ClassName"
	DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.${extenstion}\UserChoice"
	WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.${extenstion}\UserChoice" "Progid" "$ClassName"
	WriteRegStr HKCR "$ClassName\shell\open" "" "Îòêðûòü â KMPlayer"
	WriteRegStr HKCR "$ClassName\shell\open\command" "" "$OpenCommand"
	${Switch} ${extenstion}
	${Case} "ASF"
			StrCpy $IconIndex 0
			${Break}

		${Case} "AVI"
			StrCpy $IconIndex 2
			${Break}

		${Case} "WMV"
			StrCpy $IconIndex 17
			${Break}

		${Case} "FLV"
			StrCpy $IconIndex 111
			${Break}

		${Case} "MKV"
			StrCpy $IconIndex 30
			${Break}

		${Case} "MOV"
			StrCpy $IconIndex 8
			${Break}

		${Case} "3GP"
			StrCpy $IconIndex 48
			${Break}

		${Case} "DIVX"
			StrCpy $IconIndex 56
			${Break}

		${Case} "MP4"
			StrCpy $IconIndex 43
			${Break}

		${Case} "MPG"
			StrCpy $IconIndex 12
			${Break}

		${Case} "MPEG"
			StrCpy $IconIndex 11
			${Break}

		${Case} "MPE"
			StrCpy $IconIndex 10
			${Break}

		${Case} "DAT"
			StrCpy $IconIndex 3
			${Break}

		${Case} "VOB"
			StrCpy $IconIndex 14
			${Break}

		${Case} "IFO"
			StrCpy $IconIndex 40
			${Break}

		${Case} "M1V"
			StrCpy $IconIndex 4
			${Break}

		${Case} "M2V"
			StrCpy $IconIndex 5
			${Break}

		${Case} "M4V"
			StrCpy $IconIndex 70
			${Break}

		${Case} "MMS"
			StrCpy $IconIndex 14
			${Break}

		${Case} "OGM"
			StrCpy $IconIndex 29
			${Break}

		${Case} "QT"
			StrCpy $IconIndex 13
			${Break}

		${Case} "TS"
			StrCpy $IconIndex 99
			${Break}

		${Case} "VP6"
			StrCpy $IconIndex 101
			${Break}

		${Case} "XVID"
			StrCpy $IconIndex 109
			${Break}

		${Case} "3G2"
			StrCpy $IconIndex 47
			${Break}

		${Case} "TP"
			StrCpy $IconIndex 97
			${Break}

		${Case} "AVI-Neo"
			StrCpy $IconIndex 39
			${Break}

		${Case} "BIK"
			StrCpy $IconIndex 52
			${Break}

		${Case} "D2V"
			StrCpy $IconIndex 55
			${Break}

		${Case} "DRC"
			StrCpy $IconIndex 57
			${Break}

		${Case} "IFV"
			StrCpy $IconIndex 66
			${Break}

		${Case} "MP2V"
			StrCpy $IconIndex 78
			${Break}

		${Case} "MPV2"
			StrCpy $IconIndex 81
			${Break}

		${Case} "MQV"
			StrCpy $IconIndex 82
			${Break}

		${Case} "PART"
			StrCpy $IconIndex 86
			${Break}

		${Case} "PSS"
			StrCpy $IconIndex 87
			${Break}

		${Case} "ROQ"
			StrCpy $IconIndex 90
			${Break}

		${Case} "SMK"
			StrCpy $IconIndex 94
			${Break}

		${Case} "TPR"
			StrCpy $IconIndex 98
			${Break}

		${Case} "TRP"
			StrCpy $IconIndex 110
			${Break}

		${Case} "DVR-MS"
			StrCpy $IconIndex 114
			${Break}

		${Case} "GVI"
			StrCpy $IconIndex 115
			${Break}

		${Case} "NSV"
			StrCpy $IconIndex 117
			${Break}

		${Case} "PMP"
			StrCpy $IconIndex 118
			${Break}

		${Case} "VP7"
			StrCpy $IconIndex 120
			${Break}

		${Case} "VC1"
			StrCpy $IconIndex 138
			${Break}

		${Case} "264"
			StrCpy $IconIndex 127
			${Break}

		${Case} "H264"
			StrCpy $IconIndex 131
			${Break}
;....................................................................................
	; audio
		${Case} "MP3"
			StrCpy $IconIndex 9
			${Break}

		${Case} "AAC"
			StrCpy $IconIndex 42
			${Break}

		${Case} "WMA"
			StrCpy $IconIndex 16
			${Break}

		${Case} "CDA"
			StrCpy $IconIndex 54
			${Break}

		${Case} "FLAC"
			StrCpy $IconIndex 41
			${Break}

		${Case} "M4A"
			StrCpy $IconIndex 69
			${Break}

		${Case} "MID"
			StrCpy $IconIndex 6
			${Break}

		${Case} "MKA"
			StrCpy $IconIndex 72
			${Break}

		${Case} "MP2"
			StrCpy $IconIndex 77
			${Break}

		${Case} "MPA"
			StrCpy $IconIndex 79
			${Break}

		${Case} "MPC"
			StrCpy $IconIndex 45
			${Break}

		${Case} "APE"
			StrCpy $IconIndex 44
			${Break}

		${Case} "OFR"
			StrCpy $IconIndex 85
			${Break}

		${Case} "OGG"
			StrCpy $IconIndex 28
			${Break}

		${Case} "WV"
			StrCpy $IconIndex 121
			${Break}

		${Case} "AC3"
			StrCpy $IconIndex 46
			${Break}

		${Case} "DTS"
			StrCpy $IconIndex 58
			${Break}

		${Case} "WAV"
			StrCpy $IconIndex 15
			${Break}

		${Case} "AIFF"
			StrCpy $IconIndex 50
			${Break}

		${Case} "AIFC"
			StrCpy $IconIndex 49
			${Break}

		${Case} "AU"
			StrCpy $IconIndex 51
			${Break}

		${Case} "AMR"
			StrCpy $IconIndex 123
			${Break}

		${Case} "IT"
			StrCpy $IconIndex 65
			${Break}

		${Case} "M2A"
			StrCpy $IconIndex 68
			${Break}

		${Case} "MO3"
			StrCpy $IconIndex 75
			${Break}

		${Case} "MTM"
			StrCpy $IconIndex 83
			${Break}

		${Case} "S3M"
			StrCpy $IconIndex 93
			${Break}

		${Case} "MIDI"
			StrCpy $IconIndex 71
			${Break}

		${Case} "M1A"
			StrCpy $IconIndex 67
			${Break}

		${Case} "MOD"
			StrCpy $IconIndex 76
			${Break}

		${Case} "RMI"
			StrCpy $IconIndex 89
			${Break}

		${Case} "SND"
			StrCpy $IconIndex 95
			${Break}

		${Case} "UMX"
			StrCpy $IconIndex 100
			${Break}

		${Case} "XM"
			StrCpy $IconIndex 108
			${Break}

		${Case} "ARM"
			StrCpy $IconIndex 112
			${Break}

		${Case} "AVC-TS"
			StrCpy $IconIndex 113
			${Break}

		${Case} "SHN"
			StrCpy $IconIndex 119
			${Break}

		${Case} "WV"
			StrCpy $IconIndex 121
			${Break}

		${Case} "EC3"
			StrCpy $IconIndex 129
			${Break}

		${Case} "EAC3"
			StrCpy $IconIndex 128
			${Break}

		${Case} "EVO"
			StrCpy $IconIndex 130
			${Break}

		${Case} "LPCM"
			StrCpy $IconIndex 132
			${Break}

		${Case} "MLP"
			StrCpy $IconIndex 133
			${Break}

		${Case} "MT9"
			StrCpy $IconIndex 134
			${Break}

		${Case} "PCM"
			StrCpy $IconIndex 135
			${Break}

		${Case} "THD"
			StrCpy $IconIndex 139
			${Break}
;....................................................................................
	; subtitles

		${Case} "SMI"
			StrCpy $IconIndex 18
			${Break}

		${Case} "RT"
			StrCpy $IconIndex 31
			${Break}

		${Case} "SUB"
			StrCpy $IconIndex 32
			${Break}

		${Case} "IDX"
			StrCpy $IconIndex 33
			${Break}

		${Case} "ASS"
			StrCpy $IconIndex 34
			${Break}

		${Case} "SSA"
			StrCpy $IconIndex 35
			${Break}

		${Case} "RSB"
			StrCpy $IconIndex 36
			${Break}

		${Case} "SRT"
			StrCpy $IconIndex 37
			${Break}

		${Case} "S2K"
			StrCpy $IconIndex 38
			${Break}

		${Case} "MKS"
			StrCpy $IconIndex 73
			${Break}
;....................................................................................
	; playlists
		${Case} "ASX"
			StrCpy $IconIndex 1
			${Break}

		${Case} "WAX"
			StrCpy $IconIndex 102
			${Break}

		${Case} "M3U"
			StrCpy $IconIndex 20
			${Break}

		${Case} "PLS"
			StrCpy $IconIndex 19
			${Break}

		${Case} "WMX"
			StrCpy $IconIndex 105
			${Break}

		${Case} "WPL"
			StrCpy $IconIndex 106
			${Break}

		${Case} "WVX"
			StrCpy $IconIndex 107
			${Break}

;....................................................................................
	; real media
		${Case} "RA"
			StrCpy $IconIndex 21
			${Break}

		${Case} "RM"
			StrCpy $IconIndex 22
			${Break}

		${Case} "RMJ"
			StrCpy $IconIndex 23
			${Break}

		${Case} "RMS"
			StrCpy $IconIndex 24
			${Break}

		${Case} "RAM"
			StrCpy $IconIndex 25
			${Break}

		${Case} "RMM"
			StrCpy $IconIndex 26
			${Break}

		${Case} "RMVB"
			StrCpy $IconIndex 27
			${Break}

		${Case} "RPM"
			StrCpy $IconIndex 91
			${Break}

		${Case} "RV"
			StrCpy $IconIndex 82
			${Break}

;....................................................................................
	; other
		${Case} "FLC"
			StrCpy $IconIndex 59
			${Break}

		${Case} "FLI"
			StrCpy $IconIndex 60
			${Break}

		${Case} "FLIC"
			StrCpy $IconIndex 61
			${Break}

		${Case} "PVA"
			StrCpy $IconIndex 88
			${Break}

		${Case} "SWF"
			StrCpy $IconIndex 96
			${Break}

		${Case} "WM"
			StrCpy $IconIndex 103
			${Break}

		${Case} "K3G"
			StrCpy $IconIndex 122
			${Break}

		${Case} "M2T"
			StrCpy $IconIndex 124
			${Break}

		${Case} "MTS"
			StrCpy $IconIndex 125
			${Break}

		${Case} "SKM"
			StrCpy $IconIndex 126
			${Break}

		${Case} "PMF"
			StrCpy $IconIndex 136
			${Break}

		${Case} "M2TS"
			StrCpy $IconIndex 116
			${Break}

		${Case} "KPL"
			StrCpy $IconIndex 0
			${Break}

		${Case} "KSF"
			StrCpy $IconIndex 0
			${Break}
;....................................................................................
	; ddefault icon
		${Default}
			StrCpy $IconIndex 0
			${Break}

	${EndSwitch}
  WriteRegStr HKCR "$ClassName\DefaultIcon" "" "$IconFile,$IconIndex"
!macroend

!macro UnRegisterExtension extenstion
  StrCpy $ClassName "The KMPlayer.${extenstion}"
	ReadRegStr $0 HKCR "${extenstion}" ""
	StrCmp $0	$ClassName 0 +2
	DeleteRegKey HKCR "$ClassName"
	ReadRegStr $0 HKCR "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\${extenstion}\UserChoice" ""
	StrCmp $0	$ClassName 0 +2
	DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\${extenstion}\UserChoice"

	ReadRegStr $0 HKCR ".${extenstion}" ""
  StrCmp $0	$ClassName 0 +2
  DeleteRegKey HKCR "$ClassName"

  ReadRegStr $0 HKCR "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.${extenstion}\UserChoice" ""
  StrCmp $0	$ClassName 0 +2
  DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.${extenstion}\UserChoice"
!macroend

Последний раз редактировалось diakov, 02-11-2012 в 00:28.


Отправлено: 23:13, 01-11-2012 | #3318