How to Prevent or Supress Unexpected Return or Exit Codes in Successfully Installed Applications?

We have some Intel and HP application installation task sequences that are successful, but the end of the deployment there is always a yellow screen warning about unexpected return codes such as "14".
I think most of these are because the applications are looking for a interactive restart that is not done until the MDT task sequence does a reboot.  For instance, a task sequence that installs Intel AMT software and drivers pops up a dialog box asking
the user to click to restart now or restart later even though the command is run as "setup.exe -s."  Since no one clicks on this pop up and the machine reboots via the task sequence, it creates this unexpected return code. 
Are there additional command line switches that can be added to the task sequences to suppress the reboot prompts and make these applications exit gracefully without causing these warnings at the end of the deployment?

I usually create a powershell wrapper for applications that exit funny. An example would be -
#GET CURRENT DIR
$mydir = Split-Path -parent $MyInvocation.MyCommand.Path
#SET VARAIBLE TO PASS INSTALL COMMAND WITH SPACES
$command = @"
setup.exe /s
#MOVE TO INSTALL DIR
Set-Location C:\Install\Folder\
#RUN INSTALL
cmd.exe /c ""$command | out-null
#EXIT CLEANLY
exit 0
Save this script inside where your Application is located, and then create an application that runs the script inside of the Deployment Workbench.  The only problem with this is you need to be sure your install works, as you're basically just ignoring
any errors the application has.  Down at the bottom, you can see the exit being passed back to MDT to continue cleanly.  Good luck.
I don't understand how to do this sine I have never users Powershell in MDT.
Do I just edit the script changing C:\Install\Folder to the actual local path the application is stored on in the MDT server?
Do I just name it with a .PS1 extension and run it as a command line or as an application?

Similar Messages

  • Returned Failure Exit Code 1603

    I am having an issue with one server in particular trying to install the CM client. The server is running Server 2008 R2 and is used as our primary file server.
    ccmsetup.log repeats the following line...
    ![LOG[File 'C:\Windows\ccmsetup\vcredist_x86.exe' returned failure exit code 1603. Fail the installation.]LOG]!><time="12:27:07.395+300" date="06-04-2012" component="ccmsetup" context="" type="3" thread="4288" file="manifest.cpp:1972">
    <![LOG[Installing file 'C:\Windows\ccmsetup\vcredist_x86.exe' with options '/q:a /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "'.]LOG]!><time="12:27:07.395+300" date="06-04-2012" component="ccmsetup" context="" type="1" thread="4288" file="manifest.cpp:1923">

    I saw a similar issue in the c:\windows\ccmsetup\logs directory...
    It turns out that the user had an external drive connected which had more free space available than what was available on the local C:\ drive.
    I believe the installer logic says to deflate the contents of the vcredist.exe package to the drive with the most available free space and then for some reason or another the installation routine cannot continue.
    Out of interest, does the server in question have either a local or removable disk with more free space than the local C:\ drive? Perhaps a Mounted LUN or a mapped CIFS volume?

  • Vcredist_x86.exe returned failure exit code 1602

    Client install is failing where I have copied source files to a restricted server and initiated install with /source.
    Installing file 'C:\Windows\ccmsetup\vcredist_x86.exe' with options '/q /norestart /c:"msiexec /i vc_red.msi /qn REBOOT=ReallySuppress" /msioptions "REBOOT=ReallySuppress"'. ccmsetup 12/8/2014 2:51:06 PM 4808 (0x12C8)
    File 'C:\Windows\ccmsetup\vcredist_x86.exe' returned failure exit code 1602. Fail the installation. ccmsetup 12/8/2014 3:01:18 PM 4808 (0x12C8)
    InstallFromManifest failed 0x80070642 ccmsetup 12/8/2014 3:01:18 PM 4808 (0x12C8)
    I have only Port 80 and 8530 opened on this restricted server talking to Primary Site Server (SCCM 2012 R2).
    Thanks

    Its VC++ 2010.
    Interesting after 8530 port opened... at 8pm CCMSetup installed fine from retry:
    Running on platform X64 ccmsetup 12/8/2014 8:01:22 PM 3828 (0x0EF4)
    Updated security on object C:\Windows\ccmsetup\cache\. ccmsetup 12/8/2014 8:01:22 PM 3828 (0x0EF4)
    Launch from folder C:\Windows\ccmsetup\ ccmsetup 12/8/2014 8:01:22 PM 3828 (0x0EF4)
    CcmSetup version: 5.0.7958.1000 ccmsetup 12/8/2014 8:01:22 PM 3828 (0x0EF4)
    Running on 'Microsoft Windows Server 2008 R2 Standard ' (6.1.7601). Service Pack (1.0). SuiteMask = 272. Product Type = 18 ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    Ccmsetup command line: C:\Windows\ccmsetup\ccmsetup.exe "/source:C:\Temp\SCCM2012Agent\Client" /RetryWinTask:1 ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    Command line parameters for ccmsetup have been specified.  No registry lookup for command line parameters is required. ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    Command line: C:\Windows\ccmsetup\ccmsetup.exe "/source:C:\Temp\SCCM2012Agent\Client"
    /RetryWinTask:1 ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    SslState value: 224 ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    No version of the client is currently detected. ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    Folder 'Microsoft\Configuration Manager' not found. Task does not exist. ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    Updated security on object C:\Windows\ccmsetup\. ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    A Fallback Status Point has not been specified.  Message with STATEID='100' will not be sent. ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    ccmsetup service is stopped. ccmsetup 12/8/2014 8:01:23 PM 3828 (0x0EF4)
    Successfully deleted the ccmsetup service ccmsetup 12/8/2014 8:01:28 PM 3828 (0x0EF4)
    Successfully created the ccmsetup service ccmsetup 12/8/2014 8:01:28 PM 3828 (0x0EF4)
    Could you please confirm what other ports are required apart from 80 (communication to Primary site server) and 8530 (updates/defs)?
    Thanks

  • Return Custom Exit Code

    Hello Experts,
    We are using Wise Script Wrappers to run Microsoft Updates (KB). Wise Script has Exit Installation Command through which we can control the Custom Exit codes return by the setup (Wrapper) .
    Case 1
    In our case when we use shutdown.exe at the end  after installation of KB's to reboot the machine the exit code reflected in sccm is 0 though we set Exit code 100 in Wrapper.
    Case 2
    When we dont reboot at the end of installation that is we dont use Shutdown.exe the Exit code return is 100.
    We cannot use Config manager restarts computer due to our business needs
    So Any help will be appreciated on how we can  control the custom exit codes
    Thanks,
    Apppack

    So the real question is why are you using non-standard exit codes?If you do non-standard things, you will get non-standard results.
    As Jérémy pointed out 3010 means "The requested operation is successful. Changes will not be effective until the system is rebooted." There are actually other standard error codes that indicate a pending reboot also but 3010 is the most common. A complete
    list of standard error codes is available at http://msdn.microsoft.com/en-us/library/cc231199.aspx.
    Jason | http://blog.configmgrftw.com

  • How to prevent the access of more than one person to an APEX application?

    Hello,
    I want to prevent the access to an application when it is already opened by another user.
    How to do it?
    Thank you by advance
    Jean-Louis

    Why would you want to do this? APEX applications are MEANT to be MULTI-USER WEB BASED APPLICATIONS? This makes NO SENSE..
    If you need this functionality, you can do this in Access..
    Thank you,
    Tony Miller
    Webster, TX

  • How to prevent the save message when program exit vi is used

    I am using the Quit LabVIEW vi and am getting the Save/Don't Save/Cancel dialog each time the operator quits the program.  The reason is objects on the screen have been resized.  The vi properties for window appearance are scroll bars off.  This is a base development package so the program runs in the environment.  I would like to allow the operator to exit without seeing this message.  LV 8.5, Win XP
    Thank you.
    Solved!
    Go to Solution.

    sfm,
    The best way to do this is by incorporating a source code control depository.  Set your LabVIEW.ini options to configure the source code control and to treat read only vi's as locked.  Edits will only be allowed if the code is checked out of source code control and that prevents the operator moving or resizing the FP objects accidentally.  You should not allow your operators to make code changes!  Operators operate, developers edit code.  It is common to have operators who are also developers BUT, the functions must be kept separated.  
    What I mean is that the user is either trying to make the code do what it needs to do (developing - so code changes are desirable.) OR the user is trying to use the code to do its intended function (operating - so code change is not just undesirable, it is BAD!)
    The pop-up is not just annoying, it indicates that code control does not exist! You need better logistics to prevent code maintenance headaches of biblical proportions.
    Jeff

  • How to prevent Creative Suite apps setting the creator code?

    I've just exported a PDF from InDesign CS4. Despite my default app for PDFs being Preview, it's opening in Acrobat.
    It was bad enough having Photoshop CS3's exported JPEGs open in Photoshop rather than Preview by default, but now the disease seems to be spreading.
    How can I disable this behaviour on Mac OS 10.5? (No, doing a Get Info on every file I export is not a valid answer! )
    Surely the Creative Suite apps should have an option as to whether creator codes are set? They've got enough other options, after all…
    (I know Snow Leopard fixes this by ignoring creator codes — please, Adobe, don't try and find a workaround for this without making it optional!)
    Thanks

    Thanks, but I'm afraid the default for .jpg and .pdf is already to load in Preview. Surely all that fix will do is alter any files CS4 has already exported (and possibly anything where I've explicitly overridden the default app) but not future exports?
    I need a fix that I set once, and then CS4 takes the hint that I know best about what programs should open what files (ie it stops setting creator codes).
    At least when I can get this old iMac replaced, the new one will have Snow Leopard and the OS will finally ignore the creator codes and just use the default app that I set. About time Apple fixed that…

  • How to check if a specific file exist and which exit code to use ?

    Hi, First I'm not a scripting guy and I know almost nothing about VB scripting.
    I have a deployment of 6 tasks and I want to make sure that step # 2 will not be process if it failed in step #1, and so on for the 6 task.
    To do this, i have to run a vb script before installation or uninstalltion on each steps
    I'm trying to use a script (not from me) that i have modified for pre-uninstallation of software and also post-installation of the software.
    Pre-uninstallation: The script will look if the specified "exe" exist on the server and if so, than it will run the msiuninstall "application_name".
    If the uninstallation is successful, the post-installation script will check if the "exe" file exist again on the server, and it shouldn't find it (because it was deleted from the uninstallation), than it will return an exit code of successful
    to run the next process.
    Here an example:
    Step 1: Uninstall "Software#1" with msiuninstall Software#1.exe command
    Step 2: Uninstall "Software#2" with msiuninstall Software#2.exe command
    Step 3: Install "Software #3"with an .exe extension
    Step 4: Re install "Software #2" with an .msi extension
    Step 5: Re install "Software #1" with a .msi extension.
    Step 6: Send email to confirm the deployment is successful
    So i need to validate that step #2 will not process step #3 if it failled on # 2. It need to validate if the file exist before and after.
    At the end, Step 6 should send an email to confirm that the 6 steps of the deployment was completed without errors.
    Any idea how to do it ?
    Many many thanks for all the help !
    A desperate guy :)
    This is what i have
    'This script will look if an .exe file exist for a specific application.
    '=============================================================================================
    path = WScript.Arguments.Item(0)
    set objFSO = CreateObject("Scripting.FileSystemObject")
    If objFSO.FileExists(C:\Inetpub\wwwroot\Enterprise\EnterpriseWS\web.config) = true then
        exitCode = 0
    else
        exitCode = 1
    End If
    Wscript.Quit exitCode

    Since you are not a scripting guy here is a very good place to start:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • Installing SQL Server 2008 R2 via command line - setup100.exe returned exit code 0x84BC06B2

    I am receiving an exit code 0x84BC06B2 when installing SQLExpress via the command line on a PC that also has SQL Server 2012 installed.  Below is the log file generated:
    11/18/2014 01:02:41.631 Help display: false
    11/18/2014 01:02:41.642 Checking to see if we need to install .Net version 2.0
    11/18/2014 01:02:41.653 Determining the cluster status of the local machine.
    11/18/2014 01:02:41.665 The local machine is not configured as a cluster node.
    11/18/2014 01:02:41.675 Attempting to find media for .Net version 2.0
    11/18/2014 01:02:41.686 .Net version 2.0 is installed
    11/18/2014 01:02:41.697 RedistMSI::GetExpectedBuildRevision - Setup expects MSI 4.5.6001.22159 at the minimum
    11/18/2014 01:02:41.709 Attempting to get Windows Installer version
    11/18/2014 01:02:41.721 Windows Installer version detected: 5.0.7601.18493
    11/18/2014 01:02:41.733 RedistMSI::IsVistaRTM - Not Vista RTM build
    11/18/2014 01:02:41.745 Required version of Windows Installer is already installed
    11/18/2014 01:02:41.772 Strong name verification disabling is not required
    11/18/2014 01:02:41.781 /? or /HELP or /ACTION=HELP specified: false
    11/18/2014 01:02:41.793 Help display: false
    11/18/2014 01:02:41.805 Attempting to launch landing page workflow
    11/18/2014 01:02:41.816 Attempting to set setup mutex
    11/18/2014 01:02:41.827 Setup mutex has been set
    11/18/2014 01:02:41.838 Attempting to launch global rules workflow
    11/18/2014 01:02:41.849 Media source: c:\sqlexpress\
    11/18/2014 01:02:41.860 Install media path: c:\sqlexpress\x86\setup\
    11/18/2014 01:02:41.870 Media layout: Core
    11/18/2014 01:02:41.881 Attempting to get execution timestamp
    11/18/2014 01:02:41.892 Timestamp: 20141118_010240
    11/18/2014 01:02:41.903 Attempting to run workflow RUNRULES /RULES=GlobalRules
    11/18/2014 01:02:41.915 Attempting to launch process c:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2\x86\setup100.exe
    11/18/2014 01:02:50.467 Process returned exit code: 0x00000000
    11/18/2014 01:02:50.484 Workflow RUNRULES /RULES=GlobalRules returned exit code: 0x00000000
    11/18/2014 01:02:50.496 Attempting to launch component update workflow
    11/18/2014 01:02:50.509 Media source: c:\sqlexpress\
    11/18/2014 01:02:50.522 Install media path: c:\sqlexpress\x86\setup\
    11/18/2014 01:02:50.534 Media layout: Core
    11/18/2014 01:02:50.546 Attempting to get execution timestamp
    11/18/2014 01:02:50.558 Timestamp: 20141118_010240
    11/18/2014 01:02:50.570 Attempting to run workflow COMPONENTUPDATE
    11/18/2014 01:02:50.581 Attempting to launch process c:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2\x86\setup100.exe
    11/18/2014 01:03:02.572 Process returned exit code: 0x00000000
    11/18/2014 01:03:02.590 Workflow COMPONENTUPDATE returned exit code: 0x00000000
    11/18/2014 01:03:02.602 Attempting to launch user requested workflow locally
    11/18/2014 01:03:02.614 Attempting to find local setup.exe
    11/18/2014 01:03:02.626 Local bootstrap folder path: c:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\
    11/18/2014 01:03:02.639 Local setup100.exe full path: c:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2\x86\setup100.exe
    11/18/2014 01:03:02.650 Media source: c:\sqlexpress\
    11/18/2014 01:03:02.661 Install media path: c:\sqlexpress\x86\setup\
    11/18/2014 01:03:02.672 Media layout: Core
    11/18/2014 01:03:02.684 Attempting to get execution timestamp
    11/18/2014 01:03:02.695 Timestamp: 20141118_010240
    11/18/2014 01:03:02.706 Attempting to run user requested action from local setup100.exe
    11/18/2014 01:03:02.717 Attempting to launch process c:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2\x86\setup100.exe
    11/18/2014 01:07:28.302 Process returned exit code: 0x84BC06B2
    11/18/2014 01:07:28.314 Local setup100.exe returned exit code: 0x84BC06B2
    11/18/2014 01:07:28.326 Attempting to release setup mutex
    11/18/2014 01:07:28.338 Setup mutex has been released
    11/18/2014 01:07:28.351 Setup closed with exit code: 0x84C40013
    11/18/2014 01:07:28.362 ======================================================================
    Does anyone have any ideas of why this is failing?

    Here is the summary.txt:
    Overall summary:
      Final result:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
      Exit code (Decimal):           -2068052302
      Exit facility code:            1212
      Exit error code:               1714
      Exit message:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
      Start time:                    2014-11-18 01:03:03
      End time:                      2014-11-18 01:07:23
      Requested action:              Install
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_010240\Detail.txt
      Exception help link:           http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.1600.1%26EvtType%3d0xE53883A0%400xBE03358B%401306%4023
    Machine Properties:
      Machine name:                  PC81372
      Machine processor count:       4
      OS version:                    Windows 7
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x86
      Process architecture:          32 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered 
      Sql Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             Database Engine Services                 1033      
              Express Edition      10.2.4000.0     No        
      Sql Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             SQL Server Replication                   1033      
              Express Edition      10.2.4000.0     No        
    Package properties:
      Description:                   SQL Server Database Services 2008 R2
      ProductName:                   SQL Server 2008 R2
      Type:                          RTM
      Version:                       10
      SPLevel:                       0
      Installation location:         c:\sqlexpress\x86\setup\
      Installation edition:          EXPRESS
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      True
      AGTSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Disabled
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASDOMAINGROUP:                 <empty>
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 *****
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Automatic
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_010240\ConfigurationFile.ini
      CUSOURCE:                      
      ENABLERANU:                    True
      ENU:                           True
      ERRORREPORTING:                False
      FARMACCOUNT:                   <empty>
      FARMADMINPORT:                 0
      FARMPASSWORD:                  *****
      FEATURES:                      SQLENGINE,REPLICATION
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  <empty>
      FTSVCPASSWORD:                 *****
      HELP:                          False
      IACCEPTSQLSERVERLICENSETERMS:  True
      INDICATEPROGRESS:              False
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    WORKSTUDIO
      INSTANCENAME:                  WORKSTUDIO
      ISSVCACCOUNT:                  NT AUTHORITY\NetworkService
      ISSVCPASSWORD:                 *****
      ISSVCSTARTUPTYPE:              Automatic
      NPENABLED:                     0
      PASSPHRASE:                    *****
      PCUSOURCE:                     
      PID:                           *****
      QUIET:                         True
      QUIETSIMPLE:                   False
      ROLE:                          AllFeatures_WithDefaults
      RSINSTALLMODE:                 FilesOnlyMode
      RSSVCACCOUNT:                  NT AUTHORITY\NETWORK SERVICE
      RSSVCPASSWORD:                 *****
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  SQL
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      SQLSVCPASSWORD:                *****
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           BUILTIN\USERS
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  False
      TCPENABLED:                    1
      UIMODE:                        AutoAdvance
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_010240\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      MSI status:                    Failed: see details below
      MSI error code:                1714
      MSI log file location:         C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_010240\sql_engine_core_shared_loc_Cpu32_1033_1.log
      MSI error description:         The older version of SQL Server 2008 R2 Database Engine Shared cannot be removed.  Contact your technical support group.  
      Configuration status:          Failed: see details below
      Configuration error code:      0xBE03358B@1306@23
      Configuration error description: Could not find the Database Engine startup handle.
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_010240\Detail.txt
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:      0xBE03358B@1306@23
      Configuration error description: Could not find the Database Engine startup handle.
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_010240\Detail.txt
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_010240\SystemConfigurationCheck_Report.htm

  • SignTool.exe verify /pa returns exit code 1 from the code but works fine while running from command prompt

    Hi,
    I am using SignTool.exe from a new Process() to verify a codesigned assembly and it returns the exit code 1 whereas it returns exit code 0 while i run the same from Visual Studio Command prompt. Please let me know your thoughts...
    Here is my code snippet from VS2012 ultimate on Win7 PC.
    p = new Process();
                p.StartInfo.FileName = "C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\Bin\\SignTool.exe";
                string args = @"verify";
                p.StartInfo.Arguments =  args + " "+ "/pa " + "/v "+ name;
                p.Start();
                p.WaitForExit();
                pexitcode = p.ExitCode;
    //name = "C:\\Users\\v-maparn\\Documents\\Visual Studio 2012\\Projects\\CodesignVerification\\CodesignVerification\\bin\\Release\\Microsoft.IT.Core.dll"
    Thanks,
    Mani

    Hi Amy,
    Thanks for your reply. I am receiving the exit code 1 by the Process even though the SignTool is able to successfully verify the assembly. I ran the below command from command prompt and received no errors or warnings. I assume the exit code should be 0.
    I have also verified that this assembly has digital signature embedded as you can see from the output.
    output:
    C:\Windows\system32>signtool.exe verify /pa /v "C:\Users\v-maparn\Documents\Visu
    al Studio 2012\Projects\CodesignVerification\CodesignVerification\bin\Release\Mi
    crosoft.IT.Security.UI.SystemSecurityManagement.SSMUIWebHost.dll"
    Verifying: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\CodesignVerif
    ication\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.SystemSecurity
    Management.SSMUIWebHost.dll
    Signature Index: 0 (Primary Signature)
    Hash of file (sha1): 1B58113B218260837A6B850561538A804B034F2A
    Signing Certificate Chain:
        Issued to: Microsoft Root Certificate Authority
        Issued by: Microsoft Root Certificate Authority
        Expires:   Sun May 09 15:28:13 2021
        SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
            Issued to: Microsoft Code Signing PCA
            Issued by: Microsoft Root Certificate Authority
            Expires:   Mon Aug 31 14:29:32 2020
            SHA1 hash: 3CAF9BA2DB5570CAF76942FF99101B993888E257
                Issued to: Microsoft Corporation
                Issued by: Microsoft Code Signing PCA
                Expires:   Thu Apr 24 14:33:39 2014
                SHA1 hash: 108E2BA23632620C427C570B6D9DB51AC31387FE
    The signature is timestamped: Mon Dec 30 02:58:12 2013
    Timestamp Verified by:
        Issued to: Microsoft Root Certificate Authority
        Issued by: Microsoft Root Certificate Authority
        Expires:   Sun May 09 15:28:13 2021
        SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
            Issued to: Microsoft Time-Stamp PCA
            Issued by: Microsoft Root Certificate Authority
            Expires:   Sat Apr 03 05:03:09 2021
            SHA1 hash: 375FCB825C3DC3752A02E34EB70993B4997191EF
                Issued to: Microsoft Time-Stamp Service
                Issued by: Microsoft Time-Stamp PCA
                Expires:   Wed Feb 11 14:11:31 2015
                SHA1 hash: D967AB4CF991F11DA6E318C880F1AF1A9C8D2C7C
    Successfully verified: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\C
    odesignVerification\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.Sy
    stemSecurityManagement.SSMUIWebHost.dll
    Number of files successfully Verified: 1
    Number of warnings: 0
    Number of errors: 0
    C:\Windows\system32>
    Thanks,
    Mani

  • How to fix error 9001 in instal application?

    how to fix error code 9001 in instaling application?

    hi ravenas,
    thanks for the reply.
    anyways, is it possible that whenever guest logins into the system, the windows page bounds configuration like front panel bounds in labview be fetched so that the same will be configured to the vi's front panel programatically.
    by doing this the windows components will automatically get hide.
    or is there any better solution.
    reply
    thanks
    samriddh sarbalhi
    [email protected]

  • How to prevent iTunes for Windows from "Updating iTunes Library"? (Library is on a NAS and managed by iTunes for Mac. Now getting update wars between Mac and Windows versions of the player.

    How to prevent iTunes for Windows from "Updating iTunes Library"?
    My library is on a NAS and managed by iTunes on a Mac. I can connect from wife's Windows laptop using iTunes for Windows but every time I do, it Updates iTunes Library. Next time I log in from my Mac it Updates iTunes Library in return. It appears I'm experiencing "Update Wars" between the Mac and Windows versions of iTunes. I would like to allow my wife to stream iTunes songs to her new laptop but I don't want any updates from this source... prefer to manage the library from my Mac and not allow Windows to do any thing other than listen to existing playlists.
    Thanks for any help/suggestions.

    Connect the PC to the library on the NAS. Wait while "updated".
    Under Edit > Preferences > Advanced make sure the media folder is correctly pointed at the media folder on the NAS. If not correct, close iTunes, wait a few moments, then open iTunes again.
    Close iTunes on the PC. Do not open iTunes on the Mac.
    Copy the library files, iTunes Library.itl, iTunes Library Extras.itdb, iTunes Library Genius.itdb, sentinel and the folder Album Artwork into an empty iTunes folder on the PC, for example C:\iTunes.
    Click the icon to start iTunes and immediately press and hold down SHIFT. Keep holding until prompted to choose or create a library. Click choose and browse to the copied .itl file, e.g. C:\iTunes\iTunes Library.itl
    The library should now work properly on the PC, however check the setting for the media folder. If needs be correct, close iTunes and reopen.
    Open iTunes on the Mac. It will update again, but that should be last time.
    tt2

  • How to prevent deletion in a form ?

    I need to prevent deletion in a form if the starting date <= SYSDATE and show an alert .
    How do I implement this please ?
    My date field is of type timestamp , it's "id2"
    I have added the following method in my backing bean :
        public String preventDel() {
    long toDateAsTimestamp = id2.getTime();
    long currentTimestamp = System.currentTimeMillis();
    long getRidOfTime = 1000 * 60 * 60 * 24;
    long toDateAsTimestampWithoutTime = toDateAsTimestamp / getRidOfTime;
    long currentTimestampWithoutTime = currentTimestamp / getRidOfTime;
    if (id2 < currentTimestampWithoutTime )
    System.out.println("Display report.");
    //how to show the alert ?
    return null;
    Any help please ?

    Hi girl.
    If i were you this is how I would do it;
    1.- Create a transient attribute in your VO called ToBeDeleted of type boolean and assign its value as the following expression "StartingDate <= adf.currentDate".
    2.- Expose the attribute in your bindings. Then, in your delete button you can:
         - Disable it if ToBeDeleted is not true.
         - In the description of the button you could put a message that it cant be deleted.
    OR
         Use your java class to show the message. But the alert should be thrown as a facesMessage of type Error: look at this How to show af:message programatically
    Also, I would like to say that none of this might be the best way to implement your use case. For the sound of it you have a business rule that should be implemented in your model project if you don't want to break the MVC pattern. (This is that you shouldnt be able to delete the row using your AppModule tester if the startingDate <= Sysdate, for example).
    Hope this helps.

  • How to prevent JFileChooser automatically changing to parent directory?

    When you show only directories, and click on the dir icons to navigate, and then dont select anything and click OK, it automatically 'cd's to the parent folder.
    My application is using the JFileChooser to let the user navigate through folders and certain details of 'foo' files in that folder are displayed in another panel.
    So we dont want the chooser automatically changing dir to parent when OK is clicked. How to prevent this behavior?
    I considered extending the chooser and looked at the Swing source code but it is hard to tell where the change dir is happening.
    thanks,
    Anil
    To demonstrate this, I took the standard JFileChooserDemo from the Sun tutorial and modified it adding these lines
              // NEW line 45 in constructor
              fc.addPropertyChangeListener((PropertyChangeListener) this);
              fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
          * NEW -
          * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
         public void propertyChange(PropertyChangeEvent e) {
              String prop = e.getPropertyName();
              if (JFileChooser.DIRECTORY_CHANGED_PROPERTY.equals(prop)) {
                   System.out.println("DIRECTORY_CHANGED_PROPERTY");
                   File file = (File) e.getNewValue();
                   System.out.println("DIRECTORY:" + file.getPath());
         }

    Here is the demo:
    package filechooser;
    import java.awt.BorderLayout;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import java.io.File;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    * FileChooserDemo.java uses these files:
    *   images/Open16.gif
    *   images/Save16.gif
    public class FileChooserDemo extends JPanel implements ActionListener,
              PropertyChangeListener {
         static private final String newline = "\n";
         JButton openButton, saveButton;
         JTextArea log;
         JFileChooser fc;
         public FileChooserDemo() {
              super(new BorderLayout());
              // Create the log first, because the action listeners
              // need to refer to it.
              log = new JTextArea(5, 20);
              log.setMargin(new Insets(5, 5, 5, 5));
              log.setEditable(false);
              JScrollPane logScrollPane = new JScrollPane(log);
              // Create a file chooser
              fc = new JFileChooser();
              // NEW
              fc.addPropertyChangeListener((PropertyChangeListener) this);
              fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              // Create the open button. We use the image from the JLF
              // Graphics Repository (but we extracted it from the jar).
              openButton = new JButton("Open a File...",
                        createImageIcon("images/Open16.gif"));
              openButton.addActionListener(this);
              // Create the save button. We use the image from the JLF
              // Graphics Repository (but we extracted it from the jar).
              saveButton = new JButton("Save a File...",
                        createImageIcon("images/Save16.gif"));
              saveButton.addActionListener(this);
              // For layout purposes, put the buttons in a separate panel
              JPanel buttonPanel = new JPanel(); // use FlowLayout
              buttonPanel.add(openButton);
              buttonPanel.add(saveButton);
              // Add the buttons and the log to this panel.
              add(buttonPanel, BorderLayout.PAGE_START);
              add(logScrollPane, BorderLayout.CENTER);
          * NEW -
          * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
         public void propertyChange(PropertyChangeEvent e) {
              String prop = e.getPropertyName();
              // If the directory changed, don't show an image.
              if (JFileChooser.DIRECTORY_CHANGED_PROPERTY.equals(prop)) {
                   System.out.println("DIRECTORY_CHANGED_PROPERTY");
                   File file = (File) e.getNewValue();
                   System.out.println("DIRECTORY:" + file.getPath());
         public void actionPerformed(ActionEvent e) {
              // Handle open button action.
              if (e.getSource() == openButton) {
                   int returnVal = fc.showOpenDialog(FileChooserDemo.this);
                   if (returnVal == JFileChooser.APPROVE_OPTION) {
                        File file = fc.getSelectedFile();
                        // This is where a real application would open the file.
                        log.append("Opening: " + file.getName() + "." + newline);
                   } else {
                        log.append("Open command cancelled by user." + newline);
                   log.setCaretPosition(log.getDocument().getLength());
                   // Handle save button action.
              } else if (e.getSource() == saveButton) {
                   int returnVal = fc.showSaveDialog(FileChooserDemo.this);
                   if (returnVal == JFileChooser.APPROVE_OPTION) {
                        File file = fc.getSelectedFile();
                        // This is where a real application would save the file.
                        log.append("Saving: " + file.getName() + "." + newline);
                   } else {
                        log.append("Save command cancelled by user." + newline);
                   log.setCaretPosition(log.getDocument().getLength());
         /** Returns an ImageIcon, or null if the path was invalid. */
         protected static ImageIcon createImageIcon(String path) {
              java.net.URL imgURL = FileChooserDemo.class.getResource(path);
              if (imgURL != null) {
                   return new ImageIcon(imgURL);
              } else {
                   System.err.println("Couldn't find file: " + path);
                   return null;
          * Create the GUI and show it. For thread safety, this method should be
          * invoked from the event dispatch thread.
         private static void createAndShowGUI() {
              // Create and set up the window.
              JFrame frame = new JFrame("FileChooserDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // Add content to the window.
              frame.add(new FileChooserDemo());
              // Display the window.
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args) {
              // Schedule a job for the event dispatch thread:
              // creating and showing this application's GUI.
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        // Turn off metal's use of bold fonts
                        UIManager.put("swing.boldMetal", Boolean.FALSE);
                        createAndShowGUI();
    }

  • MDT capture warning: Unexpected return code while re-arming office 2010, RC= -1073425657

    Greetings,
    I have a base image I have created with an MDT task sequence, than I am then immediately capturing with another MDT task sequence (the capture sequence is basically the default).  After capture, I get 0 errors, 1 warning: "Unexpected return code
    while re-arming office 2010, RC= -1073425657". 
    I am capturing immedaitely after the base image build, and even more strangely, even with Office 2010 removed from my base build, I STILL get this warning!  Office isn't even on there anymore (I verified before capture just to double check).
    Not sure how or why this is happening - or more importantly, should I care?  I've deployed a couple of machines using this image, and both Office and Windows show as activated.  Can this safely be ignored, or if not... what is the fix?
    Thanks in advance!

    Freddie,
    Please read your own post again, can you tie the knots together, because your phrasing is going crazy!?!
    However, if using the sysprep step from within a MDT task sequence, please scroll through the ZTISysprep.wsf to find that not only the machine will be sysprepped, but also Office 2010 will be automatically re-armed, this is provided in the script already,
    so no need to run it on your own.
    Ok how do i undo that because thatswhy the message appears to many rearms...
    If a machine is domain joined, it will not sysprep and capture. Also I wouldn't sysprep and capture an already sysprepped and captured image again (based on gut feeling) and as always check your logfiles, they can reveal what is going on here.
    The machine is not domain joined in the Vm. And i do not sysprep and capture twice.Which logfiles exactly to see?
    If this post is helpful please click "Mark for answer", thanks! Kind regards
    freddie

Maybe you are looking for

  • Table for appraisal

    Hi All, Please let me knw the table name where Appraisal raings given by suprior get stored. Please help. Regards, Aman

  • Necessary to re-build every blog entry????

    So I am a novice computer user. I was able to design and publish my site on iweb. Very happy with the results. except.... do i really need to re-build every blog entry i make? when i add a new entry, I basically have to start from scratch everytime.

  • Icons too large

    Icons on my phone all at once chahged to be 5 times larger. How can I return them to normal size. Thanks

  • How do I add InDesign's Object model to ESTK Object model viewer?

    I am new to InDesign scripting, and was told that I could view InDesign's DOM in ESTK's object model viewer. The problem is that my ESTK does not show InDesign Object Model in ESTK's model selector drop down! InDesign DOM is not there in the drop dow

  • Updating credit card info in the iTunes Store

    Hi there, I am trying to update my credit card info in the iTunes Store and I get the message: Please contact iTunes support to complete this transaction. Does anyone know what is going on?