.msp update files Questions

Discussion in 'Windows 7 Help and Support' started by c0nfuser, Feb 27, 2012.

  1. c0nfuser

    c0nfuser New Member

    Joined:
    Feb 27, 2012
    Messages:
    6
    Likes Received:
    0
    Hello,

    I just register to this great website/forum which many times helped me but now its time to create my own Thread :)

    Well,

    I want to install some .msp files but I want to be sure that the installation completed without any errors.
    Even if the return code is (0) Success is there any possibility to have corrupted files in my software?
    Is there anything which I can do to prevent that and be sure that my installation is 100% succesfull?

    If you have hint for VBS scripts are very welcome :)

    Thank you
     
  2. patcooke

    patcooke Microsoft MVP
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    May 16, 2010
    Messages:
    5,455
    Likes Received:
    268
    The file system will check the integrity of the msp file before it is applied. Returning a successful error code means that the update has been successfully executed by the update or hotfix programs. If any installed files were corrupted in the process it would not return a zero error code so you can be sure that the update has run successfully. I am not aware of anything that you either could or should need to do to ensure valid execution.
     
  3. c0nfuser

    c0nfuser New Member

    Joined:
    Feb 27, 2012
    Messages:
    6
    Likes Received:
    0
    Just taking the enviromental variable %errorlevel% right after the installation of the .msp is ok? Do you suggest to "trap" another exit code ? And how I can get it with a VBS?

    Cheers
     
    #3 c0nfuser, Feb 27, 2012
    Last edited: Feb 28, 2012

Share This Page

Loading...