SetupJuggler
11-17-2008, 11:04 AM
I'm Using SUF 8.1.1006.0
I used the example from http://www.indigorose.com/forums/showthread.php?t=19372&highlight=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.
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);
The Uninstall logfile shows
...
[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.
I used the example from http://www.indigorose.com/forums/showthread.php?t=19372&highlight=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.
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);
The Uninstall logfile shows
...
[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.