Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ddbcb2f2
Commit
ddbcb2f2
authored
Dec 06, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- vlc.win32.nsi.in: backporting from [18288]
parent
b1738c8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
34 deletions
+36
-34
vlc.win32.nsi.in
vlc.win32.nsi.in
+36
-34
No files found.
vlc.win32.nsi.in
View file @
ddbcb2f2
...
@@ -196,7 +196,7 @@ NoOwn:
...
@@ -196,7 +196,7 @@ NoOwn:
FunctionEnd
FunctionEnd
!macro RegisterExtensionSection EXT
!macro RegisterExtensionSection EXT
Section
/o
${EXT}
Section ${EXT}
SectionIn 1 3
SectionIn 1 3
Push $R0
Push $R0
StrCpy $R0 ${EXT}
StrCpy $R0 ${EXT}
...
@@ -238,7 +238,6 @@ FunctionEnd
...
@@ -238,7 +238,6 @@ FunctionEnd
;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;
!macro delprefs
!macro delprefs
SectionIn 1 3
StrCpy $0 0
StrCpy $0 0
!define Index 'Line${__LINE__}'
!define Index 'Line${__LINE__}'
"${Index}-Loop:"
"${Index}-Loop:"
...
@@ -439,44 +438,43 @@ SectionEnd
...
@@ -439,44 +438,43 @@ SectionEnd
Section /o "Mozilla plugin" SEC03
Section /o "Mozilla plugin" SEC03
SectionIn 3
SectionIn 3
SetOutPath "$INSTDIR"
!insertmacro OpenUninstallLog
!insertmacro OpenUninstallLog
!insertmacro InstallF
older mozilla
!insertmacro InstallF
ile mozilla\npvlc.dll
!insertmacro CloseUninstallLog
!insertmacro CloseUninstallLog
; doesn't work. bug in mozilla/mozilla firefox or moz documentation (xpt file isn't loaded)
!define Moz "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}"
; see mozilla bugs 184506 and 159445
WriteRegStr HKLM ${Moz} "Description" "VLC Multimedia Plugin"
;!define Moz "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}"
WriteRegStr HKLM ${Moz} "Path" "$INSTDIR\npvlc.dll"
;WriteRegStr HKLM ${Moz} "Description" "VideoLAN VLC plugin for Mozilla"
WriteRegStr HKLM ${Moz} "Product" "VLC media player"
;WriteRegStr HKLM ${Moz} "Path" "$INSTDIR\mozilla\npvlc.dll"
WriteRegStr HKLM ${Moz} "Vendor" "VideoLAN"
;WriteRegStr HKLM ${Moz} "Product" "VLC media player"
WriteRegStr HKLM ${Moz} "Version" "${VERSION}"
;WriteRegStr HKLM ${Moz} "Vendor" "VideoLAN"
;WriteRegStr HKLM ${Moz} "Version" "${VERSION}"
;WriteRegStr HKLM ${Moz} "XPTPath" "$INSTDIR\mozilla\vlcintf.xpt"
Push $R0
; for very old version of mozilla, these lines may be needed
Push $R1
;Push $R0
Push $R2
;Push $R1
;Push $R2
!define Index 'Line${__LINE__}'
;
!define Index 'Line${__LINE__}'
StrCpy $R1 "0"
;
StrCpy $R1 "0"
"${Index}-Loop:"
;
"${Index}-Loop:"
; Check for Key
;
; Check for Key
EnumRegKey $R0 HKLM "SOFTWARE\Mozilla" "$R1"
;
EnumRegKey $R0 HKLM "SOFTWARE\Mozilla" "$R1"
StrCmp $R0 "" "${Index}-End"
;
StrCmp $R0 "" "${Index}-End"
IntOp $R1 $R1 + 1
;
IntOp $R1 $R1 + 1
ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins"
;
ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins"
StrCmp $R2 "" "${Index}-Loop" ""
;
StrCmp $R2 "" "${Index}-Loop" ""
CopyFiles "$INSTDIR\mozilla\*
" "$R2"
; CopyFiles "$INSTDIR\npvlc.dll
" "$R2"
!ifdef LIBVLC_DLL
;
!ifdef LIBVLC_DLL
CopyFiles ${LIBVLC_DLL} "$R2"
;
CopyFiles ${LIBVLC_DLL} "$R2"
!endif
;
!endif
Goto "${Index}-Loop"
;
Goto "${Index}-Loop"
"${Index}-End:"
;
"${Index}-End:"
!undef Index
;
!undef Index
SectionEnd
SectionEnd
...
@@ -634,6 +632,7 @@ Section "Uninstall" SEC91
...
@@ -634,6 +632,7 @@ Section "Uninstall" SEC91
!insertmacro MacroAllExtensions UnRegisterExtensionSection
!insertmacro MacroAllExtensions UnRegisterExtensionSection
!insertmacro DeleteContextMenu "Directory"
!insertmacro DeleteContextMenu "Directory"
;remove activex plugin
UnRegDLL "$INSTDIR\axvlc.dll"
UnRegDLL "$INSTDIR\axvlc.dll"
Delete /REBOOTOK "$INSTDIR\axvlc.dll"
Delete /REBOOTOK "$INSTDIR\axvlc.dll"
...
@@ -654,11 +653,15 @@ Section "Uninstall" SEC91
...
@@ -654,11 +653,15 @@ Section "Uninstall" SEC91
ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins"
ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins"
StrCmp $R2 "" "${Index}-Loop" ""
StrCmp $R2 "" "${Index}-Loop" ""
Delete "$R2\npvlc.dll"
; old files (0.8.5 and before) that may be lying around
Delete /REBOOTOK "$R2\npvlc.dll"
Delete /REBOOTOK "$R2\libvlc.dll"
Delete /REBOOTOK "$R2\vlcintf.xpt"
Goto "${Index}-Loop"
Goto "${Index}-Loop"
"${Index}-End:"
"${Index}-End:"
!undef Index
!undef Index
Delete /REBOOTOK "$INSTDIR\npvlc.dll"
RMDir "$SMPROGRAMS\VideoLAN"
RMDir "$SMPROGRAMS\VideoLAN"
RMDir /r $SMPROGRAMS\VideoLAN
RMDir /r $SMPROGRAMS\VideoLAN
...
@@ -705,8 +708,7 @@ Section "Uninstall" SEC91
...
@@ -705,8 +708,7 @@ Section "Uninstall" SEC91
SetAutoClose true
SetAutoClose true
SectionEnd
SectionEnd
Section "un.Delete preferences and cache" SEC92
Section /o "un.Delete preferences and cache" SEC92
SectionIn 1 3
!insertmacro delprefs
!insertmacro delprefs
SectionEnd
SectionEnd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment