@echo off Rem Rem ÀÌ ½ºÅ©¸³Æ®´Â ODBC ·Î±× ÆÄÀÏ À§Ä¡¸¦ ¾÷µ¥ÀÌÆ®ÇÕ´Ï´Ù. Rem Rem ######################################################################### Rem Rem %RootDrive%°¡ ±¸¼ºµÇ¾ú´ÂÁö È®ÀÎÇÏ°í ÀÌ ½ºÅ©¸³Æ®¿¡ ´ëÇØ ¼³Á¤ÇÕ´Ï´Ù. Rem Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd" If "%_CHKROOT%" == "FAIL" Goto Done Rem ######################################################################### Rem ÇöÀç ¼³Ä¡ ¸ðµå¿¡ ÀÖÁö ¾ÊÀ¸¸é ¼³Ä¡ ¸ðµå·Î º¯°æÇÕ´Ï´Ù. Set __OrigMode=Install ChgUsr /query > Nul: if Not ErrorLevel 101 Goto Begin Set __OrigMode=Exec Change User /Install > Nul: :Begin ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\ODBC.Key ODBC.Key regini ODBC.Key > Nul: Rem ¿ø·¡ ¸ðµå°¡ ½ÇÇà ¸ðµå¿´À¸¸é, ½ÇÇà ¸ðµå·Î ´Ù½Ã º¯°æÇÕ´Ï´Ù. If "%__OrigMode%" == "Exec" Change User /Execute > Nul: Set __OrigMode= Echo. Echo SQL µ¥ÀÌÅÍ ¿øº»À» ±¸¼ºÇÒ ¶§ »ç¿ëÀÚ DSN ÅÇ¿¡¼­ [¿É¼Ç] ´ÜÃ߸¦ Echo Ŭ¸¯ÇÏ°í [ÇÁ·ÎÇÊ] ´ÜÃ߸¦ ´©¸£½Ê½Ã¿À. Echo Äõ¸® ·Î±× ¹× Åë°è ·Î±×¸¦ »ç¿ëÀÚ ·çÆ® µå¶óÀ̺ê Echo (%RootDrive%)¿¡ ÀúÀåÇϵµ·Ï º¯°æÇϽʽÿÀ. Echo. Echo ¶ÇÇÑ administrator°¡ ¸ðµç »ç¿ëÀÚ¿¡ ´ëÇÑ µ¥ÀÌÅÍ ¿øº»À» ±¸¼ºÇÒ ¼ö Echo ÀÖ½À´Ï´Ù. ¸ÕÀú, ¸í·É âÀ» ¿­°í "Change User /Install" ¸í·ÉÀ» Echo ÀÔ·ÂÇϽʽÿÀ. ±× ´ÙÀ½ µ¥ÀÌÅÍ ¿øº»À» ±¸¼ºÇϽʽÿÀ. Echo ¸¶Áö¸·À¸·Î ¸í·É â¿¡¼­ "Change User /Execute" ¸í·ÉÀ» ÀÔ·ÂÇϸé Echo ½ÇÇà ¸ðµå·Î µ¹¾Æ°©´Ï´Ù. Echo. Echo ODBC ´ÙÁß »ç¿ëÀÚ ÀÀ¿ë ÇÁ·Î±×·¥ Á¶Á¤ ¿Ï·á Pause :Done