Andromo - Start Making Apps - Free Signup

Announcement

Collapse

New Forum Software

If you're here, you've found the new home for our forums. There will be some bugs to iron out, so thanks for your patience...
See more
See less

Please help me System Restore point Error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

    server_busy.png

    i have to keep hitting retry a few times before it goes through Is there anyway this can be solved this

  • #2
    WHEN do you get this?

    Comment


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

      Comment


      • #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


        • #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


          • #6
            Can you post your project file?

            Comment


            • #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


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

                Comment


                • #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


                  • #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


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

                      Comment


                      • #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


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

                          Comment

                          Working...
                          X