Jump to content

Uninstall Apps -=Big_Daddy Style=-


big_daddy
 Share

Recommended Posts

@Big Daddy

here's a small workaround that i'm currently implenting in my space regain script :

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

Link to comment
Share on other sites

  • Replies 104
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Moderators

@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

  • 2 months later...

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

post-23582-1189366856_thumb.jpg

Is it a problem with the program or vista related?

btw, i've got used to it being vista

Link to comment
Share on other sites

  • Moderators

@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

  • 1 month later...

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

Link to comment
Share on other sites

@big_daddy

Shouldn't the uninstall string for most MSI files be: MsiExec.exe /uninstall {A704BE7F-02BC-4EA4-BEE1-74DFBE0FA1FB} /qn /norestart

while your program always suggests: MsiExec.exe /I{A704BE7F-02BC-4EA4-BEE1-74DFBE0FA1FB} /qn /norestart

At 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: iPassConnect

2007-10-17 04:00:38 : Computer: E36403CD74C

2007-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 /norestart

2007-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: 3010

2007-10-17 04:00:39 : End uninstall: iPassConnect

2007-10-17 04:00:39 : ================================================================================

2007-10-17 04:03:24 : Starting uninstall: Cisco Systems VPN Client 4.8.01.0300

2007-10-17 04:03:24 : Computer: ELI-E36403CD74C

2007-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 /norestart

2007-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: 0

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

  • 5 months later...

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

I tried with latest general release AutoIT as well as beta.

Link to comment
Share on other sites

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

I 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

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

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

<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

<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 by R6V2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...