View Full Version : Registering Templates, Error 1
NewsArchive
06-02-2021, 08:11 AM
Anyone have an idea what this is about?
I'm getting close to tossing this spawn of Satan out into traffic and
watching someone run it over.... MY WORKSTATION THAT IS!
I cannot get ANY .TPL file to register even though they are installed.
Lee White
NewsArchive
06-02-2021, 08:15 AM
> I cannot get ANY .TPL file to register even though they are installed.
That's solved even when using /ConfigDir with no path, BUT...
Uninstall fails to unregister the templates although it does delete
them from the installed folder.
Friedrich I hope the attached screen captures and the uninstall log
provide some help and keep in mind this is when using /ConfigDir.
I'm going to get my other installs ready and ignore this for the time
being but a way to make the uninstall work would be nice.
Does the path to ClarionProperties.xml need to be retained in the log?
Lee White
NewsArchive
06-03-2021, 02:30 PM
Lee,
I'll setup a test VM to try to reproduce your /ConfigDir scenario. As far
as I know, nothing changed here in C11.1.
Did this same uninstall scenario work in previous C11 versions for you?
Friedrich
NewsArchive
06-03-2021, 02:31 PM
Lee,
quick question: are you using the "ClarionConfigDir.sbi" include script in
your project?
Friedrich
NewsArchive
06-03-2021, 02:31 PM
Friedrich,
> quick question: are you using the "ClarionConfigDir.sbi" include script in
> your project?
Yes but I also have script to attempt to handle /ConfigDir that puts
the ClarionProperties.xml in the bin\Settings folder.
I've attached a copy of the script lines in use.
> Did this same uninstall scenario work in previous C11 versions for you?
This is the first time I've attempted to support /ConfigDir with no
path so I have no idea. This is why I was wondering if the path in
%_SB_CONFIGDIR% needs to be retained in the uninstall log.
I've got the registration working with /ConfigDir with a path so I'm
moving on to the other install files, just curious about the uninstall
failing to unregister the templates.
--
Lee White
RPM Report Preview: http://www.cwaddons.com/products/rpm/
Creative Reporting: http://www.CreativeReporting.com
Hydrogen, the only CLEAN fuel and the future of clean air.
--------------------------------------------------------------------------------
If %_SB_DIALOGID% Equals "$CONFIGDIR_USED_DIALOG$" Then
! 1 2 3 4
! No, /ConfigDir is not used | Yes, but skip template registration (must be registered later, manually) | Yes, register using /ConfigDir= path provided in next dialog | Yes, using /ConfigDir with NO EQUAL SIGN or PATH
If %CONFIGDIR_USED% Equals "1" Then
Hide Wizard Dialog "CLARION_CONFIGDIR_DIALOG"
ElseIf %CONFIGDIR_USED% Equals "2" Then
Set Variable %REGISTER_TEMPLATES% to "0"
Hide Wizard Dialog "CLARION_CONFIGDIR_DIALOG"
ElseIf %CONFIGDIR_USED% Equals "3" Then
Show Wizard Dialog "CLARION_CONFIGDIR_DIALOG"
Set Variable %CONFIGDIR_PATH_SAVED% to "%CONFIGDIR_PATH%"
ElseIf %CONFIGDIR_USED% Equals "4" Then
Set Variable %CONFIGDIR_PATH% to "%CLARION_IDE_DIR%"
Set Variable %CONFIGDIR_PATH% to "\bin\settings" [Append Value]
If %CONFIGDIR_PATH% "Folder exists" Then
If %CONFIGDIR_PATH%\CLARIONPROPERTIES.XML "File exists" Then
Set Variable %CONFIGDIR_FOUND% to "1"
End
End
If %CONFIGDIR_FOUND% Equals "" Then
Display Message Box ("The optional path entered for /ConfigDir could not be verified. Please sele...", "Error")
Cycle Loop
End
Hide Wizard Dialog "CLARION_CONFIGDIR_DIALOG"
End
End
--and just before calling for template registration
If %REGISTER_TEMPLATES% Equals "1" on Position "1" Then
If %CONFIGDIR_FOUND% Equals "1" Then
If %CONFIGDIR_PATH% Does Not Equal "" Then
If %CONFIGDIR_USED% Equals "3" Then
Set Variable %_SB_CONFIGDIR% to "%CONFIGDIR_PATH%"
End
End
End
! failsafe attempt to get it to work
If %CONFIGDIR_USED% Equals "4" Then
Set Variable %_SB_CONFIGDIR% to "%CONFIGDIR_PATH%"
End
! my test message
/* Display Message Box ("CLARION_IDE = \n"%CLARION_IDE%"\n\n\nCONFIGDIR_USED = %CONFIGDIR_USED%\n\n_...", "Register Templates") */
Register all pending Clarion Templates in "%CLARION_IDE%"
If %_SB_ERRORCODE% Greater Than "0" Then
Display Message Box ("Error: %_SB_ERRORCODE%", "Error During Template Registration")
End
End
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.