|
#1
|
|||
|
|||
|
Uninstall registry w. UninstallData does not work
I'm Using SUF 8.1.1006.0
I used the example from http://www.indigorose.com/forums/sho...=UninstallData to create my uninstall within <On Post Install> action. If I examine my Setup the registry entry is added to the registry, but on uninstall I got the error 1601. Code:
Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\_Company\\Product\\logging", "logfile", "C:\\logbook\\automated\\log.txt", REG_SZ);
-- Now update the uninstall so that the above registry value get deleted
sItemData = {ID="UISCRIPT_001", Timing=4, Script="Registry.DeleteKey(HKEY_LOCAL_MACHINE, \"SOFTWARE\\_Company\\Product\\logging\");"};
UninstallData.AddItem(UNINDATA_SCRIPTS, sItemData);
... [11/17/2008 16:47:47] Error Script: Extra Script: UISCRIPT_001, Line 1 (1601) [11/17/2008 16:47:47] Success Run extra uninstall script: 4 ... The example project and the log files are attached. Any idea what's wrong. |
|
#2
|
||||
|
||||
|
Ok, here is what I did:
Ulrich |
|
#3
|
|||
|
|||
|
Thanks, Ulrich.
Tried it out and worked fine. That's it. But I have to handle round about 50 registry entries, so I won't create a lot of special lua-function. So I tried the cleanup() function with parameters. And oops the parameter string lost its backslashes. that's the real bug. So I have to try why my string "Software\\_Company\\Product" went to "Software_CompanyProduct". Any idea? More backslashes? Or is it such a hard bug, no workaround exists. |
|
#4
|
|||
|
|||
|
Hi Ulrich,
your cleanup script inspires me Thank's a lot. ![]() Tried it with dublicated quotes, and oh suprise, that works fine. Code:
Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\_Company\\Product\\logging", "logfile", "C:\\logbook\\automated\\log.txt", REG_SZ);
-- Now update the uninstall so that the above registry value get deleted
-- 4 backslashes needed within script command string to work fine
sItemData = {ID="UISCRIPT_001", Timing=4, Script="Registry.DeleteKey(HKEY_LOCAL_MACHINE, \"SOFTWARE\\\\_Company\\\\Product\\\\logging\");"};
UninstallData.AddItem(UNINDATA_SCRIPTS, sItemData);
Udo |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My problem is how i uninstall registry , really it make me sick | melissa | Setup Factory 7.0 Discussion | 2 | 05-18-2007 07:35 AM |
| Uninstall registry settings | David Wellman | Setup Factory 7.0 Discussion | 9 | 04-11-2007 08:02 AM |
| Uninstall Data – Questions and Bugs (?) | csd214 | Setup Factory 7.0 Discussion | 5 | 06-21-2005 12:05 PM |
| UninstallData to Uninstall Existing Folders | kraigyb | Setup Factory 7.0 Discussion | 2 | 11-23-2004 09:07 AM |
| HOWTO: Include Uninstall Support | Support | Setup Factory 6.0 Knowledge Base | 0 | 09-26-2002 03:33 PM |
All times are GMT -6. The time now is 03:04 AM.









Linear Mode

