SetupJuggler
09-04-2009, 08:42 AM
Hi,
using SF 8.1.1008.0
My suggestion for a new Setup Factory feature:
Log all the things done by LUA scripts for uninstall, if logging is switched ON by a new script function. The default for logging might be off, the today value. So I don#t have to be concerned about how to get all the stuff deleted by uninstall.
-- Descriction enable/disable logging for uninstall
-- returns the previous logging state
-- boolean UninstallData.EnableLog(boolean Enable = true)
-- returns the current state for logging
-- boolean UninstallData.GetLogState()
--Sample:
oldLogState = UninstallData.EnableLog();
-- will be uninstalled
Shell.CreateShortCut(Folder, Description, Target);
Folder.Create(Folder);
Registry.Createkey(MainKey, Subkey);
oldLogState = UninstallData.EnableLog(oldLogState);
-- will not be uninstalled
Shell.CreateShortCut(FolderSystem, DescriptionSystem, TargetSystem);
Regards,
Udo
using SF 8.1.1008.0
My suggestion for a new Setup Factory feature:
Log all the things done by LUA scripts for uninstall, if logging is switched ON by a new script function. The default for logging might be off, the today value. So I don#t have to be concerned about how to get all the stuff deleted by uninstall.
-- Descriction enable/disable logging for uninstall
-- returns the previous logging state
-- boolean UninstallData.EnableLog(boolean Enable = true)
-- returns the current state for logging
-- boolean UninstallData.GetLogState()
--Sample:
oldLogState = UninstallData.EnableLog();
-- will be uninstalled
Shell.CreateShortCut(Folder, Description, Target);
Folder.Create(Folder);
Registry.Createkey(MainKey, Subkey);
oldLogState = UninstallData.EnableLog(oldLogState);
-- will not be uninstalled
Shell.CreateShortCut(FolderSystem, DescriptionSystem, TargetSystem);
Regards,
Udo