Hello - during un-installation, I want to remove registry entries that were created by the application post-installation. From the help it seemed simple, call Delete Registry Key before Apply Uninstall, shown in the attached screen shot. But it doesn't work.
I've also tried adding the blank key under Setup Architecture\Registry of the Design tab, which was also suggested in the help file. That doesn't work either.
Any suggestions would be much appreciated.
Delete Registry Key not working
Delete Registry Key not working
- Attachments
-
- IA_OpenDSS.png (10.53 KiB) Viewed 13316 times
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Delete Registry Key not working
Dear User,
I have just executed a quick test over a test REG KEY under HKCU and it worked fine.
I used the call to Delete Registry command just after Apply Uninstall but, because it is a Direct execution command, it can be called anywhere.
For your convenience I used the following parameters with my test:
Let me know.
Regards
I have just executed a quick test over a test REG KEY under HKCU and it worked fine.
I used the call to Delete Registry command just after Apply Uninstall but, because it is a Direct execution command, it can be called anywhere.
For your convenience I used the following parameters with my test:
Code: Select all
~InstallAware Clipboard Data~
~Delete Registry~
~{7B97DE63-3227-4138-AA21-E013E2668C72}~
~1~
~Software\MyCompany\MyApplication~
~~
~TRUE~
Code: Select all
Delete Registry KEY HKCU\Software\MyCompany\MyApplication\*.*
Let me know.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Delete Registry Key not working
Same problem here.
Trying to delete registry entries under HKLM\Software\<manufacturer>.
This succeeds when there is a key with values but NO subkeys.
If there are subkeys under the key to be deleted, it does nothing.
This happens on 64bit Windows 7 after setting the installer to 64bit mode.
In 32bit mode it seems to be working as expected.
PaavoN
Trying to delete registry entries under HKLM\Software\<manufacturer>.
This succeeds when there is a key with values but NO subkeys.
If there are subkeys under the key to be deleted, it does nothing.
This happens on 64bit Windows 7 after setting the installer to 64bit mode.
In 32bit mode it seems to be working as expected.
PaavoN
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Delete Registry Key not working
Dear PaavoN,
I just verified and with my tests the Registry key deletion under HKLM works fine.
I used WIN 7 x64 and a native 64bit mode setup package, to verify the registry key deletion where several sub-keys are present.
If you can reproduce the issue with a very basic project, I will be happy to verify it.
Regards.
I just verified and with my tests the Registry key deletion under HKLM works fine.
I used WIN 7 x64 and a native 64bit mode setup package, to verify the registry key deletion where several sub-keys are present.
If you can reproduce the issue with a very basic project, I will be happy to verify it.
Regards.
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Delete Registry Key not working
Hi Francesco
Find below a test script I used to verify this.
Attached is also a reg file which I used to produce the reg entries.
This works in 32bit Windows 7 but not in 64bit Windows 7 and not in Windows Server 2008 R2.
Rgds
Paavon
~InstallAware Clipboard Data~
~Comment~
~{92A720F5-0FE5-4B3C-AFCE-8D1C37CE4E4B}~
~~
~End~
~{45C16865-6B0D-4081-B203-5DFF2145AF80}~
~Set 64 Bit Mode~
~{A2FEBBCC-2FCE-4F22-A6FD-5C3E9136FE60}~
~TRUE~
~FALSE~
~FALSE~
~If~
~{3DAF2832-FBDC-4DAE-90BD-15322C8A96A9}~
~IS_64BIT~
~0~
~TRUE~
~FALSE~
~Comment~
~{6940E86F-83C1-482F-8086-9CA0275D0255}~
~~
~MessageBox~
~{7E488D73-B908-422F-98B6-E638B0DF02B1}~
~After delete registry~
~Checked $REGKEY$, return = $RETVAL$~
~0~
~1~
~~
~Check Registry~
~{A6B0CB04-6C66-4A53-9CFE-D35BC3426DBD}~
~RETVAL~
~2~
~$REGKEY$~
~~
~Comment~
~{9063C9C1-56BD-40F4-9B7D-A0EBE4FD7630}~
~~
~Delete Registry~
~{6257964C-9D8B-447D-ADB6-F7DE023E9606}~
~2~
~$REGKEY$~
~~
~TRUE~
~Comment~
~{55D7BCF6-22F1-4B65-838F-0A036067509E}~
~~
~MessageBox~
~{EFF04C90-4201-46B7-B5A2-B4E2E73C749B}~
~Before delete registry~
~Checked $REGKEY$, return = $RETVAL$~
~0~
~1~
~~
~Check Registry~
~{94AEABAE-B27F-42D9-885E-3DA95940CFA2}~
~RETVAL~
~2~
~$REGKEY$~
~~
~Comment~
~{50CEBD6A-95E7-47D8-9C69-68D7FA2EFB0E}~
~~
~End~
~{064B76CB-1E25-46B5-8E9D-3C0046DCABFD}~
~Set 64 Bit Mode~
~{848E15B7-0F02-4C01-8FC1-6A11D762A503}~
~FALSE~
~FALSE~
~TRUE~
~If~
~{411EDB8B-6C39-4F6B-AB61-71C434F6F19B}~
~IS_64BIT~
~0~
~TRUE~
~FALSE~
~Comment~
~{A463FEB4-BC81-4272-9CAD-2D765ACA2B43}~
~~
~Set Variable~
~{5C02664D-9E8B-4C78-8A10-C409C90EF65C}~
~RETVAL$MYAH$MYAH$FALSE~
~~
~Set Variable~
~{93BB209B-A6C7-4EB1-9DAB-FCA5EA4114F1}~
~REGKEY$MYAH$MYAH$FALSE~
~SOFTWARE\DelRegTest~
~Comment~
~{0E0C03F9-6812-412E-A86E-8177E09E7375}~
~~
~Get System Settings~
~{322B2AC3-2438-4D3A-A5EF-4F751BACEB3C}~
~IS_64BIT~
~65~
~Set Variable~
~{665F3D44-012D-44C7-9465-7E1CD2674594}~
~IS_64BIT$MYAH$MYAH$FALSE~
~FALSE~
Find below a test script I used to verify this.
Attached is also a reg file which I used to produce the reg entries.
This works in 32bit Windows 7 but not in 64bit Windows 7 and not in Windows Server 2008 R2.
Rgds
Paavon
~InstallAware Clipboard Data~
~Comment~
~{92A720F5-0FE5-4B3C-AFCE-8D1C37CE4E4B}~
~~
~End~
~{45C16865-6B0D-4081-B203-5DFF2145AF80}~
~Set 64 Bit Mode~
~{A2FEBBCC-2FCE-4F22-A6FD-5C3E9136FE60}~
~TRUE~
~FALSE~
~FALSE~
~If~
~{3DAF2832-FBDC-4DAE-90BD-15322C8A96A9}~
~IS_64BIT~
~0~
~TRUE~
~FALSE~
~Comment~
~{6940E86F-83C1-482F-8086-9CA0275D0255}~
~~
~MessageBox~
~{7E488D73-B908-422F-98B6-E638B0DF02B1}~
~After delete registry~
~Checked $REGKEY$, return = $RETVAL$~
~0~
~1~
~~
~Check Registry~
~{A6B0CB04-6C66-4A53-9CFE-D35BC3426DBD}~
~RETVAL~
~2~
~$REGKEY$~
~~
~Comment~
~{9063C9C1-56BD-40F4-9B7D-A0EBE4FD7630}~
~~
~Delete Registry~
~{6257964C-9D8B-447D-ADB6-F7DE023E9606}~
~2~
~$REGKEY$~
~~
~TRUE~
~Comment~
~{55D7BCF6-22F1-4B65-838F-0A036067509E}~
~~
~MessageBox~
~{EFF04C90-4201-46B7-B5A2-B4E2E73C749B}~
~Before delete registry~
~Checked $REGKEY$, return = $RETVAL$~
~0~
~1~
~~
~Check Registry~
~{94AEABAE-B27F-42D9-885E-3DA95940CFA2}~
~RETVAL~
~2~
~$REGKEY$~
~~
~Comment~
~{50CEBD6A-95E7-47D8-9C69-68D7FA2EFB0E}~
~~
~End~
~{064B76CB-1E25-46B5-8E9D-3C0046DCABFD}~
~Set 64 Bit Mode~
~{848E15B7-0F02-4C01-8FC1-6A11D762A503}~
~FALSE~
~FALSE~
~TRUE~
~If~
~{411EDB8B-6C39-4F6B-AB61-71C434F6F19B}~
~IS_64BIT~
~0~
~TRUE~
~FALSE~
~Comment~
~{A463FEB4-BC81-4272-9CAD-2D765ACA2B43}~
~~
~Set Variable~
~{5C02664D-9E8B-4C78-8A10-C409C90EF65C}~
~RETVAL$MYAH$MYAH$FALSE~
~~
~Set Variable~
~{93BB209B-A6C7-4EB1-9DAB-FCA5EA4114F1}~
~REGKEY$MYAH$MYAH$FALSE~
~SOFTWARE\DelRegTest~
~Comment~
~{0E0C03F9-6812-412E-A86E-8177E09E7375}~
~~
~Get System Settings~
~{322B2AC3-2438-4D3A-A5EF-4F751BACEB3C}~
~IS_64BIT~
~65~
~Set Variable~
~{665F3D44-012D-44C7-9465-7E1CD2674594}~
~IS_64BIT$MYAH$MYAH$FALSE~
~FALSE~
- Attachments
-
- HKLM_Software_DelRegTest.reg.txt
- Example registry entries
- (442 Bytes) Downloaded 579 times
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Delete Registry Key not working
Let me try it.
Regards
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Delete Registry Key not working
Dear Paavon,
just to inform you that this issue has been logged to our fix list.
Currently, I don't if an update will be available and when.
Regards
just to inform you that this issue has been logged to our fix list.
Currently, I don't if an update will be available and when.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Delete Registry Key not working
Has this been fixed? It seems to not work for me using v18 build 7.1.14
Re: Delete Registry Key not working
CORRECTIONUpon further testing it is indeed working. My placement in the MSI code was a bit off and it took my brain a bit to catch up.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Delete Registry Key not working

Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 167 guests