Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Sep 2010
    Posts
    36

    Grin 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. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    3,132
    WHEN do you get this?

  3. #3
    Join Date
    Sep 2010
    Posts
    36
    Quote Originally Posted by jassing View Post
    WHEN do you get this?
    I get this dialog After Installing and before Finished Install Window

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    3,132
    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.

  5. #5
    Join Date
    Sep 2010
    Posts
    36
    Quote 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

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    3,132
    Can you post your project file?

  7. #7
    Join Date
    Sep 2010
    Posts
    36
    Quote 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

  8. #8
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    3,132
    No; that's overkill for lending a hand...
    let me know if you get any more details.

  9. #9
    Join Date
    Sep 2010
    Posts
    36
    Quote 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

  10. #10
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    3,132
    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.

  11. #11
    Join Date
    Sep 2010
    Posts
    36
    It works fine in Win Xp the Server Busy only happens in Windows 7

  12. #12
    Join Date
    Sep 2010
    Posts
    36
    Quote 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

  13. #13
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    3,132
    Just ran the exe from my previous attempt on win7x86 and it ran thru w/o issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts