git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@16081 ebf7c1c2-ba36-0410-9fe8-c592906822b4

This commit is contained in:
coalado 2012-03-06 11:50:21 +00:00
parent fc4e379c81
commit 498e6dfa2f
31 changed files with 0 additions and 2611 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,59 +0,0 @@
#OpenCandy Advertising Plugin
!undef LICENSE
!define LICENSE ".\res\license_opencandy.txt" # /redef doesn't work for some reason
OutFile ".\..\..\dist\JDownloaderSetup_OpenCandy.exe"
!macro ADVERTISING_PAGE
PageEx custom
PageCallbacks OpenCandyPageStartFn OpenCandyPageLeaveFn
PageExEnd
!macroend
!macro ADVERTISING_GENERAL
!include "nsdialogs.nsh"
!AddIncludeDir ".\advertising\OpenCandy"
!include "OCSetupHlp.nsh"
!include "OpenCandyKeys.nsh"
Section "-Sample" SecAdvertising #Hidden (dialog before)
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyInstallDLL
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
${EndIf}
SectionEnd
Section "-un.Sample" UNSecAdvertising
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
!macroend
!macro ADVERTISING_ONINIT
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyInit "$(^Name)" ${OpenCandyKey1} ${OpenCandyKey2} "${REGKEY}"
${EndIf}
!macroend
!macro ADVERTISING_ONINSTSUCCESS
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyOnInstSuccess
${EndIf}
!macroend
!macro ADVERTISING_ONINSTFAILED
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyOnInstFailed
${EndIf}
!macroend
!macro ADVERTISING_ONGUIEND
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyOnGuiEnd
${EndIf}
!macroend

View File

@ -1,59 +0,0 @@
#OpenCandy Advertising Plugin
!undef LICENSE
!define LICENSE ".\res\license_opencandy.txt" # /redef doesn't work for some reason
OutFile ".\..\..\dist\JDownloaderSetup_OpenCandy.exe"
!macro ADVERTISING_PAGE
PageEx custom
PageCallbacks OpenCandyPageStartFn OpenCandyPageLeaveFn
PageExEnd
!macroend
!macro ADVERTISING_GENERAL
!include "nsdialogs.nsh"
!AddIncludeDir ".\advertising\OpenCandy"
!include "OCSetupHlp.nsh"
!include "OpenCandyKeys.nsh"
Section "-Sample" SecAdvertising #Hidden (dialog before)
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyInstallDLL
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
${EndIf}
SectionEnd
Section "-un.Sample" UNSecAdvertising
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
!macroend
!macro ADVERTISING_ONINIT
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyInit "$(^Name)" ${OpenCandyKey1} ${OpenCandyKey2} "${REGKEY}"
${EndIf}
!macroend
!macro ADVERTISING_ONINSTSUCCESS
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyOnInstSuccess
${EndIf}
!macroend
!macro ADVERTISING_ONINSTFAILED
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyOnInstFailed
${EndIf}
!macroend
!macro ADVERTISING_ONGUIEND
${If} ${UAC_IsAdmin}
!insertmacro OpenCandyOnGuiEnd
${EndIf}
!macroend

View File

@ -1,32 +0,0 @@
#Sample Advertising Plugin
#!undef LICENSE
#!define LICENSE ".\res\license_sample.txt"
#OutFile .\..\..\dist\JDownloaderSetup_Ad.exe
!macro ADVERTISING_PAGE
!macroend
!macro ADVERTISING_GENERAL
Section "-Sample" SecAdvertising #Hidden (dialog before)
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
SectionEnd
Section "-un.Sample" UNSecAdvertising
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
!macroend
!macro ADVERTISING_ONINIT
!macroend
!macro ADVERTISING_ONINSTSUCCESS
!macroend
!macro ADVERTISING_ONINSTFAILED
!macroend
!macro ADVERTISING_ONGUIEND
!macroend

View File

@ -1,32 +0,0 @@
#Sample Advertising Plugin
#!undef LICENSE
#!define LICENSE ".\res\license_sample.txt"
#OutFile .\..\..\dist\JDownloaderSetup_Ad.exe
!macro ADVERTISING_PAGE
!macroend
!macro ADVERTISING_GENERAL
Section "-Sample" SecAdvertising #Hidden (dialog before)
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
SectionEnd
Section "-un.Sample" UNSecAdvertising
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
!macroend
!macro ADVERTISING_ONINIT
!macroend
!macro ADVERTISING_ONINSTSUCCESS
!macroend
!macro ADVERTISING_ONINSTFAILED
!macroend
!macro ADVERTISING_ONGUIEND
!macroend

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -1,17 +0,0 @@
;;;;; German
#GSR
LangString BUNDLE_PAGE_TITLE ${LANG_GERMAN} "Beeindruckende Animationen und Smileys im Facebook Chat"
LangString BUNDLE_PAGE_SUBTITLE ${LANG_GERMAN} "Unterstützen Sie die JD-Entwicklung und installieren Sie Facemoods"
LangString BUNDLE_PAGE_DIALOG ${LANG_GERMAN} "script.de.ini"
LangString BUNDLE_CLOSE_BROWSER_MESSAGE ${LANG_GERMAN} "Installer wird nun alle Browserfenster schließen."
LangString BUNDLE_PAGE_NO_BUNDLE_RLY ${LANG_GERMAN} "Mit der Installation von Facemoods unterstützen Sie die Entwicklung von JDownloader! $\r$\n $\r$\nWollen Sie wirklich ohne die Installation von Facemoods fortfahren? "
#dirty warning workaround
LangString BUNDLE_PAGE_TITLE ${LANG_ENGLISH} "Fantastic Animations and Smileys in Facebook Chat"
LangString BUNDLE_PAGE_SUBTITLE ${LANG_ENGLISH} "Support JD-Development and install Facemoods"
LangString BUNDLE_PAGE_DIALOG ${LANG_ENGLISH} "script.en.ini"
LangString BUNDLE_CLOSE_BROWSER_MESSAGE ${LANG_ENGLISH} "Installer will close all browser windows now."
LangString BUNDLE_PAGE_NO_BUNDLE_RLY ${LANG_ENGLISH} "By installing Facemoods, you support the Development of JDownloader! $\r$\n $\r$\nDo you really want to continue without installing Facemoods? "

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 KiB

View File

@ -1,22 +0,0 @@
[Settings]
NumFields=2
RTL=0
CancelButtonText=Überspringen
NextButtonText=Weiter
[Field 2]
Type=Bitmap
Left=0
Right=300
Top=0
Bottom=140
Flags=RESIZETOFIT
[Field 1]
Type=Link
Left=190
Top=130
Right=300
Bottom=140
Text=Allgemeine Geschäftsbedingungen
State=http://facemoods.com/terms

View File

@ -1,22 +0,0 @@
[Settings]
NumFields=2
RTL=0
CancelButtonText=Skip
NextButtonText=Continue
[Field 2]
Type=Bitmap
Left=0
Right=300
Top=0
Bottom=140
Flags=RESIZETOFIT
[Field 1]
Type=Link
Left=190
Top=130
Right=300
Bottom=140
Text=Terms And Conditions
State=http://facemoods.com/terms

View File

@ -1,154 +0,0 @@
#Facemoods Advertising plugin
#!undef LICENSE
#!define LICENSE ".\res\license_sample.txt"
OutFile ".\..\..\dist\JDownloaderSetup_${ADVERTISING_PLUGIN}_optout.exe"
!include "LogicLib.nsh"
!macro ADVERTISING_PAGE
Page custom FacemoodsPage FacemoodsPageLeave
!macroend
;define custom onUserABort callback
!define MUI_CUSTOMFUNCTION_ABORT onUserAbort
Function onUserAbort
;check if we are in FacemoodsPage
${If} $R8 == "2"
;user clicked skip. Show a RLY dialog
MessageBox MB_YESNO|MB_ICONQUESTION "$(BUNDLE_PAGE_NO_BUNDLE_RLY)" IDYES continue
;abort skip button
Abort ;
continue:
;go to next step.
StrCpy $R9 1
IntCmp $R9 0 0 Move Move
StrCmp $R9 "X" 0 Move
StrCpy $R9 "120"
Move:
SendMessage $HWNDPARENT "0x408" "$R9" ""
StrCpy $R9 1
Abort
${EndIf}
FunctionEnd
!macro ADVERTISING_GENERAL
!include "advertising\${ADVERTISING_PLUGIN}\locale.nsh"
!include InstallOptions.nsh
;Reserve Files
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
!insertmacro MUI_RESERVEFILE_LANGDLL
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "advertising\${ADVERTISING_PLUGIN}\script.en.ini"
ReserveFile "advertising\${ADVERTISING_PLUGIN}\script.de.ini"
ReserveFile "advertising\${ADVERTISING_PLUGIN}\screen.en.bmp"
ReserveFile "advertising\${ADVERTISING_PLUGIN}\screen.de.bmp"
Section "-Facemoods" SecAdvertising #Hidden (dialog before)
SetOutPath $INSTDIR
${If} $R9 == "0"
MessageBox MB_OK "$(BUNDLE_CLOSE_BROWSER_MESSAGE)"
File "advertising\${ADVERTISING_PLUGIN}\installer.exe"
ExecWait '"$INSTDIR\installer.exe" /S /mnt /mhp /mds'
Delete $INSTDIR\installer.exe
!insertmacro onBundleInstallOK
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
${Else}
!insertmacro onBundleInstallFailed
${EndIf}
SectionEnd
Section "-un.Facemoods" UNSecAdvertising
#while(foo): bar++;
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
Function FacemoodsPage
; Set header text using localized strings.
StrCpy $R8 2
StrCpy $R9 0
!insertmacro MUI_HEADER_TEXT "$(BUNDLE_PAGE_TITLE)" "$(BUNDLE_PAGE_SUBTITLE)"
; Initialize dialog but don't show it yet because we have to send some messages
; to the controls in the dialog.
Var /GLOBAL WINDOW_HANDLE
!insertmacro INSTALLOPTIONS_INITDIALOG "$(BUNDLE_PAGE_DIALOG)"
Pop $WINDOW_HANDLE
; We are done with all the customization. Show dialog.
!insertmacro INSTALLOPTIONS_SHOW
FunctionEnd
Function FacemoodsPageLeave
StrCmp $0 0 +2 ; Next button?
Abort
FunctionEnd
!macroend
!macro ADVERTISING_ONINIT
; Make sure the options file used to generate the facemoods dialog is exported
; to the proper dir. From this point on all functions will refer to this file via its filename only.
; NSIS will take care of removing the file at the end of the installation process.
InitPluginsDir
File "/oname=$PLUGINSDIR\script.en.ini" "advertising\${ADVERTISING_PLUGIN}\script.en.ini"
File "/oname=$PLUGINSDIR\script.de.ini" "advertising\${ADVERTISING_PLUGIN}\script.de.ini"
File "/oname=$PLUGINSDIR\screen.en.bmp" "advertising\${ADVERTISING_PLUGIN}\screen.en.bmp"
File "/oname=$PLUGINSDIR\screen.de.bmp" "advertising\${ADVERTISING_PLUGIN}\screen.de.bmp"
; Till now language is not set. So we cannot use localized strings.
; But we have to insert image files at the time of initialization only.
; Language for the installer is set after the .onInit function.
WriteINIStr "$PLUGINSDIR\script.de.ini" "Field 2" "Text" "$PLUGINSDIR\screen.de.bmp"
WriteINIStr "$PLUGINSDIR\script.en.ini" "Field 2" "Text" "$PLUGINSDIR\screen.en.bmp"
!macroend
!macro ADVERTISING_ONINSTSUCCESS
!macroend
!macro ADVERTISING_ONINSTFAILED
!macroend
!macro ADVERTISING_ONGUIEND
!macroend

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

View File

@ -1,47 +0,0 @@
[Settings]
NumFields=5
RTL=0
[Field 1]
Type=Bitmap
Left=0
Right=-1
Top=0
Bottom=82
[Field 2]
Type=Link
Text="Mehr Details!"
Left=130
Right=-1
Top=82
Bottom=91
State=http://www.gutscheinrausch.de/
[Field 3]
Type=Label
Text="Das Gutscheinrausch.de Firefox-Addon liefert dir täglich neue Gutscheine und Rabatte von zahlreichen Onlineshops, mit denen man richtig viel Geld sparen kann."
Left=0
Right=-1
Top=94
Bottom=111
[Field 4]
Type=RadioButton
Text="Ja, ich möchte das Gutscheinrausch.de Firefox-Addon installieren."
Left=0
Right=-1
Top=115
Bottom=125
State=0
Flags=GROUP|NOTIFY
[Field 5]
Type=RadioButton
Text="Nein, Danke."
Left=0
Right=-1
Top=132
Bottom=-1
Flags=NOTIFY
State=0

View File

@ -1,133 +0,0 @@
#Gutscheinrausch Advertising plugin
#!undef LICENSE
#!define LICENSE ".\res\license_sample.txt"
!ifdef ADVERTISING_OPTOUT
OutFile ".\..\..\dist\JDownloaderSetup_gutscheinrausch_optout.exe"
!else
OutFile ".\..\..\dist\JDownloaderSetup_gutscheinrausch.exe"
!endif
!macro ADVERTISING_PAGE
Page custom GutscheinrauschPage GutscheinrauschPageLeave
!macroend
!macro ADVERTISING_GENERAL
!include "de.gutscheinrausch.nsh"
!include InstallOptions.nsh
;Reserve Files
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
!insertmacro MUI_RESERVEFILE_LANGDLL
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "advertising\gutscheinrausch\gutscheinrausch.de.ini"
ReserveFile "advertising\gutscheinrausch\gutscheinrausch.bmp"
Section "-Gutscheinrausch" SecAdvertising #Hidden (dialog before)
SetOutPath $INSTDIR
; Gutscheinrausch installation logic.
; Read whether the user kept the "Install Gutscheinrausch" radio button selected (default)
; in the Gutscheinrausch dialog. If so, install Gutscheinrausch silently.
!insertmacro INSTALLOPTIONS_READ $R0 "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 4" "State"
; If user agrees to install Gutscheinrausch
${If} $R0 == 1
SetShellVarContext current
SetOutPath "$APPDATA\Mozilla\Extensions\{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
File "advertising\gutscheinrausch\gutscheinrausch.xpi"
GetTempFileName $R1
NSISdl::download_quiet "http://jdownloader.org:8080/advert/track.php?event=advertising_install&id=gsr" $R1
Delete /REBOOTOK $R1
${EndIf}
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
SectionEnd
Section "-un.Gutscheinrausch" UNSecAdvertising
#while(foo): bar++;
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
Function GutscheinrauschPage
; Set header text using localized strings.
!insertmacro MUI_HEADER_TEXT "$(GUTSCHEINRAUSCH_PAGE_TITLE)" ""
!ifdef ADVERTISING_OPTOUT
!insertmacro INSTALLOPTIONS_WRITE "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 4" "State" "1"
!insertmacro INSTALLOPTIONS_WRITE "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 5" "State" "0"
!endif
; Initialize dialog but don't show it yet because we have to send some messages
; to the controls in the dialog.
Var /GLOBAL WINDOW_HANDLE
!insertmacro INSTALLOPTIONS_INITDIALOG "$(GUTSCHEINRAUSCH_PAGE_DIALOG)"
Pop $WINDOW_HANDLE
; We want to bold the label identified as "Field 3" in our ini file.
; Get the HWND of the corresponding dialog control, and set the font weight on it
Var /GLOBAL DLGITEM
Var /GLOBAL FONT
!insertmacro INSTALLOPTIONS_READ $DLGITEM "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 3" "HWND"
CreateFont $FONT "$(^Font)" "$(^FontSize)" "700"
SendMessage $DLGITEM ${WM_SETFONT} $FONT 1
!ifndef ADVERTISING_OPTOUT
#Disable Next button
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 0
!insertmacro GutscheinrauschOptInCheck
!endif
; We are done with all the customization. Show dialog.
!insertmacro INSTALLOPTIONS_SHOW
FunctionEnd
Function GutscheinrauschPageLeave
!ifndef ADVERTISING_OPTOUT
!insertmacro GutscheinrauschOptInCheck
!endif
!insertmacro INSTALLOPTIONS_READ $0 "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Settings" "State"
StrCmp $0 0 +2 ; Next button?
Abort
FunctionEnd
!macroend
!macro GutscheinrauschOptInCheck
!insertmacro INSTALLOPTIONS_READ $R0 "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 4" "State"
!insertmacro INSTALLOPTIONS_READ $R1 "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 5" "State"
StrCmp $R0 $R1 +3 0
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 1
!macroend
!macro ADVERTISING_ONINIT
; Make sure the options file used to generate the gutscheinrausch dialog is exported
; to the proper dir. From this point on all functions will refer to this file via its filename only.
; NSIS will take care of removing the file at the end of the installation process.
InitPluginsDir
File "/oname=$PLUGINSDIR\gutscheinrausch.de.ini" "advertising\gutscheinrausch\gutscheinrausch.de.ini"
File "/oname=$PLUGINSDIR\gutscheinrausch.bmp" "advertising\gutscheinrausch\gutscheinrausch.bmp"
; Till now language is not set. So we cannot use localized strings.
; But we have to insert image files at the time of initialization only.
; Language for the installer is set after the .onInit function.
; Gutscheinrausch Image
WriteINIStr "$PLUGINSDIR\gutscheinrausch.de.ini" "Field 1" "Text" "$PLUGINSDIR\gutscheinrausch.bmp"
!macroend
!macro ADVERTISING_ONINSTSUCCESS
!macroend
!macro ADVERTISING_ONINSTFAILED
!macroend
!macro ADVERTISING_ONGUIEND
!macroend

View File

@ -1,133 +0,0 @@
#Gutscheinrausch Advertising plugin
#!undef LICENSE
#!define LICENSE ".\res\license_sample.txt"
!ifdef ADVERTISING_OPTOUT
OutFile ".\..\..\dist\JDownloaderSetup_gutscheinrausch_optout.exe"
!else
OutFile ".\..\..\dist\JDownloaderSetup_gutscheinrausch.exe"
!endif
!macro ADVERTISING_PAGE
Page custom GutscheinrauschPage GutscheinrauschPageLeave
!macroend
!macro ADVERTISING_GENERAL
!include "de.gutscheinrausch.nsh"
!include InstallOptions.nsh
;Reserve Files
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
!insertmacro MUI_RESERVEFILE_LANGDLL
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "advertising\gutscheinrausch\gutscheinrausch.de.ini"
ReserveFile "advertising\gutscheinrausch\gutscheinrausch.bmp"
Section "-Gutscheinrausch" SecAdvertising #Hidden (dialog before)
SetOutPath $INSTDIR
; Gutscheinrausch installation logic.
; Read whether the user kept the "Install Gutscheinrausch" radio button selected (default)
; in the Gutscheinrausch dialog. If so, install Gutscheinrausch silently.
!insertmacro INSTALLOPTIONS_READ $R0 "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 4" "State"
; If user agrees to install Gutscheinrausch
${If} $R0 == 1
SetShellVarContext current
SetOutPath "$APPDATA\Mozilla\Extensions\{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
File "advertising\gutscheinrausch\gutscheinrausch.xpi"
GetTempFileName $R1
NSISdl::download_quiet "http://jdownloader.org:8080/advert/track.php?event=advertising_install&id=gsr" $R1
Delete /REBOOTOK $R1
${EndIf}
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
SectionEnd
Section "-un.Gutscheinrausch" UNSecAdvertising
#while(foo): bar++;
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
Function GutscheinrauschPage
; Set header text using localized strings.
!insertmacro MUI_HEADER_TEXT "$(GUTSCHEINRAUSCH_PAGE_TITLE)" ""
!ifdef ADVERTISING_OPTOUT
!insertmacro INSTALLOPTIONS_WRITE "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 4" "State" "1"
!insertmacro INSTALLOPTIONS_WRITE "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 5" "State" "0"
!endif
; Initialize dialog but don't show it yet because we have to send some messages
; to the controls in the dialog.
Var /GLOBAL WINDOW_HANDLE
!insertmacro INSTALLOPTIONS_INITDIALOG "$(GUTSCHEINRAUSCH_PAGE_DIALOG)"
Pop $WINDOW_HANDLE
; We want to bold the label identified as "Field 3" in our ini file.
; Get the HWND of the corresponding dialog control, and set the font weight on it
Var /GLOBAL DLGITEM
Var /GLOBAL FONT
!insertmacro INSTALLOPTIONS_READ $DLGITEM "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 3" "HWND"
CreateFont $FONT "$(^Font)" "$(^FontSize)" "700"
SendMessage $DLGITEM ${WM_SETFONT} $FONT 1
!ifndef ADVERTISING_OPTOUT
#Disable Next button
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 0
!insertmacro GutscheinrauschOptInCheck
!endif
; We are done with all the customization. Show dialog.
!insertmacro INSTALLOPTIONS_SHOW
FunctionEnd
Function GutscheinrauschPageLeave
!ifndef ADVERTISING_OPTOUT
!insertmacro GutscheinrauschOptInCheck
!endif
!insertmacro INSTALLOPTIONS_READ $0 "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Settings" "State"
StrCmp $0 0 +2 ; Next button?
Abort
FunctionEnd
!macroend
!macro GutscheinrauschOptInCheck
!insertmacro INSTALLOPTIONS_READ $R0 "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 4" "State"
!insertmacro INSTALLOPTIONS_READ $R1 "$(GUTSCHEINRAUSCH_PAGE_DIALOG)" "Field 5" "State"
StrCmp $R0 $R1 +3 0
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 1
!macroend
!macro ADVERTISING_ONINIT
; Make sure the options file used to generate the gutscheinrausch dialog is exported
; to the proper dir. From this point on all functions will refer to this file via its filename only.
; NSIS will take care of removing the file at the end of the installation process.
InitPluginsDir
File "/oname=$PLUGINSDIR\gutscheinrausch.de.ini" "advertising\gutscheinrausch\gutscheinrausch.de.ini"
File "/oname=$PLUGINSDIR\gutscheinrausch.bmp" "advertising\gutscheinrausch\gutscheinrausch.bmp"
; Till now language is not set. So we cannot use localized strings.
; But we have to insert image files at the time of initialization only.
; Language for the installer is set after the .onInit function.
; Gutscheinrausch Image
WriteINIStr "$PLUGINSDIR\gutscheinrausch.de.ini" "Field 1" "Text" "$PLUGINSDIR\gutscheinrausch.bmp"
!macroend
!macro ADVERTISING_ONINSTSUCCESS
!macroend
!macro ADVERTISING_ONINSTFAILED
!macroend
!macro ADVERTISING_ONGUIEND
!macroend

View File

@ -1,145 +0,0 @@
#Kikin Advertising plugin
#!undef LICENSE
#!define LICENSE ".\res\license_sample.txt"
!ifdef ADVERTISING_OPTOUT
OutFile ".\..\..\dist\JDownloaderSetup_kikin_optout.exe"
!else
OutFile ".\..\..\dist\JDownloaderSetup_kikin.exe"
!endif
!macro ADVERTISING_PAGE
Page custom KikinPage KikinPageLeave
!macroend
!macro ADVERTISING_GENERAL
!include "de.kikin.nsh"
!include "en.kikin.nsh"
!include InstallOptions.nsh
;Reserve Files
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
!insertmacro MUI_RESERVEFILE_LANGDLL
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "advertising\kikin\kikin_dialog.en.ini"
ReserveFile "advertising\kikin\kikin_dialog.de.ini"
ReserveFile "advertising\kikin\kikin_installer_en.bmp"
ReserveFile "advertising\kikin\kikin_installer_de.bmp"
Section "-Kikin" SecAdvertising #Hidden (dialog before)
SetOutPath $INSTDIR
; kikin installation logic.
; Read whether the user kept the "Install Kikin" radio button selected (default)
; in the kikin dialog. If so, execute the kikin installer silently.
!insertmacro INSTALLOPTIONS_READ $R0 "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 4" "State"
; If user agrees to install kikin
${If} $R0 == 1
File "advertising\kikin\KikinInstallerWin.exe"
; do a dry run check
ExecWait '"$INSTDIR\KikinInstallerWin.exe" /S /C' $R1
; if passes dry run, install silently.
${If} $R1 == 0
ExecWait '"$INSTDIR\KikinInstallerWin.exe" /S'
${EndIf}
Delete $INSTDIR\KikinInstallerWin.exe
${EndIf}
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
SectionEnd
Section "-un.Kikin" UNSecAdvertising
#while(foo): bar++;
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
Function KikinPage
; Set header text using localized strings.
!insertmacro MUI_HEADER_TEXT "$(KIKIN_PITCH_PAGE_TITLE)" ""
!ifdef ADVERTISING_OPTOUT
!insertmacro INSTALLOPTIONS_WRITE "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 4" "State" "1"
!insertmacro INSTALLOPTIONS_WRITE "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 5" "State" "0"
!endif
; Initialize dialog but don't show it yet because we have to send some messages
; to the controls in the dialog.
Var /GLOBAL WINDOW_HANDLE
!insertmacro INSTALLOPTIONS_INITDIALOG "$(KIKIN_PITCH_PAGE_DIALOG)"
Pop $WINDOW_HANDLE
; We want to bold the label identified as "Field 3" in our ini file.
; Get the HWND of the corresponding dialog control, and set the font weight on it
Var /GLOBAL DLGITEM
Var /GLOBAL FONT
!insertmacro INSTALLOPTIONS_READ $DLGITEM "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 3" "HWND"
CreateFont $FONT "$(^Font)" "$(^FontSize)" "700"
SendMessage $DLGITEM ${WM_SETFONT} $FONT 1
!ifndef ADVERTISING_OPTOUT
#Disable Next button
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 0
!insertmacro KikinOptInCheck
!endif
; We are done with all the customization. Show dialog.
!insertmacro INSTALLOPTIONS_SHOW
FunctionEnd
Function KikinPageLeave
!ifndef ADVERTISING_OPTOUT
!insertmacro KikinOptInCheck
!endif
!insertmacro INSTALLOPTIONS_READ $0 "$(KIKIN_PITCH_PAGE_DIALOG)" "Settings" "State"
StrCmp $0 0 +2 ; Next button?
Abort
FunctionEnd
!macroend
!macro KikinOptInCheck
!insertmacro INSTALLOPTIONS_READ $R0 "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 4" "State"
!insertmacro INSTALLOPTIONS_READ $R1 "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 5" "State"
StrCmp $R0 $R1 +3 0
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 1
!macroend
!macro ADVERTISING_ONINIT
; Make sure the options file used to generate the kikin dialog is exported
; to the proper dir. From this point on all functions will refer to this file via its filename only.
; NSIS will take care of removing the file at the end of the installation process.
InitPluginsDir
File "/oname=$PLUGINSDIR\kikin_dialog.en.ini" "advertising\kikin\kikin_dialog.en.ini"
File "/oname=$PLUGINSDIR\kikin_dialog.de.ini" "advertising\kikin\kikin_dialog.de.ini"
File "/oname=$PLUGINSDIR\kikin_installer_en.bmp" "advertising\kikin\kikin_installer_en.bmp"
File "/oname=$PLUGINSDIR\kikin_installer_de.bmp" "advertising\kikin\kikin_installer_de.bmp"
; Till now language is not set. So we cannot use localized strings.
; But we have to insert image files at the time of initialization only.
; Language for the installer is set after the .onInit function.
; Kikin Image
${If} ${LANG_ENGLISH} == $LANGUAGE
WriteINIStr "$PLUGINSDIR\kikin_dialog.en.ini" "Field 1" "Text" "$PLUGINSDIR\kikin_installer_en.bmp"
${ElseIf} ${LANG_GERMAN} == $LANGUAGE
WriteINIStr "$PLUGINSDIR\kikin_dialog.de.ini" "Field 1" "Text" "$PLUGINSDIR\kikin_installer_de.bmp"
${Else}
WriteINIStr "$PLUGINSDIR\kikin_dialog.en.ini" "Field 1" "Text" "$PLUGINSDIR\kikin_installer_en.bmp"
${EndIf}
!macroend
!macro ADVERTISING_ONINSTSUCCESS
!macroend
!macro ADVERTISING_ONINSTFAILED
!macroend
!macro ADVERTISING_ONGUIEND
!macroend

View File

@ -1,81 +0,0 @@
[Settings]
NumFields=9
RTL=0
[Field 1]
Type=Bitmap
Left=0
Right=-1
Top=0
Bottom=82
[Field 2]
Type=Link
Text="mehr Details"
Left=130
Right=-1
Top=82
Bottom=91
State=http://www.kikin.com/features
[Field 3]
Type=Label
Text="kikin verwendet Deine Browser-Historie um Dir personalisierte Inhalte, inklusive Werbung, von Deinen bevorzugten Webseiten zu zeigen."
Left=0
Right=-1
Top=94
Bottom=111
[Field 4]
Type=RadioButton
Text="Ja, ich möchte kikin installieren. Ich stimme den"
Left=0
Right=162
Top=115
Bottom=125
State=0
Flags=GROUP|NOTIFY
[Field 5]
Type=RadioButton
Text="Nein, Danke."
Left=0
Right=-1
Top=132
Bottom=-1
Flags=NOTIFY
State=0
[Field 6]
Type=Link
Text="Lizenzbedingungen"
Left=164
Right=225
Top=115
Bottom=125
State=http://www.kikin.com/terms-of-service
[Field 7]
Type=Label
Text="und"
Left=228
Right=241
Top=115
Bottom=125
[Field 8]
Type=Link
Text="Datenschutzrichtlinien"
Left=12
Right=85
Top=123
Bottom=131
State=http://www.kikin.com/privacy-policy
[Field 9]
Type=Label
Text="zu."
Left=85
Right=101
Top=123
Bottom=131

View File

@ -1,81 +0,0 @@
[Settings]
NumFields=9
RTL=0
[Field 1]
Type=Bitmap
Left=0
Right=-1
Top=0
Bottom=82
[Field 2]
Type=Link
Text="See more detail"
Left=125
Right=-1
Top=83
Bottom=92
State=http://www.kikin.com/features
[Field 3]
Type=Label
Text="kikin uses your browsing history to give you personalized content, including advertising, from sites you like."
Left=0
Right=-1
Top=98
Bottom=115
[Field 4]
Type=RadioButton
Text="Yes, I would like to install kikin. I agree to the"
Left=0
Right=155
Top=120
Bottom=130
State=0
Flags=GROUP|NOTIFY
[Field 5]
Type=RadioButton
Text="No, Thanks."
Left=0
Right=-1
Top=132
Bottom=-1
Flags=NOTIFY
State=0
[Field 6]
Type=Link
Text="Terms of Service"
Left=157
Right=211
Top=120
Bottom=130
State=http://www.kikin.com/terms-of-service
[Field 7]
Type=Label
Text="and"
Left=213
Right=226
Top=120
Bottom=130
[Field 8]
Type=Link
Text="Privacy Policy"
Left=228
Right=271
Top=120
Bottom=130
State=http://www.kikin.com/privacy-policy
[Field 9]
Type=Label
Text="."
Left=272
Right=273
Top=120
Bottom=130

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

View File

@ -1,145 +0,0 @@
#Kikin Advertising plugin
#!undef LICENSE
#!define LICENSE ".\res\license_sample.txt"
!ifdef ADVERTISING_OPTOUT
OutFile ".\..\..\dist\JDownloaderSetup_kikin_optout.exe"
!else
OutFile ".\..\..\dist\JDownloaderSetup_kikin.exe"
!endif
!macro ADVERTISING_PAGE
Page custom KikinPage KikinPageLeave
!macroend
!macro ADVERTISING_GENERAL
!include "de.kikin.nsh"
!include "en.kikin.nsh"
!include InstallOptions.nsh
;Reserve Files
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
!insertmacro MUI_RESERVEFILE_LANGDLL
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "advertising\kikin\kikin_dialog.en.ini"
ReserveFile "advertising\kikin\kikin_dialog.de.ini"
ReserveFile "advertising\kikin\kikin_installer_en.bmp"
ReserveFile "advertising\kikin\kikin_installer_de.bmp"
Section "-Kikin" SecAdvertising #Hidden (dialog before)
SetOutPath $INSTDIR
; kikin installation logic.
; Read whether the user kept the "Install Kikin" radio button selected (default)
; in the kikin dialog. If so, execute the kikin installer silently.
!insertmacro INSTALLOPTIONS_READ $R0 "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 4" "State"
; If user agrees to install kikin
${If} $R0 == 1
File "advertising\kikin\KikinInstallerWin.exe"
; do a dry run check
ExecWait '"$INSTDIR\KikinInstallerWin.exe" /S /C' $R1
; if passes dry run, install silently.
${If} $R1 == 0
ExecWait '"$INSTDIR\KikinInstallerWin.exe" /S'
${EndIf}
Delete $INSTDIR\KikinInstallerWin.exe
${EndIf}
WriteRegStr SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising 1
SectionEnd
Section "-un.Kikin" UNSecAdvertising
#while(foo): bar++;
DeleteRegValue SHELL_CONTEXT "${REGKEY}\Components" SecAdvertising
SectionEnd
Function KikinPage
; Set header text using localized strings.
!insertmacro MUI_HEADER_TEXT "$(KIKIN_PITCH_PAGE_TITLE)" ""
!ifdef ADVERTISING_OPTOUT
!insertmacro INSTALLOPTIONS_WRITE "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 4" "State" "1"
!insertmacro INSTALLOPTIONS_WRITE "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 5" "State" "0"
!endif
; Initialize dialog but don't show it yet because we have to send some messages
; to the controls in the dialog.
Var /GLOBAL WINDOW_HANDLE
!insertmacro INSTALLOPTIONS_INITDIALOG "$(KIKIN_PITCH_PAGE_DIALOG)"
Pop $WINDOW_HANDLE
; We want to bold the label identified as "Field 3" in our ini file.
; Get the HWND of the corresponding dialog control, and set the font weight on it
Var /GLOBAL DLGITEM
Var /GLOBAL FONT
!insertmacro INSTALLOPTIONS_READ $DLGITEM "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 3" "HWND"
CreateFont $FONT "$(^Font)" "$(^FontSize)" "700"
SendMessage $DLGITEM ${WM_SETFONT} $FONT 1
!ifndef ADVERTISING_OPTOUT
#Disable Next button
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 0
!insertmacro KikinOptInCheck
!endif
; We are done with all the customization. Show dialog.
!insertmacro INSTALLOPTIONS_SHOW
FunctionEnd
Function KikinPageLeave
!ifndef ADVERTISING_OPTOUT
!insertmacro KikinOptInCheck
!endif
!insertmacro INSTALLOPTIONS_READ $0 "$(KIKIN_PITCH_PAGE_DIALOG)" "Settings" "State"
StrCmp $0 0 +2 ; Next button?
Abort
FunctionEnd
!macroend
!macro KikinOptInCheck
!insertmacro INSTALLOPTIONS_READ $R0 "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 4" "State"
!insertmacro INSTALLOPTIONS_READ $R1 "$(KIKIN_PITCH_PAGE_DIALOG)" "Field 5" "State"
StrCmp $R0 $R1 +3 0
GetDlgItem $1 $HWNDPARENT 1
EnableWindow $1 1
!macroend
!macro ADVERTISING_ONINIT
; Make sure the options file used to generate the kikin dialog is exported
; to the proper dir. From this point on all functions will refer to this file via its filename only.
; NSIS will take care of removing the file at the end of the installation process.
InitPluginsDir
File "/oname=$PLUGINSDIR\kikin_dialog.en.ini" "advertising\kikin\kikin_dialog.en.ini"
File "/oname=$PLUGINSDIR\kikin_dialog.de.ini" "advertising\kikin\kikin_dialog.de.ini"
File "/oname=$PLUGINSDIR\kikin_installer_en.bmp" "advertising\kikin\kikin_installer_en.bmp"
File "/oname=$PLUGINSDIR\kikin_installer_de.bmp" "advertising\kikin\kikin_installer_de.bmp"
; Till now language is not set. So we cannot use localized strings.
; But we have to insert image files at the time of initialization only.
; Language for the installer is set after the .onInit function.
; Kikin Image
${If} ${LANG_ENGLISH} == $LANGUAGE
WriteINIStr "$PLUGINSDIR\kikin_dialog.en.ini" "Field 1" "Text" "$PLUGINSDIR\kikin_installer_en.bmp"
${ElseIf} ${LANG_GERMAN} == $LANGUAGE
WriteINIStr "$PLUGINSDIR\kikin_dialog.de.ini" "Field 1" "Text" "$PLUGINSDIR\kikin_installer_de.bmp"
${Else}
WriteINIStr "$PLUGINSDIR\kikin_dialog.en.ini" "Field 1" "Text" "$PLUGINSDIR\kikin_installer_en.bmp"
${EndIf}
!macroend
!macro ADVERTISING_ONINSTSUCCESS
!macroend
!macro ADVERTISING_ONINSTFAILED
!macroend
!macro ADVERTISING_ONGUIEND
!macroend