Please help me System Restore point Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • arodney
    Forum Member
    • Sep 2010
    • 36

    Please help me System Restore point Error

    when i use the system Restore

    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 keep getting this dialog

    Click image for larger version

Name:	server_busy.png
Views:	1
Size:	24.8 KB
ID:	288193

    i have to keep hitting retry a few times before it goes through Is there anyway this can be solved this
  • jassing
    Indigo Rose Customer
    • Jan 2001
    • 3124

    #2
    WHEN do you get this?

    Comment

    • arodney
      Forum Member
      • Sep 2010
      • 36

      #3
      Originally posted by jassing View Post
      WHEN do you get this?
      I get this dialog After Installing and before Finished Install Window

      Comment

      • jassing
        Indigo Rose Customer
        • Jan 2001
        • 3124

        #4
        so what makes you think it has something to do with system restore points?
        What process is saying it's still busy?
        Have you used something like proexp to see what's running?
        I use sandboxie + sandboxiediff to test installers -- lets me easily see file& registry changes.

        Comment

        • arodney
          Forum Member
          • Sep 2010
          • 36

          #5
          Originally posted by jassing View Post
          so what makes you think it has something to do with system restore points?
          What process is saying it's still busy?
          Have you used something like proexp to see what's running?
          I use sandboxie + sandboxiediff to test installers -- lets me easily see file& registry changes.
          No i have not and i will download and try and see what happens . when i us the script on start up to scan and create restore point no server busy but when i use the script after all files are installed this is what happens

          Comment

          • jassing
            Indigo Rose Customer
            • Jan 2001
            • 3124

            #6
            Can you post your project file?

            Comment

            • arodney
              Forum Member
              • Sep 2010
              • 36

              #7
              Originally posted by jassing View Post
              Can you post your project file?
              Do u have team viewer if so i can allow you access to my pc to view

              Comment

              • jassing
                Indigo Rose Customer
                • Jan 2001
                • 3124

                #8
                No; that's overkill for lending a hand...
                let me know if you get any more details.

                Comment

                • arodney
                  Forum Member
                  • Sep 2010
                  • 36

                  #9
                  Originally posted by jassing View Post
                  No; that's overkill for lending a hand...
                  let me know if you get any more details.
                  here is the project maybe you can see what i don't see Project.suf

                  Comment

                  • jassing
                    Indigo Rose Customer
                    • Jan 2001
                    • 3124

                    #10
                    Here's what I did:
                    • Set all screens not to override theme (it used an image I didn't have)
                    • Remove dependency module to rule out third party
                    • removed all files in the install
                    • built the installer
                    • ran it


                    No problems...

                    BUT: the fact that you're calling it "all at once" is wrong -- it could be that windows itself is still "working" -- you should "start" your system restore before you install files; then call it again once you are done installing files *and* updating the registry.

                    Comment

                    • arodney
                      Forum Member
                      • Sep 2010
                      • 36

                      #11
                      It works fine in Win Xp the Server Busy only happens in Windows 7

                      Comment

                      • arodney
                        Forum Member
                        • Sep 2010
                        • 36

                        #12
                        Originally posted by jassing View Post
                        Here's what I did:
                        • Set all screens not to override theme (it used an image I didn't have)
                        • Remove dependency module to rule out third party
                        • removed all files in the install
                        • built the installer
                        • ran it


                        No problems...

                        BUT: the fact that you're calling it "all at once" is wrong -- it could be that windows itself is still "working" -- you should "start" your system restore before you install files; then call it again once you are done installing files *and* updating the registry.
                        I will try that and see what happens Thank you for your time and assistance

                        Comment

                        • jassing
                          Indigo Rose Customer
                          • Jan 2001
                          • 3124

                          #13
                          Just ran the exe from my previous attempt on win7x86 and it ran thru w/o issue.

                          Comment

                          Working...
                          X