Page 1 of 1

No MODIFY button in ARP (add remove program)

Posted: Thu Jun 09, 2011 8:33 am
by wwanko
Hi everybody,

even if this was discussed quite a few times in this forum I can't seem to find a satisfying answer.
As the message subject states, I don't want ARP to show a modify option for my installed program.
So I checked the registry entry for my software and found that IA generates all three entries NoRemove, NoModify, NoRepair, all set to 1.
To my understanding this should lead to "no button at all" being shown in ARP.

I tried to modify the entries manually but this would not change a thing.
If writing to the registry is the solution, do the NoModify and NoRepair keys have to be there before IA generates it's entries?

Please can somebody shed some light on my problem?? This is the final tiny issue standing between me and a release....
:o
Thanks a lot
Wolfgang
(using the latest 10.10 IA Studio)

Re: No MODIFY button in ARP (add remove program)

Posted: Thu Jun 09, 2011 9:15 am
by bokkie
Wolfgang,

I might have found something. I too noticed the same three registry keys in HKLM\SOFTWARE\Microsoft\CurrentVersion\Installer (bold my emphasis).

Try adding them to HKLM\SOFTWARE\Microsoft\CurrentVersion\Uninstall\YourPackageName. I did that for one of my packages and it works ok. I'm using Win7 in case there's a registry difference between OS versions. It looks like you don't get those settings by default so yes, you will need to create them in your MSIcode.

Try that.

Edit: I noticed you're using 10.10 and I'm on 11. I'm quite sure though that it should be the same registry items you need to create.

Re: No MODIFY button in ARP (add remove program)

Posted: Thu Jun 09, 2011 9:32 am
by wwanko
Hi Bokkie,
And thanks for your answer!
In fact, I have those three entries exactly where you want me to generate them: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Product ID} and so on...

NoModify
REG_DWORD
0x1
NoRemove
REG_DWORD
0x1
NoRepair
REG_DWORD
0x1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\ does not show any signs of the three keys...

:(

I'm on Win 7 32 bit too..
Wolfgang

Re: No MODIFY button in ARP (add remove program)

Posted: Thu Jun 09, 2011 2:39 pm
by bokkie
Wolfgang, I'll have a look again when I get to the office in the morning. I'm at home now and my wife is barking orders at me. :)

Re: No MODIFY button in ARP (add remove program)

Posted: Fri Jun 10, 2011 2:11 am
by bokkie
Wolfgang,

Do the two screenshots help? I've based them on my installed FileZilla client and I show the registry edits I applied and how things look in the ARP. I get the same effect with my own installations. In other words, it works for me. Anyway, compare the screenshots for possible clues compared to your settings. Hope this helps in your mission. :)

Re: No MODIFY button in ARP (add remove program)

Posted: Fri Jun 10, 2011 6:11 am
by wwanko
Hello Peter,

And thanks again for your help...

So I did it... I did it wrong! I always changed registry entries here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Product ID}

BUT SHOULD HAVE CHANGED:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Product NAME}

Now everything works like a charm!
Me happy! Very happy! :P

Greetings from Munich!
Wolfgang

Re: No MODIFY button in ARP (add remove program)

Posted: Fri Jun 10, 2011 7:31 am
by bokkie
Glad to hear it. The reason you had a problem could be down to drinking too many of those excellent Bavarian lagers you have in Munich? :D

Re: No MODIFY button in ARP (add remove program)

Posted: Mon Jun 13, 2011 12:22 pm
by DanStutzman
WWanko,

You can also use $TITLE$ instead of [ProductName].