Hello Fredrich,

You mean this as custom uninstall script ?

!
//////////////////////////////////////////////////////////////////////////////////////////////////

#pragma UNINSTALL = "1"

Set Variable %ROLLBACK_MODE% to "0"
Set Variable %UNINSTALL_COMMANDLINE% to FUNCTION:Get System
Info(Command Line)
If %UNINSTALL_COMMANDLINE% Contains "/UR" Then
Set Variable %ROLLBACK_MODE% to "1"
End

If %_SB_INSTALLERFLAG% Does Not Equal "1" on Position
"$SB_SILENTMODEFLAG$" Then
Display Message Box "#UNINST_CONFIRM#" -- "#UNINST_HEADING#"
Else
Set Variable %_SB_RETURN% to "$IDYES$"
End

If %_SB_RETURN% Equals "$IDYES$" Then
! Get registry values on PATHS
Set Variable %INSTALL_PATH% to FUNCTION:Get Registry Key
Value("Directory Installation") from
"HKEY_LOCAL_MACHINE\SOFTWARE\CGF\Data Management Center"
Set Variable %INSTALL_DATA_PATH% to FUNCTION:Get Registry Key
Value("Directory Data") from "HKEY_LOCAL_MACHINE\SOFTWARE\CGF\Data
Management Center"

! --- Process uninstall queue ---
Process Uninstall Queue

! Delete all folders and keys
Delete Tree "%INSTALL_DATA_PATH%"
Delete Tree "%INSTALL_PATH%"
Edit Registry (Remove key and all subkeys) "HKCU\SOFTWARE\CGF"=
Edit Registry (Remove key and all subkeys) "HKLM\SOFTWARE\CGF"=

If %_SB_ERRORCODE% Equals "0" And %_SB_INSTALLERFLAG% Does Not Equal
"1" on Position "1" Then
Display Message Box "#UNINST_FINISH#" -- "#UNINST_HEADING#"
End
End

Merci
(cheking to be sure I do not do a blunder)

--
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