when i use the system Restore
I keep getting this dialog
i have to keep hitting retry a few times before it goes through Is there anyway this can be solved this
Code:
-- Check to see if the system has system restore capability bSysRestoreAvailable = System.IsSystemRestoreAvailable(); if bSysRestoreAvailable then -- Restore is available, mark start point nSequenceNum = System.SetRestorePoint(SYSTEM_CHANGE_BEGIN, SYS_RESTORE_APP_INSTALL, 0, "Installed Sample Product v. 3.7") else -- Restore is unavailable, confirm with the user to continue nChoice = Dialog.Message("Restore Unavailable", "Your system does not support System Restore. Do you want to continue with the setup?", MB_YESNO, MB_ICONSTOP); if nChoice == 7 then -- The user chose not to continue, exit the script Application.ExitScript(); end end -- DO UPDATE TASKS HERE if bSysRestoreAvailable then -- Restore is available, mark end point nSequenceNum = System.SetRestorePoint(SYSTEM_CHANGE_END, SYS_RESTORE_APP_INSTALL, nSequenceNumber, "Installed Sample Product v. 3.7") -- Write sequence number to the registry for later use Registry.SetValue(HKEY_LOCAL_MACHINE, SessionVar.Expand("Software\\%CompanyName%\\%ProductName%\\RestorePointInfo"), "SequenceNumber", nSequenceNum, REG_SZ) end
i have to keep hitting retry a few times before it goes through Is there anyway this can be solved this
Comment