NewsArchive
09-18-2012, 06:55 AM
I just wanted to mention that SB (again) helped me solve a "small
glitch" :
One of my (favorite) beta testers reported that for him an uninstaller
should clean out all files a software uses or creates
Of course as a dutiful "listener" to Fredrich's words I told him an
uninstaller can only remove what _IT_ had installed and not what the
software creates.
What do you think he told me ? <g> CHANGE your installer to install
_all_ !
I am a lazy dev as we all are so I read the SB docs and found ... how
to solve this problem in 5 minutes time with _NO_ change to my app :
Create a "custom uninstaller" and include it in your installer!
And all is now perfect : the uninstaller removes my reg keys and folder
tree created from the app and users have a _CLEAN_ machine.
add this code to the DEFAULT uninstall script SB creates for you :
! 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"
BEFORE these lines already there :
! --- Process uninstall queue ---
Process Uninstall Queue
and AFTER these lines add these lines :
! 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"=
Salt and pepper to taste :oÞ
Read the docs guys!
MERCI Fredrich.
--
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
glitch" :
One of my (favorite) beta testers reported that for him an uninstaller
should clean out all files a software uses or creates
Of course as a dutiful "listener" to Fredrich's words I told him an
uninstaller can only remove what _IT_ had installed and not what the
software creates.
What do you think he told me ? <g> CHANGE your installer to install
_all_ !
I am a lazy dev as we all are so I read the SB docs and found ... how
to solve this problem in 5 minutes time with _NO_ change to my app :
Create a "custom uninstaller" and include it in your installer!
And all is now perfect : the uninstaller removes my reg keys and folder
tree created from the app and users have a _CLEAN_ machine.
add this code to the DEFAULT uninstall script SB creates for you :
! 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"
BEFORE these lines already there :
! --- Process uninstall queue ---
Process Uninstall Queue
and AFTER these lines add these lines :
! 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"=
Salt and pepper to taste :oÞ
Read the docs guys!
MERCI Fredrich.
--
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