So now it looks like this :


#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 RT"
Set Variable %INSTALL_DATA_PATH% to FUNCTION:Get Registry Key
Value("Directory Data") from "HKEY_LOCAL_MACHINE\SOFTWARE\CGF\Data
Management Center RT"

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

! Delete all folders and keys
If %ROLLBACK_MODE% Does Not Equal "1" Then
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"=
End

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


Sorry fir the bother but trying to understand
BTW what does UR/ mean please ?
I did not know the commandline was used for an uninstall so "grasping"
your tips here

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