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