From b4fe7e902636fdf15ae9c030991817f660950dd1 Mon Sep 17 00:00:00 2001 From: YPozdnyakov Date: Fri, 16 Jan 2015 20:14:07 +0200 Subject: [PATCH] [Summary]: delete some Preferences in the process of Tracks Live uninstall on windows --- .../TracksLiveSetup/TracksLiveSetup.isl | 11 ++++++---- .../scripts/preferences_cleanup.vbs | 20 +++++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 tools/windows_packaging/TracksLiveSetup/scripts/preferences_cleanup.vbs diff --git a/tools/windows_packaging/TracksLiveSetup/TracksLiveSetup/TracksLiveSetup.isl b/tools/windows_packaging/TracksLiveSetup/TracksLiveSetup/TracksLiveSetup.isl index fd3e39527f..c97f6fb652 100644 --- a/tools/windows_packaging/TracksLiveSetup/TracksLiveSetup/TracksLiveSetup.isl +++ b/tools/windows_packaging/TracksLiveSetup/TracksLiveSetup/TracksLiveSetup.isl @@ -271,6 +271,7 @@ NewBinary24C:\WS\GIT\tracks_daw\tracks\tools\windows_packaging\TracksLiveSetup\icons\Installer Banner.bmp NewBinary25C:\WS\GIT\tracks_daw\tracks\tools\windows_packaging\TracksLiveSetup\icons\Installer Banner.bmp NewBinary26C:\WS\GIT\tracks_daw\tracks\tools\windows_packaging\TracksLiveSetup\icons\Installer Splash.bmp + NewBinary27C:\WS\GIT\tracks_daw\tracks\tools\windows_packaging\TracksLiveSetup\scripts\preferences_cleanup.vbs NewBinary3<ISProductFolder>\Redist\Language Independent\OS Independent\Up.ibd NewBinary4<ISProductFolder>\Redist\Language Independent\OS Independent\WarningIcon.ibd NewBinary5C:\WS\GIT\tracks_daw\tracks\tools\windows_packaging\TracksLiveSetup\icons\Installer Splash.bmp @@ -2030,6 +2031,7 @@ SetARPINSTALLLOCATION51ARPINSTALLLOCATION[INSTALLDIR] SetAllUsersProfileNT51ALLUSERSPROFILE[%SystemRoot]\Profiles\All Users ShowMsiLog226SystemFolder[SystemFolder]notepad.exe "[MsiLogFileLocation]"Shows Property-driven MSI Log + remove_preferences1094NewBinary27 setAllUsersProfile2K51ALLUSERSPROFILE[%ALLUSERSPROFILE] setUserProfileNT51USERPROFILE[%USERPROFILE] @@ -6367,7 +6369,7 @@ Encoded Comment TimeStamp - COMPANY_NAME1033Waves Audio02023958064 + COMPANY_NAME1033Waves Audio0-2136801231 DN_AlwaysInstall1033Always Install01621317870 IDPROP_EXPRESS_LAUNCH_CONDITION_COLOR1033The color settings of your system are not adequate for running [ProductName].01621317870 IDPROP_EXPRESS_LAUNCH_CONDITION_OS1033The operating system is not adequate for running [ProductName].01621317870 @@ -7490,11 +7492,11 @@ ID_STRING141033Tracks Live01889785454 ID_STRING151033Tracks Live02023999979 ID_STRING161033Tracks Live02023970352 - ID_STRING21033http://www.WavesAudio.com02023958064 - ID_STRING31033Waves Audio02023958064 + ID_STRING21033http://www.waves.com/support0-2136765775 + ID_STRING31033Waves Audio0-2136801231 ID_STRING41033TracksLive01621309294 ID_STRING51033LAUNCH~1.EXE|Launch gdb.exe01621352975 - ID_STRING61033http://www.WavesAudio.com/support02023958064 + ID_STRING61033http://www.waves.com/support/support0-2136765775 ID_STRING71033US: +1-865-909-9200, Worldwide: +972-3-608-400001621317071 ID_STRING81033Tracks Live01621302927 ID_STRING91033Tracks Live01621351824 @@ -7736,6 +7738,7 @@ WriteEnvironmentStrings5200WriteEnvironmentStrings WriteIniValues5100WriteIniValues WriteRegistryValues5000WriteRegistryValues + remove_preferencesREMOVE="ALL"6405 setAllUsersProfile2KVersionNT >= 500980 setUserProfileNTVersionNT960 diff --git a/tools/windows_packaging/TracksLiveSetup/scripts/preferences_cleanup.vbs b/tools/windows_packaging/TracksLiveSetup/scripts/preferences_cleanup.vbs new file mode 100644 index 0000000000..61cf30a7de --- /dev/null +++ b/tools/windows_packaging/TracksLiveSetup/scripts/preferences_cleanup.vbs @@ -0,0 +1,20 @@ +' deletes Tracks Live Preferences +' except recent and config +Sub DeleteFile(filespec) + Dim fso + Set fso = CreateObject("Scripting.FileSystemObject") + If (fso.FileExists(filespec)) Then + fso.DeleteFile(filespec) + End If +End Sub + +Dim objNetwork +Set objNetwork = CreateObject("WScript.Network") +strUserName = objNetwork.UserName +path_to_preferences="c:\Users\"+strUserName+"\AppData\Local\Tracks Live\.config\" + +Call DeleteFile (path_to_preferences+"instant.xml") +Call DeleteFile (path_to_preferences+"sfdb") +Call DeleteFile (path_to_preferences+"ui_config") + +