The RT allows for the option of using either the registry or INI files, but regardless of which one you choose, there are registry values that the RT expects and these are always used (Priority 500)
The first part of Step One is to reset the log file used to read the progress bar values:
PUTINI('RT Engine','ProjectName' ,'' ,CLIP(DMC_RTPathData) & 'dmcrt.log')
PUTINI('RT Engine','TaskName' ,'' ,CLIP(DMC_RTPathData) & 'dmcrt.log')
PUTINI('RT Engine','CurrentProgress' ,'' ,CLIP(DMC_RTPathData) & 'dmcrt.log')
PUTINI('RT Engine','TotalProgress' ,'' ,CLIP(DMC_RTPathData) & 'dmcrt.log')
PUTINI('RT Engine','ProjectEnd' ,'' ,CLIP(DMC_RTPathData) & 'dmcrt.log')
Reset the INI files used to read values:
PUTINI('Path','Project' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'Driver' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'Server' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'User' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'Pwd' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'Port' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'DBName' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'SQL_Type' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'Path' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'CreateDB' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
PUTINI('DB' ,'MasterDB' ,'',CLIP(DMC_RTPathData) & 'dmc_rt.ini')
Then reset the registry entries the RT needs:
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','PathToUse' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_Driver' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_Server' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_User' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_Pwd' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_Port' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_CreateName' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_Type' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_CreateDB' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','DB_MasterDB' ,'')
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','Script_Path' ,'')
The following code places a value in the registry for the RT to check that its internal structure checks and needed conversions happen as a new version of the RT may have changed internal structures:
PUTREG(REG_CURRENT_USER,'SOFTWARE\CGF\Data Management Center RT','New Version',2)
And finally, set the owner name of the internal RT files so they open correctly. Do not change this value or your application won’t be able to open the needed files:
DMC:OWNER = '#Crypted@'
|