Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

uninstall from Add/Remove programs


17 replies to this topic

in_install

in_install
  • Members
  • 32 posts

Posted 15 February 2006 - 01:23

Hello,


During Uninstall, when I ckick .msi/exe, it uninstalls the product in UI mode. This is ok. But when I uninstall from Add/Remove programs in control Panel, the uninstallation is in silent mode with basic user feedback. I want when I click to remove from Add/Remove programs then also uninstallation will happen in UI mode. What settings are required for that.


pl help me

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 15 February 2006 - 14:01

That's not really supported in Windows Installer. Two possible workarounds:
- Disable the Remove button (ARPNOREMOVE) thus forcing your users to uninstall via Modify > Maintenance Type dialog
- Set ARPSYSTEMCOMPONENT so that Windows Installer doesn't create any uninstall entries in ARP, and use the Registry view to create your own uninstall registry entries.
In both cases the result will be non-standard behaviour which might be confusing to users.

Druid

Druid
  • Members
  • 21 posts

Posted 19 February 2006 - 13:03

ReQuestion:
Stefan Krueger,
but in other distribution kits written on InstallShield (MSI Project) I saw as at click on Uninstall.exe (and in Add/Remove window by button "Change/Remove") was caused full UI. How it was possible to them? (even presumably)

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 19 February 2006 - 20:25

They have either used workaround #2 mentioned in my previous post, or they have used the "InstallScript MSI" project type which causes the same effect.

Druid

Druid
  • Members
  • 21 posts

Posted 22 February 2006 - 15:08

QUOTE

- Set ARPSYSTEMCOMPONENT so that Windows Installer doesn't create any uninstall entries in ARP, and use the Registry view to create your own uninstall registry entries

Stefan Krueger, can you tell me, please, how to create my own uninstall registry entries (such to add a line in Add/Remove window and full UI for "Remove" button and for Uninstall.exe file)? (or where I can find such information)

Edited by Druid, 22 February 2006 - 15:43.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 February 2006 - 17:27

Look in your own registry to see samples - HKLM\Software\Microsoft\Windows\Current Version\Uninstall

Druid

Druid
  • Members
  • 21 posts

Posted 24 February 2006 - 15:23

I already saw it. But:

1. When I set ARPSYSTEMCOMPONENT = 1, InstallShield continue to create records in HKLM\Software\Microsoft\Windows\Current Version\Uninstall

2. If I try to change in key HKLM\...\Uninstall\{...} property UninstallString, it give not result.

3. If I delete in IS IDE from Sequences "RegisterProduct", then records in HKLM\...\Uninstall DON'T created, but in Add/Remove window still created record for my installation product.

There must be some other (more easier) way to create UI for uninstallation...

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 24 February 2006 - 16:30

Is this part working: After setting ARPSYSTEMCOMPONENT you don't see your product in Add/Remove Programs list? (Check the General Settings of your InstallShield project, too)

Druid

Druid
  • Members
  • 21 posts

Posted 24 February 2006 - 17:19

Yes, and after that I try to add my own record in HKLM\...\Uninstall by adding new key and properties DisplayName and UninstallString with value msiexec.exe /x{<ProductCode>} /qf. All work like I need, but in HKLM\...\Uninstall creating 2 records for 1 product - this is not professionally in my opinion...

Can I reach same results with 1 record in register?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 February 2006 - 12:29

QUOTE
but in HKLM\...\Uninstall creating 2 records for 1 product - this is not professionally in my opinion...

Why not?

Druid

Druid
  • Members
  • 21 posts

Posted 27 February 2006 - 20:40

A lot of aesthetic, but also one functional - this solution does not solve problem UI by call Uninstall.exe shortcut.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 February 2006 - 15:50

I don't know what Uninstall.exe is. Did you create it yourself?

Druid

Druid
  • Members
  • 21 posts

Posted 28 February 2006 - 17:06

I create it with option in Assistant "Application Shortcuts" page: "Create an uninstallation shortcut". (InstallShield 11.5)

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 February 2006 - 18:36

Kann ich nicht reproduzieren. Bei mir wird keine uninstall.exe angelegt, sondern der Shortcut verweist auf [SystemFolder]msiexec.exe. Die Kommandozeilenparameter sind /x {D6303886-5025-470E-9009-E0D0D9E76022} . Das könnest du z.B. ändern in /i {D6303886-5025-470E-9009-E0D0D9E76022} REMOVE=ALL oder ein benutzerdefiniertes Property verwenden über das du die von dir gewünschten Dialoge aufrufst. Oder einfach nur /i {D6303886-5025-470E-9009-E0D0D9E76022} um zum Wartungsdialog zu gelangen.

Edit: Sorry for my post in German language. Here is the English text:
I cannot reproduce this. For me it doesn't create an uninstall.exe but the shortcut is pointing to [SystemFolder]msiexec.exe. The command line parameters are /x {D6303886-5025-470E-9009-E0D0D9E76022} . You could change this to /i {D6303886-5025-470E-9009-E0D0D9E76022} REMOVE=ALL or use a custom property that you would use to display the dialogs you want. Or simply use /i {D6303886-5025-470E-9009-E0D0D9E76022} to display the maintenance dialog.


Druid

Druid
  • Members
  • 21 posts

Posted 01 March 2006 - 17:57

Yes, thank you!

But (!),
QUOTE
after that I try to add my own record in HKLM\...\Uninstall by adding new key and properties DisplayName and UninstallString with value msiexec.exe /x{<ProductCode>} /qf

How to add for this new record in Add/Remove window, at least, display property Size (like in all other programs - above Change/Remove button)?

And, if it possible, else properties: Used (frequency of use) and Last Used On. (but it is not necessarily)



Druid

Druid
  • Members
  • 21 posts

Posted 01 March 2006 - 23:25

I have observed, that standard record in Add/Remove window is formed from record of register HKEY_USERS\S-1-5-21-1545452614-2123500942-3424044065-500\Software\Microsoft\Installer\Products\CA2076D9A386A8442BD9C2F301FB1A92
Аnd on record from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall creates one more record in Add/Remove if in H_L_M\ ... \Uninstall put property WindowsInstaller = 0 (instead of 1)

Also have found one more copy of the description of uninstall-process on path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-1545452614-2123500942-3424044065-500\Products\CA2076D9A386A8442BD9C2F301FB1A92\InstallProperties, but what it is - has not cleared up yet.

Questions:
1. Whether it is possible to disable somehow showing record in Add/Remove from HKEY_USERS\S-1-5-21...\Software\Microsoft\Installer\Products\CA20... (in order to there will be only an output from HLM\ ... \Uninstall)? Simply to put ARPSYSTEMCOMPONENT will not help, as then it will be impossible to show anything about this product in Add/Remove.

2.Wherefrom this values takes:
S-1-5-21-1545452614-2123500942-3424044065-500 (it seems, it's constant for different installations)
and CA2076D9A386A8442BD9C2F301FB1A92 (it is not ProductCode and not UpdateCode)
And from what variables they can be got? (etc.)

Druid

Druid
  • Members
  • 21 posts

Posted 06 March 2006 - 13:55

Somebody, please help.

1. How to add in record in Add/Remove window property Size (like in all other programs - above Change/Remove button)?
Poroperties Size and EstimatedSize in register dont help...

or

2. How to disable showing record in Add/Remove from
HKEY_USERS\S-1-5-21-1545452614-21235...\Software\Microsoft\Installer\Products\CA2076D9A386A8442...?
(this record creates by default and record from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\...\Uninstall shows only if change property [b]WindowsInstaller[b] to 0).

Druid

Druid
  • Members
  • 21 posts

Posted 06 March 2006 - 15:58

On first question I found the answer myself: smile.gif
need add property InstallLocation with value [INSTALLDIR] (and if this record was already present in register - delete cache from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Management\ARPCache\[ProductCode]

There is remain only a second question...