NewsArchive
10-24-2013, 09:07 AM
For those interested here is the SB script I use to install and
register
at top of script in "defines"
(as you see here you can change the version number required (TWO vars)
!
////////////////////////////////////////////////////////////////////////////////
! CodeJock Installs
Set Variable %IS_64X_OS% to FUNCTION:Get System Info(WOW64 Status)
Set Variable %IS_INSTALL_CJ_VERSION% to "15.3.1"
#set compiler variable [CJ_VERSION_VAR] = "v15.3.1"
Set Variable %IS_INSTALL_CJ_FULL_NAME% to "Software\Codejock
Software\Xtreme SuitePro ActiveX v"
Set Variable %IS_INSTALL_CJ_FULL_NAME% to "%IS_INSTALL_CJ_VERSION%"
[Append Value]
Set Variable %IS_CJINSTALL_PATH% to FUNCTION:Get Registry Key
Value("Default") from "HKEY_CURRENT_USER\%IS_INSTALL_CJ_FULL_NAME%"
Set Variable %IS_INSTALL_COMMANDBAR% to "0"
Set Variable %IS_INSTALL_DOCKINGPANE% to "0"
Set Variable %IS_INSTALL_REPORTCONTROL% to "0"
Set Variable %IS_INSTALL_FLOWGRAPH% to "0"
Set Variable %IS_INSTALL_PROPERTYGRID% to "0"
Set Variable %IS_INSTALL_SYNTAXEDIT% to "0"
Set Variable %IS_INSTALL_CJ_COMMANDBAR_NAME% to
"Codejock.CommandBars.v"
Set Variable %IS_INSTALL_CJ_COMMANDBAR_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_COMMANDBAR_OCX% to
"%IS_INSTALL_CJ_COMMANDBAR_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_DOCKINGPANE_NAME% to
"Codejock.DockingPane.v"
Set Variable %IS_INSTALL_CJ_DOCKINGPANE_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_DOCKINGPANE_OCX% to
"%IS_INSTALL_CJ_DOCKINGPANE_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_REPORTCONTROL_NAME% to
"Codejock.ReportControl.v"
Set Variable %IS_INSTALL_CJ_REPORTCONTROL_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_REPORTCONTROL_OCX% to
"%IS_INSTALL_CJ_REPORTCONTROL_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_FLOWGRAPH_NAME% to "Codejock.FlowGraph.v"
Set Variable %IS_INSTALL_CJ_FLOWGRAPH_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_FLOWGRAPH_OCX% to
"%IS_INSTALL_CJ_FLOWGRAPH_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_PROPERTYGRID_NAME% to
"Codejock.PropertyGrid.v"
Set Variable %IS_INSTALL_CJ_PROPERTYGRID_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_PROPERTYGRID_OCX% to
"%IS_INSTALL_CJ_PROPERTYGRID_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_SYNTAXEDIT_NAME% to "Codejock.SyntaxEdit.v"
Set Variable %IS_INSTALL_CJ_SYNTAXEDIT_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_SYNTAXEDIT_OCX% to
"%IS_INSTALL_CJ_SYNTAXEDIT_NAME%.ocx"
If %IS_CJINSTALL_PATH% Does Not Equal "" Then
Set Variable %IS_CJINSTALL_PATH% to "\Bin" [Append Value]
Set Variable %IS_INSTALL_COMMANDBAR_CLSID% to FUNCTION:Get Registry
Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_COMMANDBAR_NAME%"
If %IS_INSTALL_COMMANDBAR_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_COMMANDBAR% to "1"
End
Set Variable %IS_INSTALL_DOCKINGPANE_CLSID% to FUNCTION:Get Registry
Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_DOCKINGPANE_NAME%"
If %IS_INSTALL_DOCKINGPANE_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_DOCKINGPANE% to "1"
End
Set Variable %IS_INSTALL_REPORTCONTROL_CLSID% to FUNCTION:Get
Registry Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_REPORTCONTROL_NAM E%"
If %IS_INSTALL_REPORTCONTROL_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_REPORTCONTROL% to "1"
End
Set Variable %IS_INSTALL_FLOWGRAPH_CLSID% to FUNCTION:Get Registry
Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_FLOWGRAPH_NAME%"
If %IS_INSTALL_FLOWGRAPH_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_FLOWGRAPH% to "1"
End
Set Variable %IS_INSTALL_PROPERTYGRID_CLSID% to FUNCTION:Get
Registry Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_PROPERTYGRID_NAME %"
If %IS_INSTALL_PROPERTYGRID_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_PROPERTYGRID% to "1"
End
Set Variable %IS_INSTALL_SYNTAXEDIT_CLSID% to FUNCTION:Get Registry
Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_SYNTAXEDIT_NAME%"
If %IS_INSTALL_SYNTAXEDIT_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_SYNTAXEDIT% to "1"
End
Else
If %IS_64X_OS% Equals "1" Then
Set Variable %IS_CJINSTALL_PATH% to "C:\Program Files
(x86)\Codejock Software\ActiveX\Xtreme SuitePro ActiveX
v%IS_INSTALL_CJ_VERSION%\Bin"
Else
Set Variable %IS_CJINSTALL_PATH% to "C:\Program Files\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX v%IS_INSTALL_CJ_VERSION%\Bin"
End
End
!
////////////////////////////////////////////////////////////////////////////////
In 'install and register all OCX's :
!
////////////////////////////////////////////////////////////////////////////////
If %IS_INSTALL_COMMANDBAR% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.CommandBars.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.CommandBars.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_COMMANDBAR_OCX%"
End
If %IS_INSTALL_DOCKINGPANE% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.DockingPane.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.DockingPane.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_DOCKINGPANE_OCX %"
End
If %IS_INSTALL_FLOWGRAPH% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.FlowGraph.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.FlowGraph.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_FLOWGRAPH_OCX%"
End
If %IS_INSTALL_PROPERTYGRID% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.PropertyGrid.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.PropertyGrid.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_PROPERTYGRID_OC X%"
End
If %IS_INSTALL_REPORTCONTROL% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.ReportControl.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.ReportControl.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_REPORTCONTROL_O CX%"
End
If %IS_INSTALL_SYNTAXEDIT% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.SyntaxEdit.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.SyntaxEdit.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_SYNTAXEDIT_OCX%"
End
!
////////////////////////////////////////////////////////////////////////////////
et voila <g>
Hoping this helps others ....
--
JP
__________________________________________________ _____
For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____
DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com
register
at top of script in "defines"
(as you see here you can change the version number required (TWO vars)
!
////////////////////////////////////////////////////////////////////////////////
! CodeJock Installs
Set Variable %IS_64X_OS% to FUNCTION:Get System Info(WOW64 Status)
Set Variable %IS_INSTALL_CJ_VERSION% to "15.3.1"
#set compiler variable [CJ_VERSION_VAR] = "v15.3.1"
Set Variable %IS_INSTALL_CJ_FULL_NAME% to "Software\Codejock
Software\Xtreme SuitePro ActiveX v"
Set Variable %IS_INSTALL_CJ_FULL_NAME% to "%IS_INSTALL_CJ_VERSION%"
[Append Value]
Set Variable %IS_CJINSTALL_PATH% to FUNCTION:Get Registry Key
Value("Default") from "HKEY_CURRENT_USER\%IS_INSTALL_CJ_FULL_NAME%"
Set Variable %IS_INSTALL_COMMANDBAR% to "0"
Set Variable %IS_INSTALL_DOCKINGPANE% to "0"
Set Variable %IS_INSTALL_REPORTCONTROL% to "0"
Set Variable %IS_INSTALL_FLOWGRAPH% to "0"
Set Variable %IS_INSTALL_PROPERTYGRID% to "0"
Set Variable %IS_INSTALL_SYNTAXEDIT% to "0"
Set Variable %IS_INSTALL_CJ_COMMANDBAR_NAME% to
"Codejock.CommandBars.v"
Set Variable %IS_INSTALL_CJ_COMMANDBAR_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_COMMANDBAR_OCX% to
"%IS_INSTALL_CJ_COMMANDBAR_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_DOCKINGPANE_NAME% to
"Codejock.DockingPane.v"
Set Variable %IS_INSTALL_CJ_DOCKINGPANE_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_DOCKINGPANE_OCX% to
"%IS_INSTALL_CJ_DOCKINGPANE_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_REPORTCONTROL_NAME% to
"Codejock.ReportControl.v"
Set Variable %IS_INSTALL_CJ_REPORTCONTROL_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_REPORTCONTROL_OCX% to
"%IS_INSTALL_CJ_REPORTCONTROL_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_FLOWGRAPH_NAME% to "Codejock.FlowGraph.v"
Set Variable %IS_INSTALL_CJ_FLOWGRAPH_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_FLOWGRAPH_OCX% to
"%IS_INSTALL_CJ_FLOWGRAPH_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_PROPERTYGRID_NAME% to
"Codejock.PropertyGrid.v"
Set Variable %IS_INSTALL_CJ_PROPERTYGRID_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_PROPERTYGRID_OCX% to
"%IS_INSTALL_CJ_PROPERTYGRID_NAME%.ocx"
Set Variable %IS_INSTALL_CJ_SYNTAXEDIT_NAME% to "Codejock.SyntaxEdit.v"
Set Variable %IS_INSTALL_CJ_SYNTAXEDIT_NAME% to
"%IS_INSTALL_CJ_VERSION%" [Append Value]
Set Variable %IS_INSTALL_CJ_SYNTAXEDIT_OCX% to
"%IS_INSTALL_CJ_SYNTAXEDIT_NAME%.ocx"
If %IS_CJINSTALL_PATH% Does Not Equal "" Then
Set Variable %IS_CJINSTALL_PATH% to "\Bin" [Append Value]
Set Variable %IS_INSTALL_COMMANDBAR_CLSID% to FUNCTION:Get Registry
Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_COMMANDBAR_NAME%"
If %IS_INSTALL_COMMANDBAR_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_COMMANDBAR% to "1"
End
Set Variable %IS_INSTALL_DOCKINGPANE_CLSID% to FUNCTION:Get Registry
Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_DOCKINGPANE_NAME%"
If %IS_INSTALL_DOCKINGPANE_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_DOCKINGPANE% to "1"
End
Set Variable %IS_INSTALL_REPORTCONTROL_CLSID% to FUNCTION:Get
Registry Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_REPORTCONTROL_NAM E%"
If %IS_INSTALL_REPORTCONTROL_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_REPORTCONTROL% to "1"
End
Set Variable %IS_INSTALL_FLOWGRAPH_CLSID% to FUNCTION:Get Registry
Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_FLOWGRAPH_NAME%"
If %IS_INSTALL_FLOWGRAPH_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_FLOWGRAPH% to "1"
End
Set Variable %IS_INSTALL_PROPERTYGRID_CLSID% to FUNCTION:Get
Registry Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_PROPERTYGRID_NAME %"
If %IS_INSTALL_PROPERTYGRID_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_PROPERTYGRID% to "1"
End
Set Variable %IS_INSTALL_SYNTAXEDIT_CLSID% to FUNCTION:Get Registry
Key Value("CLSID") from
"HKEY_CLASSES_ROOT\%IS_INSTALL_CJ_SYNTAXEDIT_NAME%"
If %IS_INSTALL_SYNTAXEDIT_CLSID% Does Not Equal "" Then
Set Variable %IS_INSTALL_SYNTAXEDIT% to "1"
End
Else
If %IS_64X_OS% Equals "1" Then
Set Variable %IS_CJINSTALL_PATH% to "C:\Program Files
(x86)\Codejock Software\ActiveX\Xtreme SuitePro ActiveX
v%IS_INSTALL_CJ_VERSION%\Bin"
Else
Set Variable %IS_CJINSTALL_PATH% to "C:\Program Files\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX v%IS_INSTALL_CJ_VERSION%\Bin"
End
End
!
////////////////////////////////////////////////////////////////////////////////
In 'install and register all OCX's :
!
////////////////////////////////////////////////////////////////////////////////
If %IS_INSTALL_COMMANDBAR% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.CommandBars.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.CommandBars.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_COMMANDBAR_OCX%"
End
If %IS_INSTALL_DOCKINGPANE% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.DockingPane.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.DockingPane.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_DOCKINGPANE_OCX %"
End
If %IS_INSTALL_FLOWGRAPH% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.FlowGraph.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.FlowGraph.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_FLOWGRAPH_OCX%"
End
If %IS_INSTALL_PROPERTYGRID% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.PropertyGrid.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.PropertyGrid.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_PROPERTYGRID_OC X%"
End
If %IS_INSTALL_REPORTCONTROL% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.ReportControl.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.ReportControl.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_REPORTCONTROL_O CX%"
End
If %IS_INSTALL_SYNTAXEDIT% Equals "0" Then
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
[CJ_VERSION_VAR]\Bin\Codejock.SyntaxEdit.[CJ_VERSION_VAR].ocx" to
"%IS_CJINSTALL_PATH%\Codejock.SyntaxEdit.[CJ_VERSION_VAR].ocx"
[Feat:Always Install]
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_SYNTAXEDIT_OCX%"
End
!
////////////////////////////////////////////////////////////////////////////////
et voila <g>
Hoping this helps others ....
--
JP
__________________________________________________ _____
For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____
DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com