GSI

인스톨쉴드에서 설치다되고나서 특정파일 실행하기 위한 방법



위와 같이 InstallScriptProject로 만드셔야 합니다.



다른 부분들은 다 아실겁니다.

해당 파일들을 추가하고 나서 위의 이미지와 같이 InstallScript 에서 OnMoved() 함수 안에 위의 코드를 추가 하면 됩니다.


//---------------------------------------------------------------------------

// OnMoved

//

// The OnMoved event is called as a result of the setup calling

// FeatureTransferData or FeatureMoveData. The event is called when

// all file transfer operations are completed except for batch

// self-registration which is performed immediately after this event returns.

// During uninstallation this event sent after uninstallation is completed,

// therefore you should not modify system state in this event.

//---------------------------------------------------------------------------

function OnMoved()

string svDir;

begin       

svDir = TARGETDIR^"aaaa.exe";

if(LaunchAppAndWait(svDir, "", WAIT) < 0) then

//MessageBox("aaa", SEVERE);

//else

// MessageBox("bbb", SEVERE);

endif;

end;

//---------------------------------------------------------------------------

// OnMoved




Posted by gsi
:

"Android virtual keyboard has white characters on white background "


Unity 5.4.0f3 (32-bit)

이 툴을 이용해서 작업하다가

안드로이드에서 Input Field의 글자가 아래 이미지 처럼 안보이는 현상이 나올때가 있습니다.

이때는 아래와 같이 저 구문을 넣으니 해결되는걸로 보이네요.


[이렇게 되어 있다면]

android:icon="@drawable/app_icon"

android:label="@string/app_name"


[이렇게 해보세요.!!]

android:icon="@drawable/app_icon"

android:label="@string/app_name"

android:theme="@style/UnityThemeSelector"


[관련 이미지]



Posted by gsi
:

bufferStr = "abcdefgh"


response.write LEFT(bufferStr, 4) & "<br>"

response.write MID(bufferStr, 5, 2) & "<br>"

response.write RIGHT(bufferStr, 4) & "<br>"


[결과]

abcd

ef

efgh





Posted by gsi
:

[asp 에 지메일 연동 방법]

  • 2차 보안설정만 하고 2차 보안설정은 하지 않음
  • 보안 수준이 낮은 앱의 엑세스가 가능하게 처리
  • 전달 및 POP/IMAP에 별도 설정은 하지 않아도 발송되는부분은 확인했습니다

지메일 설정항목은 아래 부분을 참조 하시면 됩니다.
  • 발신 메일(SMTP) 서버 - TLS 필요
    • smtp.gmail.com
    • 포트: 465 또는 587
    • SSL 필요: 예
    • 인증 필요: 예
    • 받는 메일 서버와 동일한 설정 사용
  • 이름 또는 표시 이름: [사용자 이름]
  • 계정 이름 또는 사용자 이름: 전체 Gmail 주소(username@gmail.com). Google Apps 사용자는 username@your_domain.com을 입력하세요.
  • 이메일 주소: 전체 Gmail 주소(username@gmail.com). Google Apps 사용자는 username@your_domain.com을 입력하세요.
  • 비밀번호: Gmail 비밀번호


메일 발송이 되지 않을시 아래 보안 수준이 낮은 앱을 사용 처리로 하면 정상적으로 발송이 되실거예요.


[ASP 소스]


<!--#Include Virtual="/Include/initialize.asp"-->

<!--#Include Virtual="/Include/DBCon.asp"-->

<!--#Include Virtual="/Include/Common.asp"-->


<!-- 메일 전송 -->

<%

'/////////////////////////////////////////////////////////////////

'SMTP 기본정보 입력

SMTP_USER = "유저아이디"

SMTP_PASS = "비밀번호"

SMTP_SERVER = "smtp.gmail.com"

SMTP_PORT = 465 ' SMTP 포트번호

SMTP_EMAIL_CERT_HTTP = "리턴받을 웹주소"


'// GUID 생성해서 값을 리턴하는 함수

Function fnGetGUID()

Dim myTypeLib

Set myTypeLib = Server.CreateObject("Scriptlet.Typelib")

fnGetGUID = myTypeLib.guid

Set myTypeLib = Nothing

End Function


'// GUID 생성하기

Dim strGUID

'// 좌우 {} 빼기

strGUID = Trim(fnGetGuid())

strGUID = Left(strGUID, Len(strGUID)-3)

strGUID = Right(strGUID, Len(strGUID)-1)

'Response.Write strGUID & "<br/>"


' 호출주소와 guid를 합친다.

SMTP_EMAIL_CERT_HTTP = SMTP_EMAIL_CERT_HTTP & strGUID

'Response.Write SMTP_EMAIL_CERT_HTTP


' Body

htmlBody = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>"

htmlBody = htmlBody & "<HTML>"

htmlBody = htmlBody & "<HEAD>"

htmlBody = htmlBody & "<TITLE> 이메일 인증 </TITLE>"

htmlBody = htmlBody & "</HEAD>"

htmlBody = htmlBody & "<BODY>"

htmlBody = htmlBody & "<table border='0' cellpadding='0' cellspacing='0' width='720' style='font-family: '맑은 고딕', '돋움', 'Dotum', sans-serif;font-size: 14px; font-weight: 400;text-align: left; background-color: #202835; color:#BFC1C5;-webkit-font-smoothing: antialiased;'>"

htmlBody = htmlBody & "<tbody>"

htmlBody = htmlBody & "<tr>"

htmlBody = htmlBody & "<td style='font-family: '맑은 고딕', 'Malgun Gothic', '애플산돌고딕네오', 'AppleSDGothicNeo', '애플고딕', 'AppleGothic', '돋움', 'Dotum', sans-serif;text-align: left; background-color: #242D3D; border-top-width: 1px; border-top-style: solid; border-top-color: #3E424E; color: #BFC1C5; padding: 0 30px 0 30px;'>"

htmlBody = htmlBody & "<br>" & SMTP_USERID & " 님, 안녕하세요.<br> <br>"

htmlBody = htmlBody & "이메일 주소를 인증하려면 아래 링크를 클릭해 주세요.<br>"

htmlBody = htmlBody & "<a href='" & SMTP_EMAIL_CERT_HTTP & "' target='_blank'>메일 인증하기</a><br> <br>"

htmlBody = htmlBody & "</td>"

htmlBody = htmlBody & "</tr>"

htmlBody = htmlBody & "</tbody>"

htmlBody = htmlBody & "</table>"

htmlBody = htmlBody & "</BODY>"

htmlBody = htmlBody & "</HTML>"


'Response.Write htmlBody


'이메일 smtp

Set iConf = Server.CreateObject("CDO.Configuration")

Set Flds = iConf.Fields

With Flds

        .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

        .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = SMTP_SERVER

        .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = SMTP_PORT

        .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

        .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = SMTP_USER

        .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = SMTP_PASS

        .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1

        .Update

End With

Set CDOMail = server.CreateObject("CDO.Message")

Set CDOMail.Configuration = iConf

CDOMail.From = "<userid@gmail.com>"  ' 자신의 E-mail 주소를 쓰세요

CDOMail.To = "<userid@gmail.com>"   ' 받는이도 자신의 E-mail 주소를 쓰세요

CDOMail.Subject = "인증 메일 입니다. 확인해 주세요."

CDOMail.HtmlBody = htmlBody

CDOMail.Fields.update

CDOMail.Send

response.write "발송완료"

Set Flds   = Nothing

Set iConf = Nothing

Set CDOMail = Nothing

%>



이상입니다.






Posted by gsi
:

[윈도우 서버 R2 보안강화 해제방법]



위와 같이 보안강화 구성 사용 상태가 되면 서버에서 인터넷 익스플로러를 열면 좀 귀찮아 집니다.

이 부분은 아래와 같이 해제하면 됩니다.



관리도구 > 서버 관리자 를 클릭 합니다.



왼쪽 탭에서 서버 관리자를 클릭 합니다.

오른쪽 보안 정보 탭에 IE ESC 구성 을 클릭 합니다.



사용안함 체크



위와 같이 인터넷 익스플로러를 열어서 보안 강화 구성이 사용되지 않습니다. 라는 메시지를 확인하면 됩니다.


이상입니다.




Posted by gsi
: