Launch after install, with no UI?

前端 未结 4 756
灰色年华
灰色年华 2020-12-31 04:41

How do I launch my application after install with no UI (or in quiet mode)? Thanks!


I had a installer with UI which has an option to run after install. Now I w

4条回答
  •  Happy的楠姐
    2020-12-31 05:30

    From the msdn topic on sequencing custom actions:

    As in the case of standard actions, custom actions that are scheduled in the InstallUISequence or AdminUISequence run only if the internal user interface is set to the full level.

    So I guess your custom action is scheduled in a UI sequence, not in InstallExecuteSequence. Try scheduling your custom action in the InstallExecuteSequence like this:

      
         
      
    

    where "LaunchApplication" should be replaced by the Id of your CustomAction element.

    edit: I looked at the instructions that you followed, and I don't see the custom action for launching the application being scheduled in any sequence. It is only triggered from a UI action (clicking the Finish button). This explains why it is never executed during a silent install.

    edit: full sample (it's a bit sloppy as it also tries to execute the custom action on uninstall, repair etc. but for some reason I couldn't get the "NOT Installed" condition to work)

    
    
       
          
    
           
    
          
             
                
                   
                      
                   
                
             
          
    
          
             
          
    
          
             
          
    
          
    
       
    
    

提交回复
热议问题