dimbat Цитата: InstallDir "$PROGRAMFILES\TightVNC"
SetOutPath "$INSTDIR"
разъясните плиз у меня при установке я путь указываю c:\OpenVPN
это и есть "$INSTDIR"
или это не принципиально
Добавлено: dimbat посмотрите плиз [more=еще вот]Section "TightVNC Компоненты"
InstallDir "$PROGRAMFILES\TightVNC"
SetOutPath "$INSTDIR"
################################################################################
;WriteRegStr HKEY_CURRENT_USER "Software\ORL" "" ""
;WriteRegStr HKEY_CURRENT_USER "Software\ORL\VNCHooks" "" ""
;WriteRegStr HKEY_CURRENT_USER "Software\ORL\VNCHooks\Application_Prefs" "" ""
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCHooks\Application_Prefs\WinVNC.exe" "use_GetUpdateRect" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCHooks\Application_Prefs\WinVNC.exe" "use_Timer" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCHooks\Application_Prefs\WinVNC.exe" "use_KeyPress" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCHooks\Application_Prefs\WinVNC.exe" "use_LButtonUp" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCHooks\Application_Prefs\WinVNC.exe" "use_MButtonUp" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCHooks\Application_Prefs\WinVNC.exe" "use_RButtonUp" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCHooks\Application_Prefs\WinVNC.exe" "use_Deferral" 0x1
;WriteRegStr HKEY_CURRENT_USER "Software\ORL\VNCviewer" "" ""
;WriteRegStr HKEY_CURRENT_USER "Software\ORL\VNCviewer\History" "0" "10.8.0.6"
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_0" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_1" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_2" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_3" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_4" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_5" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_6" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_7" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "use_encoding_8" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "preferred_encoding" 0x7
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "restricted" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "viewonly" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "fullscreen" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "scaling" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "8bit" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "shared" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "swapmouse" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "belldeiconify" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "emulate3" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "emulate3timeout" 0x64
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "emulate3fuzz" 0x4
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "disableclipboard" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "fitwindow" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "scale_den" 0x64
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "scale_num" 0x64
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "cursorshape" 0x1
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "noremotecursor" 0x0
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "compresslevel" 0xffffffff
WriteRegDWORD HKEY_CURRENT_USER "Software\ORL\VNCviewer\History\10.8.0.6" "quality" 0x6
;WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\ORL" "" ""
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "ConnectPriority" 0x2
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "LoopbackOnly" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "EnableHTTPDaemon" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "EnableURLParams" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "AllowLoopback" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "AuthRequired" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "DebugMode" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "DebugLevel" 0x2
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3" "DisableTrayIcon" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "SocketConnect" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "AutoPortSelect" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "InputsEnabled" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "LocalInputsDisabled" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "IdleTimeout" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "LocalInputsPriorityTime" 0x3
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "QuerySetting" 0x2
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "QueryTimeout" 0x1e
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "QueryAccept" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "QueryAllowNoPass" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "LockSetting" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "RemoveWallpaper" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "BlankScreen" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "EnableFileTransfers" 0x1
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "Password" daee2ea335e98cc1
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "PasswordViewOnly" daee2ea335e98cc1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "PollUnderCursor" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "PollForeground" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "PollFullScreen" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "OnlyPollConsole" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "OnlyPollOnEvent" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "PollingCycle" 0x12c
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "DontSetHooks" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "DontUseDriver" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "DriverDirectAccess" 0x1
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\ORL\WinVNC3\Default" "LocalInputsPriority" 0x0
############################### reg2nsis end #################################
;File "${HOME}\WinVNC.exe"
;File "${HOME}\VNCHooks.dll"
File "${HOME}\TightVNC\*.*"
Exec '"$INSTDIR\winvnc.exe" -kill'
Exec '"$INSTDIR\winvnc.exe" -install'
;nsExec::ExecToLog '"$PROGRAMFILES\TightVNC\winvnc.exe" -kill'
;nsExec::ExecToLog '"$PROGRAMFILES\TightVNC\winvnc.exe" -install'
nsExec::ExecToLog 'net start winvnc'
SectionEnd[/more]