NSIS Wiki:Sandbox: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
 
(48 intermediate revisions by 21 users not shown)
Line 1: Line 1:
[http://www.bjscdesign.com 工业设计]
This is where test stuff should be posted, if you don't know how things appear, or want to test if something works which can't be seen by just previewing the page.
[http://www.bjscdesign.com/rscz.htm 工业设计]
 
[http://www.bjscdesign.com/jdjz.htm 工业设计]
Right now, there is nothing being done to this page regularly to delete contents. Maybe a bot or the server will be used for the task, but nothing is sure.
[http://www.bjscdesign.com/srsj.htm 工业设计]
 
[http://www.bjscdesign.com/viewnews.asp?id=53 工业设计]
Keep the page content below this note.
[http://gongyesheji9.blog.hexun.com/15575379_d.html 工业设计]
 
[http://gongyeshiji.blog.tianya.cn 工业设计]
<hr />
[http://blog.sina.com.cn/s/blog_50088b7d01007l9c.html 工业设计]
<!-- keep the note above intact and put the page content right below -->
[http://gongyesheji9.blog.sohu.com/73332974.html 工业设计]
 
[http://gongyesheji9.blog.163.com/blog/static/569516412007111323231329/edit/ 工业设计]
This is only a test.
[http://www.52blog.net/user7/gongyesheji/archives/2007/1261492.shtml 工业设计]
 
[http://blog.adp365.com/user1/gongyesheji9/archives/2007/31978.html 工业设计]
test captcha
[http://www.blogzy.com.cn/user1/2158/archives/2007/11508.html 工业设计]
 
[http://www.sheke.cn/blog/u/13349/archives/2007/59270.html 工业设计]
 
[http://www.medialeader.com.cn/blog/u/10135/archives/2007/16552.html 工业设计]
The quick brown fox jumps over the lazy dog.
[http://www.9iwz.org/u/1917/archives/2007/7165.html 工业设计]
 
[http://blog.gsjsw.gov.cn/u/3597/archives/2007/12950.html 工业设计]
<span id="anchor_name"></span>
[http://www.radio9.cn/u/8203/24386.html 工业设计]
== Some long complicated title that no one would want to refer to directly ==
[http://www.aitenet.cn/oblog/u/2275/archives/2007/5347.html 工业设计]
 
[http://www.xyinfo.net/oblog/user1/relateav9/archives/2007/3853.html 工业设计]
LIBRARY SYSTEM OF THE FISHER VALLEY
[http://blog.lst.gov.cn/u/relateav9/archives/2007/6263.html 工业设计]
kjnb/'/l,m'l'lk
[http://www.sar120.com 湿疣]     
 
[http://www.sar120.com 尖锐湿疣]
<code>
[http://www.sar120.com 疱疹]
!include "MUI2.nsh"  # change this to !include MUI.nsh to see how the code works successfully for MUI1
[http://www.sar120.com 生殖疱疹]
[http://www.zangyiyuan.com 乳腺癌的治疗]  
 
[http://www.zangyiyuan.com 乳腺增生]
; Local bitmap path.
[http://www.zangyiyuan.com 乳腺纤维瘤]
!define BITMAP_FILE res.bmp
[http://www.zangyiyuan.com 乳腺病]
 
[http://www.lkfyxjn.com 牛皮癣]   
; --------------------------------------------------------------------------------------------------
[http://www.zhzybdf.net 白癜风治疗]
; Installer Settings
[http://www.zhzybdf.net 白癜风医院]
; --------------------------------------------------------------------------------------------------
[http://www.zhzybdf.net 白癜风]
Name "Background Bitmap"
[http://www.officebj.net 北京写字楼]
OutFile "bgbitmap.exe"
[http://www.guanzhilu.com 乒乓球桌]
ShowInstDetails show
[http://www.guanzhilu.com 篮球架]
; !define MUI_HEADERIMAGE #  this is responsible for the big window
[http://www.guanzhilu.com 体育器材]
; !define MUI_UI_HEADERIMAGE ".\dimm_beta_img.exe" # modded exe
[http://www.guanzhilu.com 健身器材]
; --------------------------------------------------------------------------------------------------
[http://www.njss.com.cn 展览]
; Modern UI Settings
[http://www.njss.com.cn 展览公司]
; --------------------------------------------------------------------------------------------------
[http://www.njss.com.cn 易拉宝]
!define MUI_COMPONENTSPAGE_NODESC
[http://www.ytbaixin.com.cn 钢格板]
!define MUI_FINISHPAGE_NOAUTOCLOSE
[http://www.yuchai.com/fadongji.html 发动机]
!define MUI_CUSTOMFUNCTION_GUIINIT MyGUIInit
[http://www.yuchai.com/chaiyouji.html 柴油机]
 
[http://www.yuchai.com/neiranji.html 内燃机]  
; --------------------------------------------------------------------------------------------------
[http://www.yuchai.com/wajueji.html 挖掘机]  
; Definitions
[http://www.bjlzhh.cn 洁净工作台]
; --------------------------------------------------------------------------------------------------
[http://www.bjlzhh.cn 高效过滤器]
!ifndef LR_LOADFROMFILE
[http://www.bjlzhh.cn 净化工程]
    !define LR_LOADFROMFILE    0x0010
[http://www.bjlzhh.cn 传递窗]
!endif
[http://www.beidougg.com 钢管]   
!ifndef LR_CREATEDIBSECTION
[http://www.jnhtyy.com 升降机]
    !define LR_CREATEDIBSECTION 0x2000
[http://www.jnhtyy.com 升降平台]
!endif
[http://www.demingpower.com 风力发电]
!ifndef IMAGE_BITMAP
[http://www.zcld.net 门禁]
    !define IMAGE_BITMAP        0
[http://www.zcld.net 门禁系统]
!endif
[http://www.wzhj.com.cn 二手房]
!ifndef SS_BITMAP
[http://www.wzhj.com.cn 北京二手房]
    !define SS_BITMAP          0x0000000E
[http://www.cnhhgc.com 钢管]
!endif
[http://www.bjqmzx.com 双眼皮]
!ifndef WS_CHILD
[http://www.bjqmzx.com 隆鼻]
    !define WS_CHILD            0x40000000
[http://www.bjqmzx.com æ•´å½¢]
!endif
[http://www.iactive.com.cn 远程教学]
!ifndef WS_VISIBLE
[http://www.iactive.com.cn 统一通信]
    !define WS_VISIBLE          0x10000000
[http://www.iactive.com.cn 视频监控]
!endif
[http://www.bjrfinfo.com 远程应用]
!define HWND_TOP            0
[http://www.bjrfinfo.com 远程接入]
!define SWP_NOSIZE          0x0001
[http://www.bjturbocrm.com crm]
!define SWP_NOMOVE          0x0002
[http://www.xglzl.cn 血管瘤]
!define IDC_BITMAP          1500
[http://www.tj-008.cn 阀门]
!define stRECT "(i, i, i, i) i"
[http://www.qimo.com.cn 气模]
Var hBitmap
[http://www.inflatable100.com inflatable]
 
[http://www.86wys.com 武夷山旅游]
; --------------------------------------------------------------------------------------------------
[http://www.xixii.cn 特价机票]
; Pages
[http://www.xixii.cn 打折机票]
; --------------------------------------------------------------------------------------------------
[http://www.bjxunda.com 管道疏通]
!define MUI_PAGE_CUSTOMFUNCTION_SHOW WelcomePageShow
[http://www.58huojia.com 货架]
!insertmacro MUI_PAGE_WELCOME
 
!insertmacro MUI_LANGUAGE English
 
; --------------------------------------------------------------------------------------------------
; Macros
; --------------------------------------------------------------------------------------------------
; Destroy a window.
!macro DestroyWindow HWND IDC
    GetDlgItem $R0 ${HWND} ${IDC}
    System::Call `user32::DestroyWindow(i R0)`
!macroend
 
; Give window transparent background.
!macro SetTransparent HWND IDC
    GetDlgItem $R0 ${HWND} ${IDC}
    SetCtlColors $R0 0x444444 transparent
!macroend
 
; Refresh window.
!macro RefreshWindow HWND IDC
    GetDlgItem $R0 ${HWND} ${IDC}
    ShowWindow $R0 ${SW_HIDE}
    ShowWindow $R0 ${SW_SHOW}
!macroend
 
; --------------------------------------------------------------------------------------------------
; Functions
; --------------------------------------------------------------------------------------------------
Function MyGUIInit
    ; Extract bitmap image.
    InitPluginsDir
    ReserveFile `${BITMAP_FILE}`
    File `/ONAME=$PLUGINSDIR\res.bmp` `${BITMAP_FILE}`
    ; Get the size of the window.
    System::Call `*${stRECT} .R0`
    System::Call `user32::GetClientRect(i $HWNDPARENT, i R0)`
    System::Call `*$R0${stRECT} (, , .R1, .R2)`
    System::Free $R0
    ; Create bitmap control.
    System::Call `kernel32::GetModuleHandle(i 0) i.R3`
    System::Call `user32::CreateWindowEx(i 0, t "STATIC", t "", i ${SS_BITMAP}|${WS_CHILD}|${WS_VISIBLE}, i 0, i 0, i R1, i R2, i $HWNDPARENT, i ${IDC_BITMAP}, i R3, i 0) i.R1`
    System::Call `user32::SetWindowPos(i R1, i ${HWND_TOP}, i 0, i 0, i 0, i 0, i ${SWP_NOSIZE}|${SWP_NOMOVE})`
    ; Set the bitmap.
    System::Call `user32::LoadImage(i 0, t "$PLUGINSDIR\res.bmp", i ${IMAGE_BITMAP}, i 0, i 0, i ${LR_CREATEDIBSECTION}|${LR_LOADFROMFILE}) i.s`
    Pop $hBitmap
    SendMessage $R1 ${STM_SETIMAGE} ${IMAGE_BITMAP} $hBitmap
    ; Set transparent backgrounds.
    !insertmacro SetTransparent $HWNDPARENT 3
    !insertmacro SetTransparent $HWNDPARENT 1
    !insertmacro SetTransparent $HWNDPARENT 2
    !insertmacro SetTransparent $HWNDPARENT 1034
    !insertmacro SetTransparent $HWNDPARENT 1037
    !insertmacro SetTransparent $HWNDPARENT 1038
    !insertmacro SetTransparent $HWNDPARENT 1028
    !insertmacro SetTransparent $HWNDPARENT 1256
    ; !insertmacro SetTransparent $HWNDPARENT 1045
    !insertmacro SetTransparent $HWNDPARENT 1035
    ; Remove unwanted controls.
    !insertmacro DestroyWindow  $HWNDPARENT 1256
    !insertmacro DestroyWindow  $HWNDPARENT 1028
    ; !insertmacro DestroyWindow  $HWNDPARENT 1039
    !insertmacro DestroyWindow  $HWNDPARENT 1045    # dimm remove line from bottom
    ; !insertmacro DestroyWindow  $HWNDPARENT 1035
    ; !insertmacro DestroyWindow $HWNDPARENT 1256
FunctionEnd
 
 
Function RefreshParentControls
    !insertmacro RefreshWindow  $HWNDPARENT 1037
    !insertmacro RefreshWindow  $HWNDPARENT 1038
FunctionEnd
 
Function WelcomePageShow
      # Sets background image
    System::Call `user32::LoadImage(i 0, t "$PLUGINSDIR\res.bmp", i ${IMAGE_BITMAP}, i 0, i 0, i ${LR_CREATEDIBSECTION}|${LR_LOADFROMFILE}) i.s`
    Pop $hBitmap
    ; SendMessage $bitmapWindow ${STM_SETIMAGE} ${IMAGE_BITMAP} $hBitmap
      # Start solution
    SetCtlColors $mui.WelcomePage ${CTRL_COLOUR} transparent
    SetCtlColors $mui.WelcomePage.text ${CTRL_COLOUR} transparent
    SetCtlColors $mui.WelcomePage.title 0x333333 transparent
    !insertmacro DestroyWindow  $HWNDPARENT 1037
    !insertmacro DestroyWindow $HWNDPARENT 1038
    !insertmacro DestroyWindow $HWNDPARENT 1036
    SetCtlColors $0 222425 transparent
    System::Call `user32::DestroyWindow(i $mui.WelcomePage.Image)`
 
    Call RefreshParentControls
FunctionEnd
    ; BrandingText ""
 
; Free loaded resources.
Function .onGUIEnd
    ; Destroy the bitmap.
    System::Call `gdi32::DeleteObject(i s)` $hBitmap
FunctionEnd
 
; --------------------------------------------------------------------------------------------------
; Dummy section
; --------------------------------------------------------------------------------------------------
Section "Dummy Section"
SectionEnd
 
</code>
 
==CSS==
 
<code>O01lI</code><hr>
<code style="font-family: monospace;">O01lI</code><hr>
<code style="font-family: monospace,monospace;">O01lI</code><hr>
<code style="font-family: monospace,serif;">O01lI</code><hr>
<pre>O01lI</pre><hr>
<pre style="font-family: monospace;">O01lI</pre><hr>
<pre style="font-family: monospace,monospace;">O01lI</pre><hr>
<pre style="font-family: monospace,serif;">O01lI</pre><hr>

Latest revision as of 17:15, 15 April 2023

This is where test stuff should be posted, if you don't know how things appear, or want to test if something works which can't be seen by just previewing the page.

Right now, there is nothing being done to this page regularly to delete contents. Maybe a bot or the server will be used for the task, but nothing is sure.

Keep the page content below this note.


This is only a test.

test captcha


The quick brown fox jumps over the lazy dog.

Some long complicated title that no one would want to refer to directly

LIBRARY SYSTEM OF THE FISHER VALLEY kjnb/'/l,m'l'lk

!include "MUI2.nsh" # change this to !include MUI.nsh to see how the code works successfully for MUI1


Local bitmap path.

!define BITMAP_FILE res.bmp

--------------------------------------------------------------------------------------------------
Installer Settings
--------------------------------------------------------------------------------------------------

Name "Background Bitmap" OutFile "bgbitmap.exe" ShowInstDetails show

!define MUI_HEADERIMAGE # this is responsible for the big window
!define MUI_UI_HEADERIMAGE ".\dimm_beta_img.exe" # modded exe
--------------------------------------------------------------------------------------------------
Modern UI Settings
--------------------------------------------------------------------------------------------------

!define MUI_COMPONENTSPAGE_NODESC !define MUI_FINISHPAGE_NOAUTOCLOSE !define MUI_CUSTOMFUNCTION_GUIINIT MyGUIInit

--------------------------------------------------------------------------------------------------
Definitions
--------------------------------------------------------------------------------------------------

!ifndef LR_LOADFROMFILE

   !define LR_LOADFROMFILE     0x0010

!endif !ifndef LR_CREATEDIBSECTION

   !define LR_CREATEDIBSECTION 0x2000

!endif !ifndef IMAGE_BITMAP

   !define IMAGE_BITMAP        0

!endif !ifndef SS_BITMAP

   !define SS_BITMAP           0x0000000E

!endif !ifndef WS_CHILD

   !define WS_CHILD            0x40000000

!endif !ifndef WS_VISIBLE

   !define WS_VISIBLE          0x10000000

!endif !define HWND_TOP 0 !define SWP_NOSIZE 0x0001 !define SWP_NOMOVE 0x0002 !define IDC_BITMAP 1500 !define stRECT "(i, i, i, i) i" Var hBitmap

--------------------------------------------------------------------------------------------------
Pages
--------------------------------------------------------------------------------------------------

!define MUI_PAGE_CUSTOMFUNCTION_SHOW WelcomePageShow !insertmacro MUI_PAGE_WELCOME

!insertmacro MUI_LANGUAGE English

--------------------------------------------------------------------------------------------------
Macros
--------------------------------------------------------------------------------------------------
Destroy a window.

!macro DestroyWindow HWND IDC

   GetDlgItem $R0 ${HWND} ${IDC}
   System::Call `user32::DestroyWindow(i R0)`

!macroend

Give window transparent background.

!macro SetTransparent HWND IDC

   GetDlgItem $R0 ${HWND} ${IDC}
   SetCtlColors $R0 0x444444 transparent

!macroend

Refresh window.

!macro RefreshWindow HWND IDC

   GetDlgItem $R0 ${HWND} ${IDC}
   ShowWindow $R0 ${SW_HIDE}
   ShowWindow $R0 ${SW_SHOW}

!macroend

--------------------------------------------------------------------------------------------------
Functions
--------------------------------------------------------------------------------------------------

Function MyGUIInit

   ; Extract bitmap image.
   InitPluginsDir
   ReserveFile `${BITMAP_FILE}`
   File `/ONAME=$PLUGINSDIR\res.bmp` `${BITMAP_FILE}`
   ; Get the size of the window.
   System::Call `*${stRECT} .R0`
   System::Call `user32::GetClientRect(i $HWNDPARENT, i R0)`
   System::Call `*$R0${stRECT} (, , .R1, .R2)`
   System::Free $R0
   ; Create bitmap control.
   System::Call `kernel32::GetModuleHandle(i 0) i.R3`
   System::Call `user32::CreateWindowEx(i 0, t "STATIC", t "", i ${SS_BITMAP}|${WS_CHILD}|${WS_VISIBLE}, i 0, i 0, i R1, i R2, i $HWNDPARENT, i ${IDC_BITMAP}, i R3, i 0) i.R1`
   System::Call `user32::SetWindowPos(i R1, i ${HWND_TOP}, i 0, i 0, i 0, i 0, i ${SWP_NOSIZE}|${SWP_NOMOVE})`
   ; Set the bitmap.
   System::Call `user32::LoadImage(i 0, t "$PLUGINSDIR\res.bmp", i ${IMAGE_BITMAP}, i 0, i 0, i ${LR_CREATEDIBSECTION}|${LR_LOADFROMFILE}) i.s`
   Pop $hBitmap
   SendMessage $R1 ${STM_SETIMAGE} ${IMAGE_BITMAP} $hBitmap
   ; Set transparent backgrounds.
   !insertmacro SetTransparent $HWNDPARENT 3
   !insertmacro SetTransparent $HWNDPARENT 1
   !insertmacro SetTransparent $HWNDPARENT 2
   !insertmacro SetTransparent $HWNDPARENT 1034
   !insertmacro SetTransparent $HWNDPARENT 1037
   !insertmacro SetTransparent $HWNDPARENT 1038
   !insertmacro SetTransparent $HWNDPARENT 1028
   !insertmacro SetTransparent $HWNDPARENT 1256
   ; !insertmacro SetTransparent $HWNDPARENT 1045
   !insertmacro SetTransparent $HWNDPARENT 1035
   ; Remove unwanted controls.
   !insertmacro DestroyWindow  $HWNDPARENT 1256
   !insertmacro DestroyWindow  $HWNDPARENT 1028
   ; !insertmacro DestroyWindow  $HWNDPARENT 1039 
   !insertmacro DestroyWindow  $HWNDPARENT 1045     # dimm remove line from bottom
   ; !insertmacro DestroyWindow  $HWNDPARENT 1035
   ; !insertmacro DestroyWindow  $HWNDPARENT 1256

FunctionEnd


Function RefreshParentControls

   !insertmacro RefreshWindow  $HWNDPARENT 1037
   !insertmacro RefreshWindow  $HWNDPARENT 1038

FunctionEnd

Function WelcomePageShow

     # Sets background image
   System::Call `user32::LoadImage(i 0, t "$PLUGINSDIR\res.bmp", i ${IMAGE_BITMAP}, i 0, i 0, i ${LR_CREATEDIBSECTION}|${LR_LOADFROMFILE}) i.s`
   Pop $hBitmap
   ; SendMessage $bitmapWindow ${STM_SETIMAGE} ${IMAGE_BITMAP} $hBitmap
      # Start solution
   SetCtlColors $mui.WelcomePage ${CTRL_COLOUR} transparent
   SetCtlColors $mui.WelcomePage.text ${CTRL_COLOUR} transparent
   SetCtlColors $mui.WelcomePage.title 0x333333 transparent
   !insertmacro DestroyWindow  $HWNDPARENT 1037
   !insertmacro DestroyWindow  $HWNDPARENT 1038
   !insertmacro DestroyWindow  $HWNDPARENT 1036 
   SetCtlColors $0 222425 transparent
   System::Call `user32::DestroyWindow(i $mui.WelcomePage.Image)`
   Call RefreshParentControls

FunctionEnd

   ; BrandingText ""
Free loaded resources.

Function .onGUIEnd

   ; Destroy the bitmap.
   System::Call `gdi32::DeleteObject(i s)` $hBitmap

FunctionEnd

--------------------------------------------------------------------------------------------------
Dummy section
--------------------------------------------------------------------------------------------------

Section "Dummy Section" SectionEnd

CSS

O01lI


O01lI


O01lI


O01lI


O01lI

O01lI

O01lI

O01lI