Re: Custom Uninstaller and App Manager

Tech-Archive recommends: Fix windows errors by optimizing your registry



I believe you can edit dialogs in MSI to remove buttons you don't want.



However, I dislike the whole approach you're taking. I would consider device
and desktop completely independent with respective installers not caring for
each other at all.

For example, what if device is lost or stolen? How user supposed to
uninstall desktop portion then? What if migration from one PC to another is
needed?

User would have to remove device portion destroying all settings he/she
might have?

I would suggest keeping uninstall button and just show a message prompting
user to remove application from device as his/here convenience.


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

"Neville Lang" <neville@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23$9DMNeGGHA.3176@xxxxxxxxxxxxxxxxxxxxxxx
> Ilya,
>
> I tried the "normal" way of adding the ARPNOREMOVE=1 property to the MSI
> file but found that the resulting Uninstall key in the desktop registry
> (at HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{my app's
> GUID }) added the NoRemove Value BUT the process did not create the
> ModifyPath and UninstallString Values when the NoRemove was added to the
> registry key. This had the side-effect that the AppMgr Uninstall did not
> call my custom uninstaller and so the desktop side was not removed.
>
> I found that if I left the MSI "as is", that is , with no additional
> ARPNOREMOVE=1, and manually added the NoRemove=1 to the registry key,
> where the ModifyPath and UninstallString Values were on the list,
> everything worked as expected. This seems like a better approach to
> achieve what I want.
>
> That only leaves the Change button on the ARP. For cases where I install a
> CAB onto a device using AppMgr, can the Change button also be hidden?
>
> If the Change button is clicked by the user, it pops up a Repair or Remove
> option. Hiding this button would leave my app's entry in the ARP as a
> secondary indicator that the desktop side EXEs have been installed, but it
> would not have any buttons. That leaves the actual removal of my app, from
> both the device and desktop side, to the ActiveSync AppMgr screen's Remove
> button.
>
> Regards,
> Neville Lang
>
>
>
>
> "Neville Lang" <neville@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:Ostli3JGGHA.1032@xxxxxxxxxxxxxxxxxxxxxxx
>> Ilya,
>>
>> Thank you for that clue - I will let you know how it turns out.
>>
>> Regards,
>> Neville Lang
>>
>>
>>
>> "Ilya Tumanov [MS]" <ilyatum@xxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:43c8160b$1@xxxxxxxxxxxxxxxxxxxxx
>>> You can remove "Remove" button from ARP, for example.
>>>
>>> Best regards,
>>>
>>> Ilya
>>>
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>>
>>> *** Want to find answers instantly? Here's how... ***
>>>
>>> 1. Go to
>>> http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
>>> 2. Type your question in the text box near "Search this group" button.
>>> 3. Hit "Search this group" button.
>>> 4. Read answer(s).
>>>
>>> "Neville Lang" <neville@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
>>> news:u2OtPsEGGHA.2680@xxxxxxxxxxxxxxxxxxxxxxx
>>>> Hi all,
>>>>
>>>> When I deploy my VS2003-compiled app, it installs EXEs to the desktop
>>>> side and uses the ActiveSync AppMgr to install the CAB to the device. I
>>>> also control the deployment using an MSI file and have a custom
>>>> installer and uninstaller on the desktop.
>>>>
>>>> After my app is installed, I have found that it can be Removed in two
>>>> places - i) the Remove button on ActiveSync's Tools -> Add/Remove
>>>> Programs and, ii) the Remove button for the app on the Add or Remove
>>>> Programs on the control panel. Removing my app using the Remove button
>>>> on ActiveSync (AppMgr) works perfectly as it has been setup to call my
>>>> uninstaller via the AppMgr INI file, and so things get tidied up on the
>>>> desktop side as well as the device side.
>>>>
>>>> However, if I (or one of my customers) decide to remove my app using
>>>> the Remove button in the Add or Remove Programs on the Control Panel,
>>>> the removal process fails. I assume at this point the uninstaller has
>>>> no knowledge that the app was installed on the device via AppMgr and so
>>>> the removal from the device does not happen.
>>>>
>>>> How can I prevent either i) the app from appearing on the Add or Remove
>>>> Programs list in Control Panel or ii) prevent the Remove button from
>>>> being operational on the Add or Remove Programs list and give a
>>>> reminder to use the ActiveSync Remove button instead? I will be
>>>> interested to know how others have got around this one when using MSI
>>>> deployment.
>>>>
>>>> Regards,
>>>> Neville Lang
>>>>
>>>>
>>>
>>>
>>
>>
>
>


.


Quantcast