NewsArchive
07-18-2012, 03:08 AM
hello all,
I am trying to use a global var to store the version used of codejock
activex
I would need to be able to "generalize" these lines (the ones where I
define the physical files to use)
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
v15.2.1\Bin\Codejock.CommandBars.v15.2.1.ocx" to
"%IS_CJINSTALL_PATH%\Codejock.CommandBars.v15.2.1.o cx" (Always
Install)
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_COMMANDBAR_OCX%"
All is "built" like this (in the top portion of the script) :
__________________________________________________ ____________________
!
////////////////////////////////////////////////////////////////////////////////
! CodeJock Installs
Set Variable %IS_64X_OS% to FUNCTION:Get System Info(WOW64 Status)
Set Variable %IS_INSTALL_CJ_VERSION% to "15.2.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_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"
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
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
!
////////////////////////////////////////////////////////////////////////////////
__________________________________________________ ____________________
Is there a "SB" way of doing this - thus avoiding me to change all BUT
the %IS_INSTALL_CJ_VERSION% value ?
Merci
--
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
I am trying to use a global var to store the version used of codejock
activex
I would need to be able to "generalize" these lines (the ones where I
define the physical files to use)
Install File "C:\Program Files (x86)\Codejock
Software\ActiveX\Xtreme SuitePro ActiveX
v15.2.1\Bin\Codejock.CommandBars.v15.2.1.ocx" to
"%IS_CJINSTALL_PATH%\Codejock.CommandBars.v15.2.1.o cx" (Always
Install)
Queue existing OCXs/DLLs/EXEs/TLBs file for self-registration
"%IS_CJINSTALL_PATH%\%IS_INSTALL_CJ_COMMANDBAR_OCX%"
All is "built" like this (in the top portion of the script) :
__________________________________________________ ____________________
!
////////////////////////////////////////////////////////////////////////////////
! CodeJock Installs
Set Variable %IS_64X_OS% to FUNCTION:Get System Info(WOW64 Status)
Set Variable %IS_INSTALL_CJ_VERSION% to "15.2.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_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"
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
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
!
////////////////////////////////////////////////////////////////////////////////
__________________________________________________ ____________________
Is there a "SB" way of doing this - thus avoiding me to change all BUT
the %IS_INSTALL_CJ_VERSION% value ?
Merci
--
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