mrbond007 Posted June 13, 2007 Share Posted June 13, 2007 @Big Daddy here's a small workaround that i'm currently implenting in my space regain script : expandcollapse popup#include <GUIConstants.au3> #include <GuiListView.au3> GUICreate("Uninstall Manager", 350, 440) $list = GUICtrlCreateListView("Values Found", 5, 5, 340, 430, $LVS_SORTASCENDING) _GUICtrlListViewSetColumnWidth($list, 0, 315) GUISetState() While 1 Local $ch1 $ch1 = $ch1 + 1 $keygen = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" $reg1 = RegEnumKey($keygen, $ch1) If @error <> 0 Then ExitLoop Else $reg2 = RegRead($keygen & "\" & $reg1, "DisplayName") $reg3 = RegRead($keygen & "\" & $reg1, "UninstallString") $reg4 = RegRead($keygen & "\" & $reg1, "DisplayIcon") If $reg2 = "" Then GUICtrlCreateListViewItem($reg1, $list) GUICtrlSetImage(-1, @SystemDir & "\shell32.dll", 131); Xp error icon Else GUICtrlCreateListViewItem($reg2, $list) If StringInStr($reg4, ",0") Then $reg4 = StringReplace($reg4, ",0", "") GUICtrlSetImage(-1, $reg4, 0) ElseIf $reg4 <> "" Then GUICtrlSetImage(-1, $reg4, 0) ElseIf StringInStr($reg3, '.exe') Then $reg5 = StringSplit($reg3, '.exe', 1) $reg6 = StringReplace($reg5[1], '"', '') $reg6 = $reg6 & '.exe' GUICtrlSetImage(-1, $reg6, 0) Else GUICtrlSetImage(-1, $reg3, 0) EndIf EndIf EndIf WEnd While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit WEnd Windows uses simillair methods to create icons for the list. Windows reads the "DisplayIcon" or "InstallLocation" value then uses something like _pathsplit and searches for the executable current icon. It's a little bit complicated (for me) but this is probably the only good way to get those icons displayed. Anyway the above example works on all windows versions form 95 till 2003 , as for Vista i don't know. Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted June 18, 2007 Author Moderators Share Posted June 18, 2007 @mrbond007 - This is similar to how I'm already pulling icons. I've debated on using the uninstall executable for pulling a few more icons, I've just been too lazy to implement it. As for this being a workaround for Uninstall Apps, it's highly unlikely as I use a much more complicated way of setting the icons and suspect that to be the problem. Thanks, Bob Link to comment Share on other sites More sharing options...
Dale2507 Posted September 9, 2007 Share Posted September 9, 2007 Ok i like the idea behind the program but i can't get it to work. Here's the log file because it won't uninstall anything: 2007-09-09 20:31:26 : Starting uninstall: Xvid 1.1.2 final uninstall 2007-09-09 20:31:26 : Computer: DALESLAPTOP 2007-09-09 20:31:26 : Key name: Xvid_is1 2007-09-09 20:31:26 : Uninstall path: "C:\Program Files\Xvid\unins000.exe" 2007-09-09 20:31:26 : Status: An unspecified error has occured. 2007-09-09 20:31:26 : Status: The registry key was not removed, the uninstall may have been unsuccessful. 2007-09-09 20:31:26 : Return code: 0 2007-09-09 20:31:26 : End uninstall: Xvid 1.1.2 final uninstall 2007-09-09 20:31:26 : ================================================================================ Secondly and thirdly, if you look below you will see that the silent icons are missing and also the icons on the left are 3 lines high as the x should be at xvid Is it a problem with the program or vista related? btw, i've got used to it being vista Deal or No Deal? Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted September 11, 2007 Author Moderators Share Posted September 11, 2007 @Gmail - Your icon problem is an easy one, just make sure the file "led.icl" is in the same directory as the script. As for the uninstall problem this may be a little more tricky. Can you verify that the following file does exist on "DALESLAPTOP"? "C:\Program Files\Xvid\unins000.exe" Link to comment Share on other sites More sharing options...
Dale2507 Posted October 14, 2007 Share Posted October 14, 2007 @Gmail - Your icon problem is an easy one, just make sure the file "led.icl" is in the same directory as the script. As for the uninstall problem this may be a little more tricky.Can you verify that the following file does exist on "DALESLAPTOP"?"C:\Program Files\Xvid\unins000.exe"Soz vista broke an had to wipe my laptop.don't have Xvid anymore. Deal or No Deal? Link to comment Share on other sites More sharing options...
MadBoy Posted October 17, 2007 Share Posted October 17, 2007 @big_daddyShouldn't the uninstall string for most MSI files be: MsiExec.exe /uninstall {A704BE7F-02BC-4EA4-BEE1-74DFBE0FA1FB} /qn /norestartwhile your program always suggests: MsiExec.exe /I{A704BE7F-02BC-4EA4-BEE1-74DFBE0FA1FB} /qn /norestartAt least those /uninstall work for me like a charm for CiscoVPN, Ipass etc Maybe worth checking out?2007-10-17 04:00:38 : Starting uninstall: iPassConnect2007-10-17 04:00:38 : Computer: E36403CD74C2007-10-17 04:00:38 : Key name: {A704BE7F-02BC-4EA4-BEE1-74DFBE0FA1FB}2007-10-17 04:00:38 : Uninstall path: MsiExec.exe /I{A704BE7F-02BC-4EA4-BEE1-74DFBE0FA1FB} /qn /norestart2007-10-17 04:00:39 : Status: An unspecified error has occured.2007-10-17 04:00:39 : Status: The registry key was not removed, the uninstall may have been unsuccessful.2007-10-17 04:00:39 : Return code: 30102007-10-17 04:00:39 : End uninstall: iPassConnect2007-10-17 04:00:39 : ================================================================================2007-10-17 04:03:24 : Starting uninstall: Cisco Systems VPN Client 4.8.01.03002007-10-17 04:03:24 : Computer: ELI-E36403CD74C2007-10-17 04:03:24 : Key name: {D25122BC-A60E-4663-B602-B01718F12044}2007-10-17 04:03:24 : Uninstall path: MsiExec.exe /I{D25122BC-A60E-4663-B602-B01718F12044} /qn /norestart2007-10-17 04:03:38 : Status: The registry key was not removed, the uninstall may have been unsuccessful.2007-10-17 04:03:38 : Return code: 02007-10-17 04:03:38 : End uninstall: Cisco Systems VPN Client 4.8.01.0300 My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
dnix Posted March 26, 2008 Share Posted March 26, 2008 I recompiled the code (always do out of paranoia) and now I am getting the following error:C:\uninstaller\UninstallApps.au3 (14) : ==> Can not redeclare a constant.: Global Const $WM_NOTIFY = 0x004E Global Const ^ ERROR>Exit code: 1 Time: 0.412I tried with latest general release AutoIT as well as beta. Link to comment Share on other sites More sharing options...
MadBoy Posted March 26, 2008 Share Posted March 26, 2008 I recompiled the code (always do out of paranoia) and now I am getting the following error:C:\uninstaller\UninstallApps.au3 (14) : ==> Can not redeclare a constant.: Global Const $WM_NOTIFY = 0x004E Global Const ^ ERROR>Exit code: 1 Time: 0.412I tried with latest general release AutoIT as well as beta.The code from BigDaddy isn't up to date with current versions. You need to comment out the Global Const as it's declared elswhere already. My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
dnix Posted March 26, 2008 Share Posted March 26, 2008 Well that allowed the code to flow past the declarations, but theres all kinds of other issues which I guess are related to the version used during the original. Its a shame, very nice tool. Link to comment Share on other sites More sharing options...
Swift Posted March 26, 2008 Share Posted March 26, 2008 Yeah, all the listviews need to be changed to have a _ in the middle of them, same with the status bar, if you fix all that it works... Link to comment Share on other sites More sharing options...
dnix Posted March 26, 2008 Share Posted March 26, 2008 Thanks R6V2. Almost works now, mostly functional even with just a couple of oddities. I did send 'big_daddy' a message wondering if he has or plans an update. Link to comment Share on other sites More sharing options...
Swift Posted March 26, 2008 Share Posted March 26, 2008 Thanks R6V2. Almost works now, mostly functional even with just a couple of oddities. I did send 'big_daddy' a message wondering if he has or plans an update.If alot of people want a newer version, im pretty sure he'll update for us! Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 26, 2008 Author Moderators Share Posted March 26, 2008 I have a huge update to this script that is almost ready. I'll see what I can do to get it finished in the next few days. Link to comment Share on other sites More sharing options...
dnix Posted March 26, 2008 Share Posted March 26, 2008 S-w-eeeeeeeeeeeeeeeee-t! Link to comment Share on other sites More sharing options...
dnix Posted March 31, 2008 Share Posted March 31, 2008 <pppllllllllbbbbbtttt> Heavy exhale! </pppllllllllbbbbbtttt> I was holding my breath over the weekend wondering if it might get updated! I'm not rushing, I was just retardedly over optimistic and I need to rachet down a bit. Link to comment Share on other sites More sharing options...
Swift Posted March 31, 2008 Share Posted March 31, 2008 (edited) <pppllllllllbbbbbtttt> Heavy exhale! </pppllllllllbbbbbtttt>I was holding my breath over the weekend wondering if it might get updated! I'm not rushing, I was just retardedly over optimistic and I need to rachet down a bit.Don't worry! He'll get it finished! Count on Big-Daddy!I'm ready for a new release, with a new icon! , This icon looks really blurry on my computer. Edited March 31, 2008 by R6V2 Link to comment Share on other sites More sharing options...
dnix Posted April 8, 2008 Share Posted April 8, 2008 poke Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted April 8, 2008 Author Moderators Share Posted April 8, 2008 poke I added what I have so far to the first post. Link to comment Share on other sites More sharing options...
Bert Posted April 8, 2008 Share Posted April 8, 2008 My MCafee antivirus my work uses is not liking the name you gave the file. No, I can't tweak it for they (Work) lock Mcafee down. Can you PM me the files in unzipped mode? please?? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
dnix Posted April 8, 2008 Share Posted April 8, 2008 Hey big_daddy, thanks for doing the work, and look forward to you final awesomeness! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now