After installation reboot and then run tasks

Feb 17, 2010 at 11:28 AM

Hi to all,

Is this possible to do?


Here is how it did

Installing 'Remote:7z', 'C:\7z465.exe'
 Executing 'Remote:C:\7z465.exe /S /D=c:\autoinstall'
Execution succeeded and requires reboot (defined in exitcodes), return code: 0
Executing 'Remote:cmd.exe /C "dir > c:\dir.txt"'
 Executing 'Remote:cmd.exe /C "dir > c:\dir.txt"'
Finished 'Remote:cmd.exe /C "dir > c:\dir.txt"', exit code = 0 (success)
Execution requires reboot (defined in exitcodes), return code: 0
Reboot required after 'Remote:7z'
Done after '00:00:04.9062500'
 Powering off 'Remote:Windows XP Professional (2)'


thanks in advance

Feb 17, 2010 at 12:03 PM
Edited Feb 17, 2010 at 12:04 PM

Yes, it's possible to reboot and then run tasks: you should define a noop installer (type=noop) with tasks. The first one will require a reboot. The second one won't do anything except run tasks.

Feb 17, 2010 at 12:30 PM


thanks for the quick reply. Here is how i did


   <installer rebootRequired="true" file="D:\hasan\programs\7z465.exe" name="7z" copymethod="vmware" type="exe" uninstall="false" installArgs="/S /D=c:\autoinstall" >
        <!-- This is for tasks thats needs to be run after reboot -->
        <installer name="Noop Installer" type="noop" >
            <tasks when="aftersuccessfulinstall">
            <task type="command" cmd="cmd.exe" cmdargs="/C &quot;dir &gt; c:\dir.txt&quot;" />

Feb 18, 2010 at 1:41 PM


I have just noticed something about snapshots. Here is my config

<installer rebootRequired="true">
 <!-- install software1 and restart-->
 <installer name="Noop Installer1" type="noop" >
 <!-- change config files of software1 , copy files and tasks-->
 <installer name="Noop Installer2" type="noop" >
 <!-- execute unit tests console on software1, task-->
 <virtualmachine type="Workstation" file="wxp\WindowsXpPro.vmx" name="WindowsXpPro">
<snapshots><snapshot name="cleanXp" username="test" password="321!789" /></snapshots>

After each restart it restores to Snapshot = cleanXp.
software1 which was installed at the beginning is gone. What should i do to test software1?


Feb 26, 2010 at 9:16 PM

You need to redefine the sequence in the installers tag: lifo or fifo. So multiple installers will sequence in that order. Check the doc first, let me know if you have any problems.

Mar 5, 2010 at 11:27 AM

ok, I see. thanks. it seems that the problem is gone now.